struct Gtk::GLArea::CreateContextSignal
- Gtk::GLArea::CreateContextSignal
- GObject::Signal
- Struct
- Value
- Object
Overview
Emitted when the widget is being realized.
This allows you to override how the GL context is created. This is useful when you want to reuse an existing GL context, or if you want to try creating different kinds of GL options.
If context creation fails then the signal handler can use
Gtk::GLArea#error=
to register a more detailed error
of how the construction failed.
Defined in:
lib/gi-crystal/src/auto/gtk-4.0/gl_area.crInstance Method Summary
- #connect(*, after : Bool = false, &block : Proc(Gdk::GLContext)) : GObject::SignalConnection
- #connect(handler : Proc(Gdk::GLContext), *, after : Bool = false) : GObject::SignalConnection
- #connect(handler : Proc(Gtk::GLArea, Gdk::GLContext), *, after : Bool = false) : GObject::SignalConnection
- #emit : Nil
-
#name : String
The signal name
Instance methods inherited from struct GObject::Signal
[](detail : String) : self
[],
name : String
name
Constructor methods inherited from struct GObject::Signal
new(source : GObject::Object, detail : Nil | String = nil)
new
Instance Method Detail
def connect(handler : Proc(Gtk::GLArea, Gdk::GLContext), *, after : Bool = false) : GObject::SignalConnection
#