Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TEveTextEditor.h
Go to the documentation of this file.
1// @(#)root/eve:$Id$
2// Authors: Alja & Matevz Tadel 2008
3
4/*************************************************************************
5 * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TEveTextEditor
13#define ROOT_TEveTextEditor
14
15#include "TGedFrame.h"
16
17class TGComboBox;
18class TGTextEntry;
19class TGCheckButton;
20class TEveGValuator;
21
22class TEveText;
23
25{
26private:
27 TEveTextEditor(const TEveTextEditor&); // Not implemented
28 TEveTextEditor& operator=(const TEveTextEditor&); // Not implemented
29
30 TGComboBox* MakeLabeledCombo(const char* name);
31
32protected:
33 TEveText *fM; // Model object.
34
40
43
44public:
45 TEveTextEditor(const TGWindow *p = nullptr, Int_t width=170, Int_t height=30,
47 ~TEveTextEditor() override {}
48
49 void SetModel(TObject* obj) override;
50
51 void DoText(const char*);
52
53 void DoFontSize();
54 void DoFontFile();
55 void DoFontMode();
56
57 void DoLighting();
58 void DoAutoLighting();
59 void DoExtrude();
60
61 ClassDefOverride(TEveTextEditor, 0); // GUI editor for TEveText.
62};
63
64#endif
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
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
char name[80]
Definition TGX11.cxx:110
Composite GUI element for single value selection (supports label, number-entry and slider).
GUI editor for TEveText.
void DoFontMode()
Slot for setting FTGL attributes.
TGCheckButton * fLighting
TGComboBox * fSize
void DoText(const char *)
Slot for setting text.
void DoFontFile()
Slot for setting FTGL attributes.
TEveTextEditor & operator=(const TEveTextEditor &)
TGCheckButton * fAutoLighting
~TEveTextEditor() override
ClassDefOverride(TEveTextEditor, 0)
void DoLighting()
Slot for enabling/disabling GL lighting.
TGComboBox * fFile
TEveGValuator * fExtrude
TGTextEntry * fText
void DoAutoLighting()
Slot for enabling/disabling defaults.
void SetModel(TObject *obj) override
Set model object.
void DoFontSize()
Slot for setting FTGL attributes.
void DoExtrude()
Slot for setting an extrude depth.
TEveTextEditor(const TEveTextEditor &)
TGComboBox * MakeLabeledCombo(const char *name)
Helper function. Creates TGComboBox with fixed size TGLabel.
TGComboBox * fMode
TEveElement class used for displaying FreeType GL fonts.
Definition TEveText.h:25
Selects different options.
Definition TGButton.h:264
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
Definition TGComboBox.h:47
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:683
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