struct Gtk::GLArea::ResizeSignal
- Gtk::GLArea::ResizeSignal
- GObject::Signal
- Struct
- Value
- Object
Overview
Emitted once when the widget is realized, and then each time the widget is changed while realized.
This is useful in order to keep GL state up to date with the widget size, like for instance camera properties which may depend on the width/height ratio.
The GL context for the area is guaranteed to be current when this signal is emitted.
The default handler sets up the GL viewport.
Defined in:
lib/gi-crystal/src/auto/gtk-4.0/gl_area.crInstance Method Summary
- #connect(*, after : Bool = false, &block : Proc(Int32, Int32, Nil)) : GObject::SignalConnection
- #connect(handler : Proc(Int32, Int32, Nil), *, after : Bool = false) : GObject::SignalConnection
- #connect(handler : Proc(Gtk::GLArea, Int32, Int32, Nil), *, after : Bool = false) : GObject::SignalConnection
- #emit(width : Int32, height : Int32) : 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(*, after : Bool = false, &block : Proc(Int32, Int32, Nil)) : GObject::SignalConnection
#
def connect(handler : Proc(Int32, Int32, Nil), *, after : Bool = false) : GObject::SignalConnection
#
def connect(handler : Proc(Gtk::GLArea, Int32, Int32, Nil), *, after : Bool = false) : GObject::SignalConnection
#