module Gtk::Buildable

Overview

Gtk::Buildable allows objects to extend and customize their deserialization from ui files.

The interface includes methods for setting names and properties of objects, parsing custom tags and constructing child objects.

The Gtk::Buildable interface is implemented by all widgets and many of the non-widget objects that are provided by GTK. The main user of this interface is Gtk::Builder. There should be very little need for applications to call any of these functions directly.

An object only needs to implement this interface if it needs to extend the Gtk::Builder XML format or run any extra routines at deserialization time.

Direct including types

Defined in:

lib/gi-crystal/src/auto/gtk-4.0/buildable.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.cast(obj : GObject::Object) : self #

Cast a GObject::Object to self, throws a TypeCastError if the cast can't be made.


[View source]

Class Method Detail

def self.cast?(obj : GObject::Object) : self | Nil #

[View source]
def self.g_type : UInt64 #

[View source]

Instance Method Detail

def buildable_id : String | Nil #

[View source]
abstract def to_unsafe #

[View source]