module Gtk::Buildable

Overview

Allows objects to extend and customize deserialization from ui files.

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

It 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.


Class Method Detail

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

def self.g_type : UInt64 #

Instance Method Detail

def buildable_id : String | Nil #

abstract def to_unsafe #