module GICrystal

Overview

This module have types, functions and macros used by the generated bindings, if you are just using the bindings you should never deal with any of this.

Extended Modules

Defined in:

lib/gi-crystal/src/bindings/g_object/gi_crystal.cr
lib/gi-crystal/src/gi-crystal.cr
lib/gi-crystal/src/gi-crystal/closure_data_manager.cr
lib/gi-crystal/src/gi-crystal/toggle_ref_manager.cr
bindings/gdk/gi_crystal.cr
bindings/gsk/gi_crystal.cr
bindings/gtk/gi_crystal.cr

Constant Summary

INSTANCE_FACTORY = LibGLib.g_quark_from_static_string("gi-crystal::factory")

See declare_new_method.

INSTANCE_QDATA_KEY = LibGLib.g_quark_from_static_string("gi-crystal::instance")

See declare_new_method.

Macro Summary

Instance Method Summary

Macro Detail

macro declare_new_method(type, qdata_get_func) #

This declare the new method on a instance of type type, qdata_get_func (g_object_get_qdata) is used to fetch a possible already existing Crystal object.

GICrystal stores the User defined Crystal objects instances in the GObject, so when it appears from C world we can retrieve the Crystal instance back.

This is mainly used for GObject::Object, since GObject::ParamSpec doesn't support casts on GICrystal.


[View source]
macro require(namespace, version) #

A macro to check if a binding was generated and require it


[View source]

Instance Method Detail

def finalize_instance(object : Gtk::Window) #

Finalize a Gtk::Window object.


[View source]
def finalize_instance(object : GObject::Object) #

Finalize this object, called by GObject::Object#finalize


[View source]
def finalize_instance(object : GObject::ParamSpec) #

Finalize this object, called by GObject::ParamSpec#finalize


[View source]
def finalize_instance(object : Gdk::Event) #

Finalize object.


[View source]
def finalize_instance(object : Gsk::RenderNode) #

Finalize object.


[View source]
def finalize_instance(object : Gtk::Expression) #

Finalize a Gtk::Expression object.


[View source]
def instance_pointer(object : GObject::Object) : Pointer(Void) #

Return a pointer to the original wrapper for this object.


[View source]
def ref(null : Nil) : Nil #

This method must be implemented in bindings for all base types that have reference counting.


[View source]
def ref(obj : GObject::Object) : Nil #

Increase the GObject::Object reference.


[View source]
def ref(obj : GObject::ParamSpec) : Nil #

Increase the GObject::ParamSpec reference.


[View source]