Contract types define the interface contracts for various GTK+ and Pango objects, as well as configuration interfaces for the React GTK renderer.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/devhammed/react-gtk/llms.txt
Use this file to discover all available pages before exploring further.
GtkTooltip
Interface for interacting with GTK tooltips. This contract provides methods to customize tooltip appearance and content.Replaces the widget packed into the tooltip with a custom widget. The custom widget does not get destroyed when the tooltip goes away. By default a box with a
GtkImage and GtkLabel is embedded in the tooltip, which can be configured using set_markup and set_icon_from_icon_name.Sets the icon of the tooltip (which is in front of the text) to be the icon indicated by
name. If name is NULL, the image will be hidden.Sets the text of the tooltip to be markup. Accepts Pango markup language.
Sets the text of the tooltip to be plain text.
Sets the area of the widget, where the contents of this tooltip apply, to be
rect (in widget coordinates). This is especially useful for properly setting tooltips on GtkTreeView rows and cells, GtkIconViews, etc.PangoAttrItem
Interface representing a Pango attribute item used for text styling and formatting.The start index of the attribute range.
-1 is accepted in place of MAXUINT.The end index of the attribute range.
-1 is accepted in place of MAXUINT.The nickname of the attribute value type.
The attribute value, which can be:
- Enum values as nick or numeric value
- Boolean values as
trueorfalse - Integers and floats as numbers
- Strings as string, optionally quoted
- Font features as quoted string
- Pango Language as string
- Pango FontDescription as serialized by
font_description_to_string, quoted - Pango Color as serialized by
color_to_string
GtkEntryBuffer
Interface for managing the text buffer of a GTK entry widget.The contents of the buffer. This property has both getter and setter.
The length in characters of the buffer. Read-only.
The maximum allowed length of the text in the buffer. This property has both getter and setter.
Retrieves the length in bytes of the buffer.
RootAppConfig
Configuration interface for creating a React GTK root application instance.The application ID, typically in reverse DNS notation (e.g.,
com.example.MyApp).Optional GTK application flags. These flags control the application’s behavior.
Example Usage
Example Usage
RootAppInstance
Interface for the React GTK root application instance returned bycreateRoot.
Example Usage
Example Usage
