vdk 2.4.0
Public Member Functions | Public Attributes
VDKEntry Class Reference

This class provides a gtkentry wrapper. More...

#include <entry.h>

Inheritance diagram for VDKEntry:
VDKObject VDKNotCopyAble

List of all members.

Public Member Functions

Public Attributes


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

void VDKEntry::AddCompletionItem ( char *  completion_item)

Add a completion word to completion list

Parameters:
completion_item
void VDKEntry::RemoveCompletionItem ( char *  completion_item)

Remove a completion word from completion list

Parameters:
completion_item
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.

void VDKEntry::SetCompletion ( char **  completion_list)

Enables word completion

Parameters:
completion_lista NULL terminating string array
void VDKEntry::SetFont ( VDKFont f) [virtual]

Sets object font

Reimplemented from VDKObject.

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

VDKReadWriteValueProp<VDKEntry,bool> VDKEntry::Editable

Enable/disable editing

VDKReadWriteValueProp<VDKEntry,bool> VDKEntry::Hidden

Enable/disable text visibility

Tip
Use this property set to true to make a "secret" entry field
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: