GtkToggleAction
GtkToggleAction — An action which can be toggled between two states
|
|
Implemented Interfaces
GtkToggleAction implements
GtkBuildable.
Includes
#include <gtk/gtk.h>
Functions
gtk_toggle_action_toggled ()
void
gtk_toggle_action_toggled (GtkToggleAction *action);
gtk_toggle_action_toggled has been deprecated since version 3.10 and should not be used in newly-written code.
Emits the “toggled” signal on the toggle action.
Since: 2.4
gtk_toggle_action_set_active ()
void
gtk_toggle_action_set_active (GtkToggleAction *action,
gboolean is_active);
gtk_toggle_action_set_active has been deprecated since version 3.10 and should not be used in newly-written code.
Sets the checked state on the toggle action.
Since: 2.4
gtk_toggle_action_get_active ()
gboolean
gtk_toggle_action_get_active (GtkToggleAction *action);
gtk_toggle_action_get_active has been deprecated since version 3.10 and should not be used in newly-written code.
Returns the checked state of the toggle action.
Returns
the checked state of the toggle action
Since: 2.4
gtk_toggle_action_set_draw_as_radio ()
void
gtk_toggle_action_set_draw_as_radio (GtkToggleAction *action,
gboolean draw_as_radio);
gtk_toggle_action_set_draw_as_radio has been deprecated since version 3.10 and should not be used in newly-written code.
Sets whether the action should have proxies like a radio action.
Since: 2.4
gtk_toggle_action_get_draw_as_radio ()
gboolean
gtk_toggle_action_get_draw_as_radio (GtkToggleAction *action);
gtk_toggle_action_get_draw_as_radio has been deprecated since version 3.10 and should not be used in newly-written code.
Returns whether the action should have proxies like a radio action.
Returns
whether the action should have proxies like a radio action.
Since: 2.4
Types and Values
struct GtkToggleAction
struct GtkToggleAction;
Property Details
The “active” property
“active” gboolean
Whether the toggle action should be active.
GtkToggleAction:active has been deprecated since version 3.10 and should not be used in newly-written code.
Owner: GtkToggleAction
Flags: Read / Write
Default value: FALSE
Since: 2.10
The “draw-as-radio” property
“draw-as-radio” gboolean
Whether the proxies for this action look like radio action proxies.
This is an appearance property and thus only applies if
“use-action-appearance” is TRUE.
GtkToggleAction:draw-as-radio has been deprecated since version 3.10 and should not be used in newly-written code.
Owner: GtkToggleAction
Flags: Read / Write
Default value: FALSE
Signal Details
The “toggled” signal
void
user_function (GtkToggleAction *toggleaction,
gpointer user_data)
Should be connected if you wish to perform an action
whenever the GtkToggleAction state is changed.
GtkToggleAction::toggled has been deprecated since version 3.10 and should not be used in newly-written code.
Flags: Run First