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/Cell_renderer_text/index.html

Module Wrappers.Cell_renderer_text

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

Create a new CellRendererText

val set_fixed_height_from_font : t -> int -> unit

Sets the height of a renderer to explicitly be determined by the “font” and “y_pad” property set on it. Further changes in these properties do not affect the height, so they must be accompanied by a subsequent call to this function. Using this function is inflexible, and should really only be used if calculating the size of a cell is too slow (ie, a massive number of cells displayed). If @number_of_rows is -1, then the fixed height is unset, and the height is determined by the properties again.

val get_align_set : t -> bool

Get property: align-set

val set_align_set : t -> bool -> unit

Set property: align-set

val get_alignment : t -> Ocgtk_pango.Pango.alignment

Get property: alignment

val set_alignment : t -> Ocgtk_pango.Pango.alignment -> unit

Set property: alignment

Get property: attributes

val set_attributes : t -> Ocgtk_pango.Pango.Wrappers.Attr_list.t -> unit

Set property: attributes

val set_background : t -> string -> unit

Set property: background

val get_background_rgba : t -> Ocgtk_gdk.Gdk.Wrappers.Rgb_a.t

Get property: background-rgba

val set_background_rgba : t -> Ocgtk_gdk.Gdk.Wrappers.Rgb_a.t -> unit

Set property: background-rgba

val get_background_set : t -> bool

Get property: background-set

val set_background_set : t -> bool -> unit

Set property: background-set

val get_editable : t -> bool

Get property: editable

val set_editable : t -> bool -> unit

Set property: editable

val get_editable_set : t -> bool

Get property: editable-set

val set_editable_set : t -> bool -> unit

Set property: editable-set

val get_ellipsize : t -> Ocgtk_pango.Pango.ellipsizemode

Get property: ellipsize

val set_ellipsize : t -> Ocgtk_pango.Pango.ellipsizemode -> unit

Set property: ellipsize

val get_ellipsize_set : t -> bool

Get property: ellipsize-set

val set_ellipsize_set : t -> bool -> unit

Set property: ellipsize-set

val get_family : t -> string

Get property: family

val set_family : t -> string -> unit

Set property: family

val get_family_set : t -> bool

Get property: family-set

val set_family_set : t -> bool -> unit

Set property: family-set

val get_font : t -> string

Get property: font

val set_font : t -> string -> unit

Set property: font

Get property: font-desc

val set_font_desc : t -> Ocgtk_pango.Pango.Wrappers.Font_description.t -> unit

Set property: font-desc

val set_foreground : t -> string -> unit

Set property: foreground

val get_foreground_rgba : t -> Ocgtk_gdk.Gdk.Wrappers.Rgb_a.t

Get property: foreground-rgba

val set_foreground_rgba : t -> Ocgtk_gdk.Gdk.Wrappers.Rgb_a.t -> unit

Set property: foreground-rgba

val get_foreground_set : t -> bool

Get property: foreground-set

val set_foreground_set : t -> bool -> unit

Set property: foreground-set

val get_language : t -> string

Get property: language

val set_language : t -> string -> unit

Set property: language

val get_language_set : t -> bool

Get property: language-set

val set_language_set : t -> bool -> unit

Set property: language-set

val set_markup : t -> string -> unit

Set property: markup

val get_max_width_chars : t -> int

Get property: max-width-chars

val set_max_width_chars : t -> int -> unit

Set property: max-width-chars

val get_placeholder_text : t -> string

Get property: placeholder-text

val set_placeholder_text : t -> string -> unit

Set property: placeholder-text

val get_rise : t -> int

Get property: rise

val set_rise : t -> int -> unit

Set property: rise

val get_rise_set : t -> bool

Get property: rise-set

val set_rise_set : t -> bool -> unit

Set property: rise-set

val get_scale : t -> float

Get property: scale

val set_scale : t -> float -> unit

Set property: scale

val get_scale_set : t -> bool

Get property: scale-set

val set_scale_set : t -> bool -> unit

Set property: scale-set

val get_single_paragraph_mode : t -> bool

Get property: single-paragraph-mode

val set_single_paragraph_mode : t -> bool -> unit

Set property: single-paragraph-mode

val get_size : t -> int

Get property: size

val set_size : t -> int -> unit

Set property: size

val get_size_points : t -> float

Get property: size-points

val set_size_points : t -> float -> unit

Set property: size-points

val get_size_set : t -> bool

Get property: size-set

val set_size_set : t -> bool -> unit

Set property: size-set

val get_stretch : t -> Ocgtk_pango.Pango.stretch

Get property: stretch

val set_stretch : t -> Ocgtk_pango.Pango.stretch -> unit

Set property: stretch

val get_stretch_set : t -> bool

Get property: stretch-set

val set_stretch_set : t -> bool -> unit

Set property: stretch-set

val get_strikethrough : t -> bool

Get property: strikethrough

val set_strikethrough : t -> bool -> unit

Set property: strikethrough

val get_strikethrough_set : t -> bool

Get property: strikethrough-set

val set_strikethrough_set : t -> bool -> unit

Set property: strikethrough-set

val get_style : t -> Ocgtk_pango.Pango.style

Get property: style

val set_style : t -> Ocgtk_pango.Pango.style -> unit

Set property: style

val get_style_set : t -> bool

Get property: style-set

val set_style_set : t -> bool -> unit

Set property: style-set

val get_text : t -> string

Get property: text

val set_text : t -> string -> unit

Set property: text

val get_underline : t -> Ocgtk_pango.Pango.underline

Get property: underline

val set_underline : t -> Ocgtk_pango.Pango.underline -> unit

Set property: underline

val get_underline_set : t -> bool

Get property: underline-set

val set_underline_set : t -> bool -> unit

Set property: underline-set

val get_variant : t -> Ocgtk_pango.Pango.variant

Get property: variant

val set_variant : t -> Ocgtk_pango.Pango.variant -> unit

Set property: variant

val get_variant_set : t -> bool

Get property: variant-set

val set_variant_set : t -> bool -> unit

Set property: variant-set

val get_weight : t -> int

Get property: weight

val set_weight : t -> int -> unit

Set property: weight

val get_weight_set : t -> bool

Get property: weight-set

val set_weight_set : t -> bool -> unit

Set property: weight-set

val get_width_chars : t -> int

Get property: width-chars

val set_width_chars : t -> int -> unit

Set property: width-chars

val get_wrap_mode : t -> Ocgtk_pango.Pango.wrapmode

Get property: wrap-mode

val set_wrap_mode : t -> Ocgtk_pango.Pango.wrapmode -> unit

Set property: wrap-mode

val get_wrap_width : t -> int

Get property: wrap-width

val set_wrap_width : t -> int -> unit

Set property: wrap-width

val on_edited : ?after:bool -> t -> callback:(path:string -> new_text:string -> unit) -> Gobject.Signal.handler_id