vdk 2.4.0
|
Provides a GtkToobar wrapper. More...
#include <toolbar.h>
Public Member Functions | |
VDKToolbar (VDKForm *owner, GtkOrientation orientation=GTK_ORIENTATION_HORIZONTAL) | |
virtual | ~VDKToolbar () |
virtual void | Add (VDKObject *obj, int, int, int, int) |
void | AddWidget (VDKObject *widget, char *tip=NULL) |
void | AddButton (char **pixdata, char *tip=NULL, char *text=NULL) |
void | AddButton (char *pixfile, char *tip=NULL, char *text=NULL) |
void | AddSpace () |
![]() | |
int | BorderWidth (int w=-1) |
void | RemoveObject (VDKObject *obj) |
virtual void | RemoveObjectFromContainer (VDKObject *obj) |
void | RemoveObjects () |
VDKObject * | FindTag (int tag) |
void | ForEachDo (void(*action)(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 () |
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) |
virtual void | SetBackground (VDKRgb color, GtkStateType state=GTK_STATE_NORMAL) |
void | SetSize (int w, int h) |
void | SetUsize (VDKPoint s) |
virtual void | SetTip (char *) |
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 | |
VDKReadOnlyValueProp < VDKToolbar, ToolWidgetList * > | WidgetList |
VDKReadOnlyValueProp < VDKToolbar, GtkWidgetList * > | ButtonList |
VDKReadOnlyValueProp < VDKToolbar, int > | ButtonPressed |
VDKReadWriteValueProp < VDKToolbar, GtkOrientation > | Orientation |
VDKReadWriteValueProp < VDKToolbar, GtkToolbarStyle > | Style |
VDKReadWriteValueProp < VDKToolbar, GtkToolbarSpaceStyle > | SpaceStyle |
VDKReadWriteValueProp < VDKToolbar, bool > | Borderless |
VDKReadWriteValueProp < VDKToolbar, GtkReliefStyle > | Relief |
VDKReadWriteValueProp < VDKToolbar, int > | Spacing |
Additional Inherited Members | |
![]() | |
VDKObjectSignal | s_clicked |
GtkWidget * | widget |
GtkWidget * | sigwid |
VDKObject * | parent |
Provides a GtkToobar wrapper.
VDKToolbar::VDKToolbar | ( | VDKForm * | owner, |
GtkOrientation | orientation = GTK_ORIENTATION_HORIZONTAL |
||
) |
Constructor.
owner | |
orientation | see Orientation() property |
|
inlinevirtual |
Destructor
|
inlinevirtual |
Adds an object to toolbar
obj | object to be added |
others | ignored |
Reimplemented from VDKObjectContainer.
void VDKToolbar::AddButton | ( | char ** | pixdata, |
char * | tip = NULL , |
||
char * | text = NULL |
||
) |
Adds a button to toolbar
pixdata | |
tip | assigned tip |
text | assigned label |
void VDKToolbar::AddButton | ( | char * | pixfile, |
char * | tip = NULL , |
||
char * | text = NULL |
||
) |
Adds a button to toolbar
pixfile | |
tip | assigned tip |
text | assigned label |
|
inline |
Add a space to toolbar
void VDKToolbar::AddWidget | ( | VDKObject * | widget, |
char * | tip = NULL |
||
) |
Adds an object to toolbar
obj | object to be added |
tip |
VDKReadWriteValueProp<VDKToolbar, bool> VDKToolbar::Borderless |
Sets/gets border flag, defaults to true.
VDKReadOnlyValueProp<VDKToolbar, GtkWidgetList*> VDKToolbar::ButtonList |
Returns a list of GtkWidget* inserted into toolbar
VDKReadOnlyValueProp<VDKToolbar, int> VDKToolbar::ButtonPressed |
Returns ordinal number of pressed button after a clicked_signal
VDKReadWriteValueProp<VDKToolbar, GtkOrientation> VDKToolbar::Orientation |
Returns toolbar orientation, defaults to GTK_ORIENTATION_HORIZONTAL. Can be:
VDKReadWriteValueProp<VDKToolbar, GtkReliefStyle> VDKToolbar::Relief |
Sets/gets button relief, defaults to: GTK_RELIEF_NONE. Can be:
VDKReadWriteValueProp<VDKToolbar, GtkToolbarSpaceStyle> VDKToolbar::SpaceStyle |
Sets/gets toolbar space style,defaults to: GTK_TOOLBAR_SPACE_LINE. Can be:
VDKReadWriteValueProp<VDKToolbar, int> VDKToolbar::Spacing |
Sets/gets spacing between buttons.
VDKReadWriteValueProp<VDKToolbar, GtkToolbarStyle> VDKToolbar::Style |
Sets/gets toolbar style, defaults to GTK_TOOLBAR_ICONS. Can be:
VDKReadOnlyValueProp<VDKToolbar, ToolWidgetList*> VDKToolbar::WidgetList |
Returns a list of VDKObject* other than buttons inserted into toolbar