package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Scale_button/index.html
Module Wrappers.Scale_button
type t =
[ `scale_button | `widget | `initially_unowned | `object_ ] Gobject.objval new_ : float -> float -> float -> string array option -> tCreate a new ScaleButton
val set_value : t -> float -> unitSets the current value of the scale.
If the value is outside the minimum or maximum range values, it will be clamped to fit inside them.
The scale button emits the signal@Gtk.ScaleButton::value-changed signal if the value changes.
val set_icons : t -> string array -> unitSets the icons to be used by the scale button.
val set_has_frame : t -> bool -> unitSets the style of the button.
val set_adjustment :
t ->
[ `adjustment | `initially_unowned | `object_ ] Gobject.obj ->
unitSets the `GtkAdjustment` to be used as a model for the `GtkScaleButton`’s scale.
See method@Gtk.Range.set_adjustment for details.
val get_value : t -> floatGets the current value of the scale button.
val get_popup : t -> [ `widget | `initially_unowned | `object_ ] Gobject.objRetrieves the popup of the `GtkScaleButton`.
val get_plus_button :
t ->
[ `button | `widget | `initially_unowned | `object_ ] Gobject.objRetrieves the plus button of the `GtkScaleButton.`
val get_minus_button :
t ->
[ `button | `widget | `initially_unowned | `object_ ] Gobject.objRetrieves the minus button of the `GtkScaleButton`.
val get_has_frame : t -> boolReturns whether the button has a frame.
val get_adjustment :
t ->
[ `adjustment | `initially_unowned | `object_ ] Gobject.objGets the `GtkAdjustment` associated with the `GtkScaleButton`’s scale.
See method@Gtk.Range.get_adjustment for details.
val get_active : t -> boolQueries a `GtkScaleButton` and returns its current state.
Returns %TRUE if the scale button is pressed in and %FALSE if it is raised.
val on_popdown :
?after:bool ->
t ->
callback:(unit -> unit) ->
Gobject.Signal.handler_idval on_popup :
?after:bool ->
t ->
callback:(unit -> unit) ->
Gobject.Signal.handler_idval on_value_changed :
?after:bool ->
t ->
callback:(value:float -> unit) ->
Gobject.Signal.handler_id