vdk 2.4.0
|
Provides a simplified wrapper for gtkcombo. More...
#include <combo.h>
Public Member Functions | |
VDKCombo (VDKForm *owner, char *def=(char *) NULL, GtkWidget *combo=NULL) | |
void | SetBackground (VDKRgb rgb, GtkStateType state) |
![]() | |
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 () |
VDKForm * | Owner () |
virtual GtkWidget * | Widget () |
GtkWidget * | ConnectingWidget () |
GtkWidget * | WrappedWidget () |
virtual void | SetFont (VDKFont *f) |
VDKFont * | GetFont () |
void | SetVisible (bool visible) |
bool | GetVisible () |
void | SetCursor (VDKCursorType) |
VDKCursorType | GetCursor () |
virtual void | SetForeground (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) |
ItemList & | Items () |
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 () |
VDKObject * | Parent (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 < VDKCombo, char * > | Text |
VDKReadWriteValueProp < VDKCombo, bool > | Editable |
VDKReadWriteValueProp < VDKCombo, bool > | Sorted |
VDKReadWriteValueProp < VDKCombo, bool > | Hidden |
VDKReadWriteValueProp < VDKCombo, bool > | CaseSensitive |
VDKReadWriteValueProp < VDKCombo, StringList > | PopdownStrings |
VDKReadOnlyValueProp< VDKCombo, int > | Selected |
![]() | |
VDKReadWriteValueProp < VDKObject, VDKRgb > | NormalBackground |
VDKReadWriteValueProp < VDKObject, VDKFont * > | Font |
SizeObjectProp | Usize |
VDKReadWriteValueProp < VDKObject, bool > | Enabled |
VDKReadWriteValueProp < VDKObject, VDKCursorType > | Cursor |
VDKReadWriteValueProp < VDKObject, bool > | Visible |
Additional Inherited Members | |
![]() | |
VDKObjectSignal | s_clicked |
GtkWidget * | widget |
GtkWidget * | sigwid |
VDKObject * | parent |
Provides a simplified wrapper for gtkcombo.
VDKCombo::VDKCombo | ( | VDKForm * | owner, |
char * | def = (char*) NULL , |
||
GtkWidget * | combo = NULL |
||
) |
Constructor
def | is an optional initial value to be shown in the Entrybox. |
combo | internal use, leave it as NULL. |
|
virtual |
VDKReadWriteValueProp<VDKCombo,bool> VDKCombo::CaseSensitive |
Default: false. Whether the Combo box should check for equality in the list case-sensitive or not.
VDKReadWriteValueProp<VDKCombo,bool> VDKCombo::Editable |
Same as Editable property in VDKEntry. Setting it to false allows you to provide a read-only list to select from, without the user being able to enter text.
VDKReadWriteValueProp<VDKCombo,StringList> VDKCombo::PopdownStrings |
A StringList corresponding to the Text of the Listitems. Use this function to add items to the list,
Since StringList is of type VDKValueList<VDKString> you can use all functions of VDKValueList to manipulate the list. It is very convenient to access the StringList by index:
VDKReadOnlyValueProp<VDKCombo,int> VDKCombo::Selected |
Returns the index of the currently selected item in the dropdown list or -1 if no item is selected. See PopdownStrings for example usage.
VDKReadWriteValueProp<VDKCombo,bool> VDKCombo::Sorted |
Default: false. Setting Sorted to true will automatically sort the listitems alphabetically and maintain the list sorted whenever a new item is added
VDKReadWriteValueProp<VDKCombo,char*> VDKCombo::Text |
Set/Get the text in the Entry