HeFancyButton

HeFancyButton — A fancy button

Synopsis

                    HeFancyButtonPrivate;
                    HeFancyButton;
#define             HE_ICON_PIXEL_SIZE_FANCY_BUTTON
#define             HE_FANCY_BUTTON                     (object)

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBin
                                 +----GtkEventBox
                                       +----HeFancyButton

Implemented Interfaces

HeFancyButton implements AtkImplementorIface and GtkBuildable.

Properties

  "caption"                  gchar*                : Write
  "image-name"               gchar*                : Write
  "image-widget-name"        gchar*                : Write
  "pressed-image-name"       gchar*                : Write

Signals

  "clicked"                                        : Run First

Description

This widget serves as a button. Two icons are used from the icon theme: one for when the button is pressed (via the "pressed-image-name" property), and one for when the button is released (via the "image-name" property). Set the button's caption with the "caption" property. When the button is pressed, the hilight is created using an image from the Hildon theme (/etc/hildon/theme/mediaplayer/Button.png). If this file is not present, a standard GTK+ highlight square is drawn.

Details

HeFancyButtonPrivate

typedef struct _HeFancyButtonPrivate HeFancyButtonPrivate;


HeFancyButton

typedef struct _HeFancyButton HeFancyButton;


HE_ICON_PIXEL_SIZE_FANCY_BUTTON

#define HE_ICON_PIXEL_SIZE_FANCY_BUTTON hildon_get_icon_pixel_size(HE_ICON_SIZE_FANCY_BUTTON)


HE_FANCY_BUTTON()

#define HE_FANCY_BUTTON(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), HE_TYPE_FANCY_BUTTON, HeFancyButton))

object :

Property Details

The "caption" property

  "caption"                  gchar*                : Write

Button caption.

Default value: NULL


The "image-name" property

  "image-name"               gchar*                : Write

Name of image when released.

Default value: NULL


The "image-widget-name" property

  "image-widget-name"        gchar*                : Write

Name of image widget.

Default value: NULL


The "pressed-image-name" property

  "pressed-image-name"       gchar*                : Write

Name of image when pressed.

Default value: NULL

Signal Details

The "clicked" signal

void                user_function                      (HeFancyButton *hefancybutton,
                                                        gpointer       user_data)          : Run First

hefancybutton : the object which received the signal.
user_data : user data set when the signal handler was connected.