100 fColorSelect->
Connect(
"ColorSelected(Pixel_t)",
"TAttFillEditor",
this,
"DoFillColor(Pixel_t)");
101 fColorSelect->
Connect(
"AlphaColorSelected(ULong_t)",
"TAttFillEditor",
this,
"DoFillAlphaColor(ULong_t)");
102 fPatternSelect->
Connect(
"PatternSelected(Style_t)",
"TAttFillEditor",
this,
"DoFillPattern(Style_t)");
103 fAlpha->
Connect(
"Released()",
"TAttFillEditor",
this,
"DoAlpha()");
104 fAlpha->
Connect(
"PositionChanged(Int_t)",
"TAttFillEditor",
this,
"DoLiveAlpha(Int_t)");
106 fAlpha->
Connect(
"Pressed()",
"TAttFillEditor",
this,
"GetCurAlpha()");
116 if (!attfill)
return;
216 if (color->GetAlpha() == 1.) {
include TDocParser_001 C image html pict1_TDocParser_001 png width
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.
virtual void DoFillPattern(Style_t color)
Slot connected to the fill area pattern.
TAttFillEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of fill attributes GUI.
TGColorSelect * fColorSelect
virtual void DoFillAlphaColor(ULong_t p)
Slot connected to the fill area color with alpha.
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.
virtual void DoAlpha()
Slot to set the alpha value.
virtual void SetModel(TObject *obj)
Pick up the used fill attributes.
TGedPatternSelect * fPatternSelect
virtual ~TAttFillEditor()
Destructor of fill editor.
Fill Area Attributes class.
virtual Color_t GetFillColor() const
Return the fill area color.
virtual Style_t GetFillStyle() const
Return the fill area style.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
static Bool_t SupportAlpha()
Static function returning "true" if transparency is supported.
The color creation and management class.
static ULong_t Number2Pixel(Int_t ci)
Static method that given a color index number, returns the corresponding pixel value.
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb",...
static Int_t GetColorTransparent(Int_t color, Float_t a)
Static function: Returns the transparent color number corresponding to n.
void SetColor(Pixel_t color, Bool_t emit=kTRUE)
Set color.
TGCompositeFrame(const TGCompositeFrame &)
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void Disable(Bool_t on=kTRUE)
virtual Double_t GetNumber() const
Get the numeric value (floating point representation).
virtual void SetNumber(Double_t val)
Set the numeric value (floating point representation).
virtual Int_t GetPosition() const
virtual void SetPosition(Int_t pos)
virtual void SetRange(Int_t min, Int_t max)
virtual void SetEnabled(Bool_t flag=kTRUE)
void SetEnabled(Bool_t flag=kTRUE)
virtual void MakeTitle(const char *title)
Create attribute frame title.
virtual void Update()
Update the current pad when an attribute is changed via GUI.
void SetPattern(Style_t pattern, Bool_t emit=kTRUE)
Set pattern.
Mother of all ROOT objects.
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
static constexpr double s