vdk 2.4.0
Public Member Functions | Public Attributes | List of all members
VDKEntry Class Reference

This class provides a gtkentry wrapper. More...

#include <entry.h>

Inheritance diagram for VDKEntry:
Inheritance graph
[legend]
Collaboration diagram for VDKEntry:
Collaboration graph
[legend]

Public Member Functions

void SetCompletion (char **completion_list)
 
void AddCompletionItem (char *completion_item)
 
void RemoveCompletionItem (char *completion_item)
 
virtual void SetBackground (VDKRgb rgb, GtkStateType state)
 
virtual void SetForeground (VDKRgb rgb, GtkStateType state)
 
virtual void SetFont (VDKFont *font)
 
- Public Member Functions inherited from VDKObject
VDKRgb GetBackground (GtkStateType state=GTK_STATE_NORMAL)
 
VDKRgb GetForeground (GtkStateType state=GTK_STATE_NORMAL)
 
 VDKObject (VDKForm *owner=NULL)
 
 VDKObject (VDKForm *owner, GtkWidget *widget)
 
virtual ~VDKObject ()
 
bool Destroy ()
 
virtual int isA ()
 
VDKFormOwner ()
 
virtual GtkWidget * Widget ()
 
GtkWidget * ConnectingWidget ()
 
GtkWidget * WrappedWidget ()
 
virtual void SetFont (VDKFont *f)
 
VDKFontGetFont ()
 
void SetVisible (bool visible)
 
bool GetVisible ()
 
void SetCursor (VDKCursorType)
 
VDKCursorType GetCursor ()
 
virtual void SetForeground (VDKRgb color, GtkStateType state=GTK_STATE_NORMAL)
 
virtual void SetBackground (VDKRgb color, GtkStateType state=GTK_STATE_NORMAL)
 
void SetSize (int w, int h)
 
void SetUsize (VDKPoint s)
 
virtual void SetTip (char *)
 
virtual void Add (VDKObject *obj, int justify=l_justify, int expand=TRUE, int fill=TRUE, int padding=0)
 
ItemListItems ()
 
void Draw (GdkRectangle *area=NULL)
 
virtual void Setup ()
 
void SignalEmit (int signal)
 
void SignalEmit (char *sig)
 
void SignalEmitParent (int signal)
 
void SignalEmitParent (char *sig)
 
void GrabFocus ()
 
VDKObjectParent (VDKObject *p=NULL)
 
int SignalConnect (VDKObject *obj, char *signal, bool(VDKObject::*method)(VDKObject *), bool gtk=true, bool after=false)
 
int SignalConnect (char *signal, bool(VDKObject::*method)(VDKObject *), bool gtk=true, bool after=false)
 
bool SignalDisconnect (int connection)
 
int EventConnect (VDKObject *obj, char *event, bool(VDKObject::*method)(VDKObject *, GdkEvent *), bool after=false)
 
int EventConnect (char *, bool(VDKObject::*)(VDKObject *, GdkEvent *), bool after=false)
 
bool EventDisconnect (int connection)
 

Public Attributes

VDKReadWriteValueProp< VDKEntry, char * > Text
 
VDKReadWriteValueProp< VDKEntry, bool > Editable
 
VDKReadWriteValueProp< VDKEntry, bool > Hidden
 
- Public Attributes inherited from VDKObject
VDKReadWriteValueProp< VDKObject, VDKRgbNormalBackground
 
VDKReadWriteValueProp< VDKObject, VDKFont * > Font
 
SizeObjectProp Usize
 
VDKReadWriteValueProp< VDKObject, bool > Enabled
 
VDKReadWriteValueProp< VDKObject, VDKCursorType > Cursor
 
VDKReadWriteValueProp< VDKObject, bool > Visible
 

Additional Inherited Members

- Protected Attributes inherited from VDKObject
VDKObjectSignal s_clicked
 
GtkWidget * widget
 
GtkWidget * sigwid
 
VDKObjectparent
 

Detailed Description

This class provides a gtkentry wrapper.

SIGNALS
  • activate_signal received when the user presses Enter key
  • changed_signal received when user presses other than an editing key
  • focus_in_signal received when widget gains focus
  • focus_out_signal received when widget looses focus
EXAMPLES
In ./testvdk/entrieswin.cc

Member Function Documentation

◆ AddCompletionItem()

void VDKEntry::AddCompletionItem ( char *  completion_item)

Add a completion word to completion list

Parameters
completion_item

◆ RemoveCompletionItem()

void VDKEntry::RemoveCompletionItem ( char *  completion_item)

Remove a completion word from completion list

Parameters
completion_item

◆ SetBackground()

void VDKEntry::SetBackground ( VDKRgb  color,
GtkStateType  state 
)
virtual

Sets object background

Parameters
colora VDKRgb object
statecan be one of the gtk+ widget states

Reimplemented from VDKObject.

◆ SetCompletion()

void VDKEntry::SetCompletion ( char **  completion_list)

Enables word completion

Parameters
completion_lista NULL terminating string array

◆ SetFont()

void VDKEntry::SetFont ( VDKFont f)
virtual

Sets object font

Reimplemented from VDKObject.

◆ SetForeground()

void VDKEntry::SetForeground ( VDKRgb  color,
GtkStateType  state 
)
virtual

Sets object foreground

Parameters
colora VDKRgb object
statecan be one of the gtk+ widget states

Reimplemented from VDKObject.

Member Data Documentation

◆ Editable

VDKReadWriteValueProp<VDKEntry,bool> VDKEntry::Editable

Enable/disable editing

◆ Hidden

VDKReadWriteValueProp<VDKEntry,bool> VDKEntry::Hidden

Enable/disable text visibility

Tip
Use this property set to true to make a "secret" entry field

◆ Text

VDKReadWriteValueProp<VDKEntry,char*> VDKEntry::Text

Read/write entry text.

char* p = "a text";
entry->Text = p;
printf("\ntext:%s",(char*) entry->Text);
fflush(stdout);

The documentation for this class was generated from the following files: