vdk 2.4.0
Public Member Functions | Public Attributes
VDKToolbar Class Reference

Provides a GtkToobar wrapper. More...

#include <toolbar.h>

Inheritance diagram for VDKToolbar:
VDKObjectContainer VDKObject VDKNotCopyAble

List of all members.

Public Member Functions

Public Attributes


Detailed Description

Provides a GtkToobar wrapper.

SIGNALS
  • clicked_signal received whenever a tool button was pressed
EXAMPLES
In ./testvdk/tbarwin.cc

Constructor & Destructor Documentation

VDKToolbar::VDKToolbar ( VDKForm owner,
GtkOrientation  orientation = GTK_ORIENTATION_HORIZONTAL 
)

Constructor.

Parameters:
owner
orientationsee Orientation() property
virtual VDKToolbar::~VDKToolbar ( ) [inline, virtual]

Destructor


Member Function Documentation

virtual void VDKToolbar::Add ( VDKObject obj,
int  ,
int  ,
int  ,
int   
) [inline, virtual]

Adds an object to toolbar

Parameters:
objobject to be added
othersignored

Reimplemented from VDKObjectContainer.

void VDKToolbar::AddButton ( char **  pixdata,
char *  tip = NULL,
char *  text = NULL 
)

Adds a button to toolbar

Parameters:
pixdata
tipassigned tip
textassigned label
void VDKToolbar::AddButton ( char *  pixfile,
char *  tip = NULL,
char *  text = NULL 
)

Adds a button to toolbar

Parameters:
pixfile
tipassigned tip
textassigned label
void VDKToolbar::AddSpace ( ) [inline]

Add a space to toolbar

void VDKToolbar::AddWidget ( VDKObject widget,
char *  tip = NULL 
)

Adds an object to toolbar

Parameters:
objobject to be added
tip

Member Data Documentation

VDKReadWriteValueProp<VDKToolbar, bool> VDKToolbar::Borderless

Sets/gets border flag, defaults to true.

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:

  • GTK_ORIENTATION_HORIZONTAL
  • GTK_ORIENTATION_VERTICAL
VDKReadWriteValueProp<VDKToolbar, GtkReliefStyle> VDKToolbar::Relief

Sets/gets button relief, defaults to: GTK_RELIEF_NONE. Can be:

  • GTK_RELIEF_NORMAL
  • GTK_RELIEF_HALF
  • GTK_RELIEF_NONE
VDKReadWriteValueProp<VDKToolbar, GtkToolbarSpaceStyle> VDKToolbar::SpaceStyle

Sets/gets toolbar space style,defaults to: GTK_TOOLBAR_SPACE_LINE. Can be:

  • GTK_TOOLBAR_SPACE_EMPTY
  • GTK_TOOLBAR_SPACE_LINE
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:

  • GTK_TOOLBAR_ICONS shows icons only
  • GTK_TOOLBAR_TEXT shows labels only
  • GTK_TOOLBAR_BOTH shiws both label and icons

Returns a list of VDKObject* other than buttons inserted into toolbar


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