GdauiBar

GdauiBar

Synopsis

                    GdauiBarPrivate;
struct              GdauiBar;
GtkWidget *         gdaui_bar_new                       (const gchar *text);
const gchar *       gdaui_bar_get_text                  (GdauiBar *bar);
void                gdaui_bar_set_text                  (GdauiBar *bar,
                                                         const gchar *text);
void                gdaui_bar_set_icon_from_pixbuf      (GdauiBar *bar,
                                                         GdkPixbuf *pixbuf);
void                gdaui_bar_set_icon_from_file        (GdauiBar *bar,
                                                         const gchar *file);
void                gdaui_bar_set_icon_from_stock       (GdauiBar *bar,
                                                         const gchar *stock_id,
                                                         GtkIconSize size);
void                gdaui_bar_set_show_icon             (GdauiBar *bar,
                                                         gboolean show);
gboolean            gdaui_bar_get_show_icon             (GdauiBar *bar);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkWidget
               +----GtkContainer
                     +----GtkBox
                           +----GdauiBar

Implemented Interfaces

GdauiBar implements AtkImplementorIface, GtkBuildable and GtkOrientable.

Properties

  "show-icon"                gboolean              : Read / Write
  "text"                     gchar*                : Read / Write

Description

Details

GdauiBarPrivate

typedef struct _GdauiBarPrivate GdauiBarPrivate;

struct GdauiBar

struct GdauiBar;

gdaui_bar_new ()

GtkWidget *         gdaui_bar_new                       (const gchar *text);

Creates a new GdauiBar object.

Returns :

a new GdauiBar object

gdaui_bar_get_text ()

const gchar *       gdaui_bar_get_text                  (GdauiBar *bar);

Get the text being displayed in the given gray bar widget. This does not include any embedded underlines indicating mnemonics or Pango markup.

bar :

a GdauiBar widget.

Returns :

the text in the widget.

gdaui_bar_set_text ()

void                gdaui_bar_set_text                  (GdauiBar *bar,
                                                         const gchar *text);

Set the text displayed in the given gray bar widget. This can include embedded underlines indicating mnemonics or Pango markup.

bar :

a GdauiBar widget

text :

a string

gdaui_bar_set_icon_from_pixbuf ()

void                gdaui_bar_set_icon_from_pixbuf      (GdauiBar *bar,
                                                         GdkPixbuf *pixbuf);

gdaui_bar_set_icon_from_file ()

void                gdaui_bar_set_icon_from_file        (GdauiBar *bar,
                                                         const gchar *file);

gdaui_bar_set_icon_from_stock ()

void                gdaui_bar_set_icon_from_stock       (GdauiBar *bar,
                                                         const gchar *stock_id,
                                                         GtkIconSize size);

gdaui_bar_set_show_icon ()

void                gdaui_bar_set_show_icon             (GdauiBar *bar,
                                                         gboolean show);

Set the icon displaying mode for the given grid.

bar :

a GdauiBar widget.

show :

whether to show the icon or not.

gdaui_bar_get_show_icon ()

gboolean            gdaui_bar_get_show_icon             (GdauiBar *bar);

Get whether the icon is being shown for the given gray bar.

bar :

a GdauiBar widget.

Returns :

TRUE if the icon is shown, FALSE if not.

Property Details

The "show-icon" property

  "show-icon"                gboolean              : Read / Write

Default value: FALSE


The "text" property

  "text"                     gchar*                : Read / Write

Text showed inside the widget.

Default value: NULL