package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gio/Ocgtk_gio/Gio/Wrappers/Simple_action/index.html
Module Wrappers.Simple_action
type t = [ `simple_action | `object_ ] Gobject.objval new_ : string -> Gvariant_type.t option -> tCreate a new SimpleAction
val new_stateful : string -> Gvariant_type.t option -> Gvariant.t -> tCreate a new SimpleAction
val set_state_hint : t -> Gvariant.t option -> unitSets the state hint for the action.
See g_action_get_state_hint() for more information about action state hints.
val set_state : t -> Gvariant.t -> unitSets the state of the action.
This directly updates the 'state' property to the given value.
This should only be called by the implementor of the action. Users of the action should not attempt to directly modify the 'state' property. Instead, they should call g_action_change_state() to request the change.
If the @value GVariant is floating, it is consumed.
val set_enabled : t -> bool -> unitSets the action as enabled or not.
An action must be enabled in order to be activated or in order to have its state changed from outside callers.
This should only be called by the implementor of the action. Users of the action should not attempt to modify its enabled flag.
val get_name : t -> stringGet property: name
val get_parameter_type : t -> Gvariant_type.tGet property: parameter-type
val get_state_type : t -> Gvariant_type.tGet property: state-type
val on_activate :
?after:bool ->
t ->
callback:(parameter:Gvariant.t -> unit) ->
Gobject.Signal.handler_idval on_change_state :
?after:bool ->
t ->
callback:(value:Gvariant.t -> unit) ->
Gobject.Signal.handler_id