package ocgtk

  1. Overview
  2. Docs
OCaml bindings for GTK 4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054

doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Font_button/index.html

Module Wrappers.Font_button

type t = [ `font_button | `widget | `initially_unowned | `object_ ] Gobject.obj
val new_ : unit -> t

Create a new FontButton

val new_with_font : string -> t

Create a new FontButton

val set_use_size : t -> bool -> unit

If @use_size is %TRUE, the font name will be written using the selected size.

val set_use_font : t -> bool -> unit

If @use_font is %TRUE, the font name will be written using the selected font.

val set_title : t -> string -> unit

Sets the title for the font chooser dialog.

val set_modal : t -> bool -> unit

Sets whether the dialog should be modal.

val get_use_size : t -> bool

Returns whether the selected size is used in the label.

val get_use_font : t -> bool

Returns whether the selected font is used in the label.

val get_title : t -> string

Retrieves the title of the font chooser dialog.

val get_modal : t -> bool

Gets whether the dialog is modal.

val on_activate : ?after:bool -> t -> callback:(unit -> unit) -> Gobject.Signal.handler_id
val on_font_set : ?after:bool -> t -> callback:(unit -> unit) -> Gobject.Signal.handler_id