112 fAlpha->
Connect(
"Released()",
"TAttTextEditor",
this,
"DoAlpha()");
113 fAlpha->
Connect(
"PositionChanged(Int_t)",
"TAttTextEditor",
this,
"DoLiveAlpha(Int_t)");
115 fAlpha->
Connect(
"Pressed()",
"TAttTextEditor",
this,
"GetCurAlpha()");
116 fColorSelect->
Connect(
"ColorSelected(Pixel_t)",
"TAttTextEditor",
this,
"DoTextColor(Pixel_t)");
117 fColorSelect->
Connect(
"AlphaColorSelected(ULong_t)",
"TAttTextEditor",
this,
"DoTextAlphaColor(ULong_t)");
127 if (!atttext)
return;
145 if (size > 50) size = 50;
146 if (size < 0) size = 0;
249 c->AddEntry(
"Default", 0);
250 for (
int i = 1; i <= 50; i++) {
265 c->AddEntry(
"11 Bottom, Left", 11);
266 c->AddEntry(
"21 Bottom, Middle", 21);
267 c->AddEntry(
"31 Bottom, Right", 31);
268 c->AddEntry(
"12 Middle, Left", 12);
269 c->AddEntry(
"22 Middle, Middle", 22);
270 c->AddEntry(
"32 Middle, Right", 32);
271 c->AddEntry(
"13 Top, Left", 13);
272 c->AddEntry(
"23 Top, Middle", 23);
273 c->AddEntry(
"33 Top, Right", 33);
316 if (color->GetAlpha() == 1.) {
include TDocParser_001 C image html pict1_TDocParser_001 png width
virtual void DoTextAlphaColor(ULong_t p)
Slot connected to the color with alpha.
static TGComboBox * BuildFontSizeComboBox(TGFrame *parent, Int_t id)
Create text size combo box.
virtual void SetModel(TObject *obj)
Pick up the values of used text attributes.
virtual void GetCurAlpha()
Slot to update alpha value on click on Slider.
virtual void DoAlpha()
Slot to set the alpha value.
TGFontTypeComboBox * fTypeCombo
TAttTextEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of text attributes GUI.
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.
static TGComboBox * BuildTextAlignComboBox(TGFrame *parent, Int_t id)
Create text align combo box.
virtual void DoTextColor(Pixel_t color)
Slot connected to the marker color.
TGNumberEntryField * fAlphaField
virtual ~TAttTextEditor()
Destructor of text editor.
TGColorSelect * fColorSelect
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process message.
void ConnectSignals2Slots()
Connect signals to slots.
virtual Float_t GetTextSize() const
Return the text size.
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
virtual Short_t GetTextAlign() const
Return the text alignment.
virtual Font_t GetTextFont() const
Return the text font.
virtual Color_t GetTextColor() const
Return the text color.
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
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.
virtual void Select(Int_t id, Bool_t emit=kTRUE)
Make the selected item visible in the combo box window and emit signals according to the second param...
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 TVirtualPad * GetPad() const
virtual TObject * GetModel() const
virtual void MakeTitle(const char *title)
Create attribute frame title.
virtual void Update()
Update the current pad when an attribute is changed via GUI.
Mother of all ROOT objects.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
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.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual Int_t YtoPixel(Double_t y) const =0
virtual Double_t GetY1() const =0
virtual Double_t AbsPixeltoY(Int_t py)=0
virtual Double_t GetY2() const =0
static constexpr double s