94 fColorSelect->Connect(
"ColorSelected(Pixel_t)",
"TAttFillEditor",
this,
"DoFillColor(Pixel_t)");
95 fColorSelect->Connect(
"AlphaColorSelected(ULong_t)",
"TAttFillEditor",
this,
"DoFillAlphaColor(ULong_t)");
96 fPatternSelect->Connect(
"PatternSelected(Style_t)",
"TAttFillEditor",
this,
"DoFillPattern(Style_t)");
97 fAlpha->Connect(
"Released()",
"TAttFillEditor",
this,
"DoAlpha()");
98 fAlpha->Connect(
"PositionChanged(Int_t)",
"TAttFillEditor",
this,
"DoLiveAlpha(Int_t)");
99 fAlphaField->Connect(
"ReturnPressed()",
"TAttFillEditor",
this,
"DoAlphaField()");
100 fAlpha->Connect(
"Pressed()",
"TAttFillEditor",
this,
"GetCurAlpha()");
110 if (!attfill)
return;
126 fAlpha->SetPosition((
Int_t)(color->GetAlpha()*1000));
139 fAttFill->SetFillColor(color->GetNumber());
140 fAlpha->SetPosition((
Int_t)(color->GetAlpha()*1000));
155 fAlpha->SetPosition((
Int_t)(tcolor->GetAlpha()*1000));
210 if (color->GetAlpha() == 1.) {
227 fAlpha->SetPosition((
Int_t)(color->GetAlpha()*1000));
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
unsigned long ULongptr_t
Unsigned integer large enough to hold a pointer (platform-dependent).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
short Color_t
Color number (short).
short Style_t
Style number (short).
float Float_t
Float 4 bytes (float).
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void GetCurAlpha()
Slot to update alpha value on click on Slider.
TGNumberEntryField * fAlphaField
virtual void DoFillColor(Pixel_t color)
Slot connected to the fill area color.
TAttFillEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of fill attributes GUI.
void SetModel(TObject *obj) override
Pick up the used fill attributes.
virtual void DoFillPattern(Style_t color)
Slot connected to the fill area pattern.
TGColorSelect * fColorSelect
fill color widget
virtual void DoLiveAlpha(Int_t a)
Slot to set alpha value online.
virtual void DoAlphaField()
Slot to set the alpha value from the entry field.
~TAttFillEditor() override
Destructor of fill editor.
TAttFill * fAttFill
fill attribute object
TGHSlider * fAlpha
fill opacity
virtual void DoAlpha()
Slot to set the alpha value.
TGedPatternSelect * fPatternSelect
fill pattern widget
virtual void DoFillAlphaColor(ULongptr_t p)
Slot connected to the fill area color with alpha.
static Bool_t SupportAlpha()
Static function returning "true" if transparency is supported.
static Int_t GetColorTransparent(Int_t color, Float_t a)
static Int_t GetColor(const char *hexcolor)
static ULong_t Number2Pixel(Int_t ci)
Like a checkbutton but instead of the check mark there is color area with a little down arrow.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
TGCompositeFrame(const TGCompositeFrame &)=delete
Concrete class for horizontal slider.
A composite frame that layout their children in horizontal way.
This class handles GUI labels.
virtual void Disable(Bool_t on=kTRUE)
This class describes layout hints used by the layout classes.
ROOT GUI Window base class.
TGedFrame(const TGedFrame &)=delete
Bool_t fInit
init flag for setting signals/slots
virtual void MakeTitle(const char *title)
Create attribute frame title.
virtual void Update()
Update the current pad when an attribute is changed via GUI.
Int_t fPriority
location in GedEditor
Bool_t fAvoidSignal
flag for executing slots
is a button with pattern area with a little down arrow.
Mother of all ROOT objects.