vdk 2.4.0
|
Containers base class. More...
#include <widcontain.h>
Public Member Functions | |
int | BorderWidth (int w=-1) |
virtual void | Add (VDKObject *obj, int justify=l_justify, int expand=TRUE, int fill=TRUE, int padding=0) |
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) |
Additional Inherited Members | |
![]() | |
VDKReadWriteValueProp< VDKObject, VDKRgb > | NormalBackground |
VDKReadWriteValueProp< VDKObject, VDKFont * > | Font |
SizeObjectProp | Usize |
VDKReadWriteValueProp< VDKObject, bool > | Enabled |
VDKReadWriteValueProp< VDKObject, VDKCursorType > | Cursor |
VDKReadWriteValueProp< VDKObject, bool > | Visible |
![]() | |
VDKObjectSignal | s_clicked |
GtkWidget * | widget |
GtkWidget * | sigwid |
VDKObject * | parent |
Containers base class.
This class provides a container widget, common class for specialized containers such as VDKBox, VDKTable etc. User should not construct explicitely this kind of object.
|
virtual |
Add an object.
Reimplemented from VDKObject.
Reimplemented in VDKMenubar, VDKNotebook, VDKToolbar, VDKRadioButtonGroup, VDKFrame, VDKMenu, VDKTable, VDKScrolled, VDKBox, VDKHandleBox, VDKPaned, VDKFixed, and VDKEventBox.
|
inline |
Sets container border width
w | returns border width if is < 0 |
VDKObject * VDKObjectContainer::FindTag | ( | int | tag | ) |
Find an object with Tag==tag, NULL if fails
tag | value to be searched |
void VDKObjectContainer::ForEachDo | ( | void(*)(VDKObject *) | action | ) |
Apply user defined functions to each contained object
|
inline |
Remove an object from container, object will be destroyed
obj | object to be removed |
|
virtual |
This function will remove an object from a container without destroying it.
obj | object to be removed Tip: should be used to reparent an widget, or it will leak. Example: // remove from source container // referencing it otherwise will be destroyed by gtk+ source->RemoveObjectFromContainer(widget); // add to target container target->Add(widget); // set target as parent to redirect signal flow widget->Parent(target); // unref widget again (or it will leak) gtk_widget_unref(widget->Widget()); |
void VDKObjectContainer::RemoveObjects | ( | ) |
Remove all objects from container destroying them