Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TTextEditor.h
Go to the documentation of this file.
1// Author: Olivier Couet 22/12/2013
2
3/*************************************************************************
4 * Copyright (C) 1995-2021, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11
12//////////////////////////////////////////////////////////////////////////
13// //
14// TTextEditor //
15// //
16// Editor for changing TText's and TLatex's attributes. //
17// //
18//////////////////////////////////////////////////////////////////////////
19
20#ifndef ROOT_TTextEditor
21#define ROOT_TTextEditor
22
23#include "TGedFrame.h"
24
25class TText;
26class TGTextEntry;
27class TGNumberEntry;
28
29class TTextEditor : public TGedFrame {
30
31private:
33
34protected:
36 TGNumberEntry *fAngle; // Text's angle
37 TGNumberEntry *fSize; // Text's angle
38 TGNumberEntry *fXpos; // Text's X position
39 TGNumberEntry *fYpos; // Text's Y position
40
42
43public:
44 TTextEditor(const TGWindow *p = nullptr,
45 Int_t width = 140, Int_t height = 30,
46 UInt_t options = kChildFrame,
49
50 void SetModel(TObject *);
51
52 void DoAngle();
53 void DoSize();
54 void DoText(const char*);
55 void DoXpos();
56 void DoYpos();
57
58 ClassDef(TTextEditor,0) // text editor
59};
60
61#endif // ROOT_TTextEditor
62
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define ClassDef(name, id)
Definition Rtypes.h:325
include TDocParser_001 C image html pict1_TDocParser_001 png width
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:668
Mother of all ROOT objects.
Definition TObject.h:37
void DoSize()
Slot for setting the text Size.
void DoText(const char *)
Slot for setting the text string.
TGNumberEntry * fYpos
Definition TTextEditor.h:39
TGNumberEntry * fXpos
Definition TTextEditor.h:38
TGNumberEntry * fAngle
Definition TTextEditor.h:36
void SetModel(TObject *)
Set model.
void DoAngle()
Slot for setting the text Angle.
void ConnectSignals2Slots()
Connect signals to slots.
void DoYpos()
Slot for setting the text Y position.
~TTextEditor()
TTextEditor destructor.
TGNumberEntry * fSize
Definition TTextEditor.h:37
void DoXpos()
Slot for setting the text X position.
TGTextEntry * fText
Definition TTextEditor.h:35
TText * fEditedText
Definition TTextEditor.h:32
Base class for several text objects.
Definition TText.h:22