struct Gtk::Widget::QueryTooltipSignal
- Gtk::Widget::QueryTooltipSignal
- GObject::Signal
- Struct
- Value
- Object
Overview
Emitted when the widgets tooltip is about to be shown.
This happens when the [property@Gtk.Widget:has-tooltip] property
is true
and the hover timeout has expired with the cursor hovering
"above" @widget; or emitted when @widget got focus in keyboard mode.
Using the given coordinates, the signal handler should determine
whether a tooltip should be shown for @widget. If this is the case
true
should be returned, false
otherwise. Note that if
@keyboard_mode is true
, the values of @x and @y are undefined and
should not be used.
The signal handler is free to manipulate @tooltip with the therefore destined function calls.
Defined in:
lib/gi-crystal/src/auto/gtk-4.0/widget.crInstance Method Summary
- #connect(*, after : Bool = false, &block : Proc(Int32, Int32, Bool, Gtk::Tooltip, Bool)) : GObject::SignalConnection
- #connect(handler : Proc(Int32, Int32, Bool, Gtk::Tooltip, Bool), *, after : Bool = false) : GObject::SignalConnection
- #connect(handler : Proc(Gtk::Widget, Int32, Int32, Bool, Gtk::Tooltip, Bool), *, after : Bool = false) : GObject::SignalConnection
- #emit(x : Int32, y : Int32, keyboard_mode : Bool, tooltip : Gtk::Tooltip) : 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 : String? = nil)
new
Instance Method Detail
def connect(*, after : Bool = false, &block : Proc(Int32, Int32, Bool, Gtk::Tooltip, Bool)) : GObject::SignalConnection
#
def connect(handler : Proc(Int32, Int32, Bool, Gtk::Tooltip, Bool), *, after : Bool = false) : GObject::SignalConnection
#
def connect(handler : Proc(Gtk::Widget, Int32, Int32, Bool, Gtk::Tooltip, Bool), *, after : Bool = false) : GObject::SignalConnection
#