Top | ![]() |
![]() |
![]() |
![]() |
MateMixerSwitchOption * | active-option | Read / Write / Construct Only |
MateMixerSwitchFlags | flags | Read / Write / Construct Only |
gchar * | label | Read / Write / Construct Only |
gchar * | name | Read / Write / Construct Only |
MateMixerSwitchRole | role | Read / Write / Construct Only |
enum | MateMixerSwitchFlags |
enum | MateMixerSwitchRole |
MateMixerSwitch | |
struct | MateMixerSwitchClass |
const gchar *
mate_mixer_switch_get_name (MateMixerSwitch *swtch
);
Gets the name of the switch.
The name serves as a unique identifier and in most cases it is not in a user-readable form.
const gchar *
mate_mixer_switch_get_label (MateMixerSwitch *swtch
);
Gets the label of the switch.
This is a potentially translated string that should be presented to users in the user interface.
MateMixerSwitchFlags
mate_mixer_switch_get_flags (MateMixerSwitch *swtch
);
Gets the flags of the switch. See MateMixerSwitchFlags for information about the meaning of the individual flags.
MateMixerSwitchRole
mate_mixer_switch_get_role (MateMixerSwitch *swtch
);
Gets the role of the switch. The role identifies the purpose of the switch.
Note that while the role identification should be reliable, it may be based on looking for well-known switch names on some sound systems.
MateMixerSwitchOption * mate_mixer_switch_get_option (MateMixerSwitch *swtch
,const gchar *name
);
Gets the MateMixerSwitchOption with the given name.
const GList *
mate_mixer_switch_list_options (MateMixerSwitch *swtch
);
Gets the list of switch options that belong to the switch.
The returned GList is owned by the MateMixerSwitch and may be invalidated at any time.
MateMixerSwitchOption *
mate_mixer_switch_get_active_option (MateMixerSwitch *swtch
);
Gets the MateMixerSwitchOption which is currently active.
gboolean mate_mixer_switch_set_active_option (MateMixerSwitch *swtch
,MateMixerSwitchOption *option
);
Changes the currently active switch option.
typedef struct _MateMixerSwitch MateMixerSwitch;
The MateMixerSwitch structure contains only private data and should only be accessed using the provided API.
struct MateMixerSwitchClass { GObjectClass parent_class; };
The class structure for MateMixerSwitch.
“active-option”
property“active-option” MateMixerSwitchOption *
Active option of the switch.
Flags: Read / Write / Construct Only
“flags”
property“flags” MateMixerSwitchFlags
Flags of the switch.
Flags: Read / Write / Construct Only
“label”
property“label” gchar *
Label of the switch.
Flags: Read / Write / Construct Only
Default value: NULL
“name”
property“name” gchar *
Name of the switch.
Flags: Read / Write / Construct Only
Default value: NULL
“role”
property“role” MateMixerSwitchRole
Role of the switch.
Flags: Read / Write / Construct Only
Default value: MATE_MIXER_SWITCH_ROLE_UNKNOWN