Class Index Cross Index Namespace Index

Class Gtk::HButtonBox

A container for arranging buttons horizontally.
Contained in: Gtk
Derived from: Gtk::ButtonBox
Derived by: none

#include <gtk--/buttonbox.h>


public function member index:

HButtonBox(GtkButtonBoxStyle layout = GTK_BUTTONBOX_DEFAULT_STYLE, gint spacing = GTK_BUTTONBOX_DEFAULT);
static GtkButtonBoxStyle get_layout_default();
static gint get_spacing_default();
GtkHButtonBox* gtkobj();
const GtkHButtonBox* gtkobj() const;
static bool isA(Object* object);
static void set_layout_default(GtkButtonBoxStyle layout);
static void set_spacing_default(gint spacing);
virtual ~HButtonBox();
 

Description:

A button box should be used to provide a consistent layout of buttons throughout your application. There is one default layout and a default spacing value that are persistant across all HButtonBox widgets.

The layout/spacing can then be altered by the programmer, or if desired, by the user to alter the 'feel' of a program to a small degree.


Function Member Descriptions:

Gtk::HButtonBox::HButtonBox - Constructor.

HButtonBox(GtkButtonBoxStyle layout = GTK_BUTTONBOX_DEFAULT_STYLE, gint spacing = GTK_BUTTONBOX_DEFAULT);
layout: The way in which buttons will fit into the box. One of: GTK_BUTTONBOX_DEFAULT_STYLE, GTK_BUTTONBOX_SPREAD, GTK_BUTTONBOX_EDGE, GTK_BUTTONBOX_START, GTK_BUTTONBOX_END

spacing: The number of pixels between widgets.



Gtk::HButtonBox::get_layout_default - Retrieves the current layout used to arrange buttons in button box widgets.

static GtkButtonBoxStyle get_layout_default();
Returns: The current GtkButtonBoxStyle.


Gtk::HButtonBox::get_spacing_default - Retrieves the current default spacing for horizontal button boxes.

static gint get_spacing_default();
This is the number of pixels to be placed between the buttons when they are arranged.

Returns: The default number of pixels between buttons.



Gtk::HButtonBox::gtkobj - Returns the underlaying gtk+ object.

GtkHButtonBox* gtkobj();

Gtk::HButtonBox::isA - Returns true if object is this type.

static bool isA(Object* object);

Gtk::HButtonBox::set_layout_default - Sets a new layout mode that will be used by all button boxes.

static void set_layout_default(GtkButtonBoxStyle layout);
layout: A new GtkButtonBoxStyle.


Gtk::HButtonBox::set_spacing_default - Changes the default spacing that is placed between widgets in an horizontal button box.

static void set_spacing_default(gint spacing);
spacing: an integer value.