Button
Object Hierarchy:
Description:
[
CCode ( type_id =
"mx_button_get_type ()" ) ]
public class Button :
Widget,
Implementor,
Animatable,
Container,
Scriptable,
Focusable,
Stylable
The contents of this structure is private and should only be accessed using the provided API.
Content:
Properties:
Creation methods:
Methods:
- public unowned Action get_action ()
Retrieves the Action
associated with this.
- public unowned string get_icon_name ()
Get the icon-name being used on the button.
- public Position get_icon_position ()
Retrieves the icon's relative position to the text.
- public uint get_icon_size ()
Retrieves the icon-size being used for the displayed icon inside the
button.
- public bool get_icon_visible ()
Retrieves the visibility of the icon associated with the button's
action.
- public bool get_is_toggle ()
Get the toggle mode status of the button.
- public unowned string get_label ()
Get the text displayed on the button
- public bool get_label_visible ()
Retrieves the visibility of the text associated with the button's
action.
- public bool get_toggled ()
Get the state of the button that is in toggle mode.
- public void set_action (Action action)
Sets action
as the action for
this.
- public void set_icon_name (string? icon_name)
Sets the icon-name used to display an icon on the button.
- public void set_icon_position (Position position)
Sets the icon position, relative to the text on the button.
- public void set_icon_size (uint icon_size)
Sets the icon-size to use for the icon displayed inside the button.
- public void set_icon_visible (bool visible)
Sets the visibility of the icon associated with the button's action.
- public void set_is_toggle (bool toggle)
Enables or disables toggle mode for the button.
- public void set_label (string text)
Sets the text displayed on the button
- public void set_label_visible (bool visible)
Sets the visibility of the text associated with the button's action.
- public void set_toggled (bool toggled)
Sets the toggled state of the button.
Signals:
Inherited Members:
All known members inherited from class Mx.Widget
All known members inherited from class Clutter.Actor
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface Atk.Implementor
All known members inherited from interface Clutter.Animatable
- animate_property
- find_property
- get_initial_state
- interpolate_value
All known members inherited from interface Clutter.Container
- @foreach
- actor_added
- actor_removed
- add
- add_actor
- add_valist
- child_get
- child_get_property
- child_notify
- child_set
- child_set_property
- class_find_child_property
- class_list_child_properties
- create_child_meta
- destroy_child_meta
- find_child_by_name
- find_child_property
- foreach_with_internals
- get_child_meta
- get_children
- list_child_properties
- lower_child
- raise_child
- remove
- remove_actor
- remove_valist
- sort_depth_order
All known members inherited from interface Clutter.Scriptable
All known members inherited from interface Mx.Focusable
All known members inherited from interface Mx.Stylable