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.crlib/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
-
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. -
require(namespace, version)
A macro to check if a binding was generated and require it
Instance Method Summary
-
#finalize_instance(object : Gtk::Window)
Finalize a
Gtk::Window
object. -
#finalize_instance(object : GObject::Object)
Finalize this object, called by
GObject::Object#finalize
-
#finalize_instance(object : GObject::ParamSpec)
Finalize this object, called by
GObject::ParamSpec#finalize
-
#finalize_instance(object : Gdk::Event)
Finalize object.
-
#finalize_instance(object : Gsk::RenderNode)
Finalize object.
-
#finalize_instance(object : Gtk::Expression)
Finalize a
Gtk::Expression
object. -
#instance_pointer(object : GObject::Object) : Pointer(Void)
Return a pointer to the original wrapper for this object.
-
#ref(null : Nil) : Nil
This method must be implemented in bindings for all base types that have reference counting.
-
#ref(obj : GObject::Object) : Nil
Increase the
GObject::Object
reference. -
#ref(obj : GObject::ParamSpec) : Nil
Increase the
GObject::ParamSpec
reference.
Macro Detail
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.
Instance Method Detail
Finalize this object, called by GObject::Object#finalize
Finalize this object, called by GObject::ParamSpec#finalize
Return a pointer to the original wrapper for this object.
This method must be implemented in bindings for all base types that have reference counting.