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#ifndef ROOT_TTextEditor
13#define ROOT_TTextEditor
14
15#include "TGedFrame.h"
16
17class TText;
18class TGTextEntry;
19class TGNumberEntry;
20
21class TTextEditor : public TGedFrame {
22
23private:
25
26protected:
27 TGTextEntry *fText; ///< Text
28 TGNumberEntry *fAngle; ///< Text's angle
29 TGNumberEntry *fSize; ///< Text's angle
30 TGNumberEntry *fXpos; ///< Text's X position
31 TGNumberEntry *fYpos; ///< Text's Y position
32
34
35public:
36 TTextEditor(const TGWindow *p = nullptr,
37 Int_t width = 140, Int_t height = 30,
38 UInt_t options = kChildFrame,
41
42 void SetModel(TObject *);
43
44 void DoAngle();
45 void DoSize();
46 void DoText(const char*);
47 void DoXpos();
48 void DoYpos();
49
50 ClassDef(TTextEditor,0) // text editor
51};
52
53#endif // ROOT_TTextEditor
54
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define ClassDef(name, id)
Definition Rtypes.h:337
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t width
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:683
TGNumberEntry is a number entry input widget with up/down buttons.
A TGTextEntry is a one line text input widget.
Definition TGTextEntry.h:24
ROOT GUI Window base class.
Definition TGWindow.h:23
Base frame for implementing GUI - a service class.
Definition TGedFrame.h:27
Mother of all ROOT objects.
Definition TObject.h:41
Editor for changing TText's and TLatex's attributes.
Definition TTextEditor.h:21
void DoSize()
Slot for setting the text Size.
void DoText(const char *)
Slot for setting the text string.
TGNumberEntry * fYpos
Text's Y position.
Definition TTextEditor.h:31
TGNumberEntry * fXpos
Text's X position.
Definition TTextEditor.h:30
TGNumberEntry * fAngle
Text's angle.
Definition TTextEditor.h:28
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
Text's angle.
Definition TTextEditor.h:29
void DoXpos()
Slot for setting the text X position.
TGTextEntry * fText
Text.
Definition TTextEditor.h:27
TText * fEditedText
Definition TTextEditor.h:24
Base class for several text objects.
Definition TText.h:22