struct Gtk::GLArea::CreateContextSignal

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

Instance Method Summary

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(*, after : Bool = false, &block : Proc(Gdk::GLContext)) : GObject::SignalConnection #

[View source]
def connect(handler : Proc(Gdk::GLContext), *, after : Bool = false) : GObject::SignalConnection #

[View source]
def connect(handler : Proc(Gtk::GLArea, Gdk::GLContext), *, after : Bool = false) : GObject::SignalConnection #

[View source]
def emit : Nil #

[View source]
def name : String #
Description copied from struct GObject::Signal

The signal name


[View source]