TGTextEntry
class description - source file - inheritance tree
protected:
virtual void DoRedraw()
Int_t GetCharacterIndex(Int_t xcoord)
void PastePrimary(Window_t wid, Atom_t property, Bool_t del)
public:
TGTextEntry TGTextEntry(TGWindow* p, TGTextBuffer* text, Int_t id = -1, GContext_t norm = fgDefaultGC, FontStruct_t font = fgDefaultFontStruct, UInt_t option = kSunkenFrame|kDoubleBorder, ULong_t back = fgWhitePixel)
TGTextEntry TGTextEntry(TGTextEntry&)
virtual void ~TGTextEntry()
TClass* Class()
virtual void DrawBorder()
TGTextBuffer* GetBuffer()
virtual Bool_t HandleButton(Event_t* event)
virtual Bool_t HandleDoubleClick(Event_t* event)
virtual Bool_t HandleFocusChange(Event_t* event)
virtual Bool_t HandleKey(Event_t* event)
virtual Bool_t HandleMotion(Event_t* event)
virtual Bool_t HandleSelection(Event_t* event)
virtual Bool_t HandleTimer(TTimer* t)
virtual TClass* IsA()
virtual void SetState(Bool_t state)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
protected:
TGTextBuffer* fText text buffer
Int_t fStartX selection begin in pixels
Int_t fEndX selection end in pixels
Int_t fStartIX selection begin in characters
Int_t fEndIX selection end in characters
Bool_t fSelectionOn selection status (on/off)
Int_t fCursorX cursor position in pixels
Int_t fCursorIX cursor position in characters
Bool_t fCursorOn cursor status (on/off)
FontStruct_t fFontStruct text font
GContext_t fNormGC normal drawing context
GContext_t fSelGC
GContext_t fSelbackGC selection mode drawing contexts
TBlinkTimer* fCurBlink cursor blink timer
static Cursor_t fgDefaultCursor
static GContext_t fgDefaultGC
static GContext_t fgDefaultSelectedGC
static GContext_t fgDefaultSelectedBackgroundGC
static FontStruct_t fgDefaultFontStruct
TGTextEntry
A TGTextEntry is a one line text input widget.
Changing text in the text entry widget will generate the event:
kC_TEXTENTRY, kTE_TEXTCHANGED, widget id, 0.
TGTextEntry(const TGWindow *p, TGTextBuffer *text, Int_t id,
GContext_t norm, FontStruct_t font, UInt_t options,
ULong_t back) : TGFrame(p, 1, 1, options, back)
Create a text entry widget. It will adopt the TGTextBuffer object
(i.e. the text buffer will be deleted by the text entry widget).
~TGTextEntry()
Delete a text entry widget.
void SetState(Bool_t state)
Set state of widget. If kTRUE=enabled, kFALSE=disabled.
void DoRedraw()
Draw the text entry widget.
void DrawBorder()
Draw the border of the text entry widget.
Int_t GetCharacterIndex(Int_t xcoord)
Get character position at pixel position xcoord.
Bool_t HandleButton(Event_t *event)
Handle mouse button event in text entry widget.
Bool_t HandleDoubleClick(Event_t *)
Handle double click event in the text entry widget.
Bool_t HandleMotion(Event_t *event)
Handle mouse motion event in the text entry widget.
Bool_t HandleKey(Event_t *event)
Handle keyboard event in text entry widget.
Bool_t HandleFocusChange(Event_t *event)
Handle focus change event in text entry widget.
Bool_t HandleSelection(Event_t *event)
Handle text selection event.
void PastePrimary(Window_t wid, Atom_t property, Bool_t del)
Paste text from selection (either primary or cut buffer) into
text entry widget.
Bool_t HandleTimer(TTimer *)
Handle cursor blink timer.
Inline Functions
TGTextBuffer* GetBuffer()
TClass* Class()
TClass* IsA()
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
TGTextEntry TGTextEntry(TGTextEntry&)
Author: Fons Rademakers 08/01/98
Last update: 2.00/12 01/10/98 01.39.45 by Fons Rademakers
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *
ROOT page - Class index - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.