XfceArrowButton

XfceArrowButton —

Toggle button with arrow.

Synopsis




            XfceArrowButton;
GtkWidget*  xfce_arrow_button_new           (GtkArrowType type);
void        xfce_arrow_button_set_arrow_type
                                            (XfceArrowButton *button,
                                             GtkArrowType type);
GtkArrowType xfce_arrow_button_get_arrow_type
                                            (XfceArrowButton *button);

Object Hierarchy


  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBin
                                 +----GtkButton
                                       +----GtkToggleButton
                                             +----XfceArrowButton

Implemented Interfaces

XfceArrowButton implements AtkImplementorIface.

Properties


  "arrow-type"           GtkArrowType          : Read / Write

Signals


"arrow-type-changed"
            void        user_function      (XfceArrowButton *button,
                                            GtkArrowType    *type,
                                            gpointer         user_data)      : Run first

Description

Toggle button with arrow. The arrow direction will be inverted when the button is toggled.

Details

XfceArrowButton

typedef struct _XfceArrowButton XfceArrowButton;

The XfceArrowButton-struct struct contains private data only, and should be accessed using the functions below.


xfce_arrow_button_new ()

GtkWidget*  xfce_arrow_button_new           (GtkArrowType type);

type : GtkArrowType for the arrow button
Returns : newly created XfceArrowButton widget.

xfce_arrow_button_set_arrow_type ()

void        xfce_arrow_button_set_arrow_type
                                            (XfceArrowButton *button,
                                             GtkArrowType type);

Sets the arrow type for button.

button : an XfceArrowButton
type : new GtkArrowType to set

xfce_arrow_button_get_arrow_type ()

GtkArrowType xfce_arrow_button_get_arrow_type
                                            (XfceArrowButton *button);

button : an XfceArrowButton
Returns : the GtkArrowType of button.

Property Details

The "arrow-type" property

  "arrow-type"           GtkArrowType          : Read / Write

The arrow type of the button. This value also determines the direction of the popup menu.

Default value: GTK_ARROW_UP

Signal Details

The "arrow-type-changed" signal

void        user_function                  (XfceArrowButton *button,
                                            GtkArrowType    *type,
                                            gpointer         user_data)      : Run first

Emitted when the arrow direction of the menu button changes. This value also determines the direction of the popup menu.

button : the object which emitted the signal
type : the new GtkArrowType of the button
user_data : user data set when the signal handler was connected.

See Also

GtkToggleButton