Action
Object Hierarchy:
Description:
[ CCode ( type_id = "mx_action_get_type ()" ) ]
public class Action : InitiallyUnowned, Action
The contents of this structure are private and should only be accessed through the public API.
Content:
Properties:
Creation methods:
- public Action ()
Creates a new, blank, Action
- public Action.full (string name, string display_name, ActionCallbackFunc? activated_cb)
Creates a new Action with the name and
callback set
- public Action.stateful (string name, VariantType? parameter_type, Variant state)
Creates a new stateful action.
- public Action.with_parameter (string name, VariantType? parameter_type)
Creates a new action with a parameter.
Methods:
- public bool get_active ()
Get the value of the active property
- public unowned string get_display_name ()
Get the display name of the action
- public unowned string get_icon ()
Get the icon of the action
- public void set_active (bool active)
Set the value of the active property
- public void set_display_name (string name)
Set the name of the action to display to the user
- public void set_icon (string name)
The icon to be used in a visual representation of an action.
- public void set_name (string name)
Set the name of the action
Signals:
Inherited Members:
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 GLib.Action
- activate
- change_state
- enabled
- get_enabled
- get_name
- get_parameter_type
- get_state
- get_state_hint
- get_state_type
- name
- name_is_valid
- parameter_type
- parse_detailed_name
- print_detailed_name
- state
- state_type