Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.Toolbar

Class Toolbar

dui.ObjectG.ObjectG
        dui.DUIObject.DUIObject
                dui.Widget.Widget
                        dui.Container.Container
                                dui.Toolbar.Toolbar

Implemented interfaces:


public class

Toolbar



A container for a set of frequently used tools.

Constructor Summary
(GtkWidget* gtkWidget)
          
public ()
          Creates a new toolbar

Methods Summary
public static GType getType()
          Gets this class type
Widget appentItem(char text, char tooltipText, char tooltipPrivateText, Widget icon, GtkSignalFunc callback, gpointer userData)
          /* Simple button items
Widget prependItem(char text, char tooltipText, char tooltipPrivateText, Widget icon, GtkSignalFunc callback, gpointer userData)
          
Widget insertItem(char text, char tooltipText, char tooltipPrivateText, Widget icon, GtkSignalFunc callback, gpointer userData, gint position)
          
Widget insertStock(Stock stockID, char tooltipText, char tooltipPrivateText, gint position)
          /* Stock Items
void appendSpace()
          /* Space Items Insert a spacing at the current last position
void prependSpace()
          Insert a spaceing at the begining
void insertSpace(gint position)
          Insert a spaceing at any postion
void removeSpace(gint position)
          Remove a spacing from any position
void appendWidget(Widget child, char tooltipText, char tooltipPrivateText)
          
void prependWidget(Widget child, char tooltipText, char tooltipPrivateText)
          Preppend any widget to start of this toolbar.
void insertWidget(Widget child, char tooltipText, char tooltipPrivateText, gint position)
          Insert any widget to any postion of this toolbar.
void setOrientation(GtkOrientation orientation)
          /* Style functions Set the toolbar orientation
void setStyle(GtkToolbarStyle style)
          Sets the toolbar style
void setIconSize(IconSize icon_size)
          Sets the icon size.
void setTooltips(bit enable)
          Sets if the tooltips are enabled
void unsetStyle()
          unset the toolbar style
void unsetIconStyle()
          unsets the icon style
GtkOrientation getOrientation()
          Gets the toolbar orientation
GtkToolbarStyle getStyleToolbar()
          Gets the toolbar style
GtkIconSize getIconSize()
          Gets the toolbar icon size
bit getTooltips()
          Gets the toolbar tooltips???


getType

public static GType getType()
Gets this class type

Returns:
this class type



ctor(Toolbar)(GtkWidget* gtkWidget)



public ctor(Toolbar)()
Creates a new toolbar

appentItem

Widget appentItem(char text, char tooltipText, char tooltipPrivateText, Widget icon, GtkSignalFunc callback, gpointer userData)
/* Simple button items

prependItem

Widget prependItem(char text, char tooltipText, char tooltipPrivateText, Widget icon, GtkSignalFunc callback, gpointer userData)

insertItem

Widget insertItem(char text, char tooltipText, char tooltipPrivateText, Widget icon, GtkSignalFunc callback, gpointer userData, gint position)

insertStock

Widget insertStock(Stock stockID, char tooltipText, char tooltipPrivateText, gint position)
/* Stock Items

appendSpace

void appendSpace()
/* Space Items Insert a spacing at the current last position

prependSpace

void prependSpace()
Insert a spaceing at the begining

insertSpace

void insertSpace(gint position)
Insert a spaceing at any postion

Parameters:
position - the position where to insert the spacing

removeSpace

void removeSpace(gint position)
Remove a spacing from any position

Parameters:
position - the spacing position

appendWidget

void appendWidget(Widget child, char tooltipText, char tooltipPrivateText)

prependWidget

void prependWidget(Widget child, char tooltipText, char tooltipPrivateText)
Preppend any widget to start of this toolbar.

Parameters:
child - the widget to append
tooltipText - the tooltip text
tooltipPrivateText -

insertWidget

void insertWidget(Widget child, char tooltipText, char tooltipPrivateText, gint position)
Insert any widget to any postion of this toolbar.

Parameters:
child - the widget to append
tooltipText - the tooltip text
tooltipPrivateText -
position -

setOrientation

void setOrientation(GtkOrientation orientation)
/* Style functions Set the toolbar orientation

Parameters:
orientation -

setStyle

void setStyle(GtkToolbarStyle style)
Sets the toolbar style

Parameters:
style - the new toolbar style

setIconSize

void setIconSize(IconSize icon_size)
Sets the icon size.
This is from the standard icon size, not an arbitrary icon size

Parameters:
icon_size - the standard icon size

setTooltips

void setTooltips(bit enable)
Sets if the tooltips are enabled

Parameters:
enable - if true the tooltips are eabled

unsetStyle

void unsetStyle()
unset the toolbar style

unsetIconStyle

void unsetIconStyle()
unsets the icon style

getOrientation

GtkOrientation getOrientation()
Gets the toolbar orientation

Returns:
the toolbar orientation

getStyleToolbar

GtkToolbarStyle getStyleToolbar()
Gets the toolbar style

Returns:
the toolbar style

getIconSize

GtkIconSize getIconSize()
Gets the toolbar icon size

Returns:
the icon size

getTooltips

bit getTooltips()
Gets the toolbar tooltips???

Returns:
true if