klyn.gui.windows.Widget.isTitleBarDragRegion
method
public isTitleBarDragRegion(x as Int, y as Int) as Boolean
Description

Tests whether this point in a hosted title widget moves the window. Ordinary widgets keep their input. Composite canvases can return true over empty background while retaining tabs, buttons and text selection. Coordinates are window-relative, as in MouseEvent. Outside a title host this hook has no effect.

Parameters
ParameterDescription
xWindow-relative pointer x.
yWindow-relative pointer y.
Returns

True for a window drag region, false for ordinary widget input.

Example
public override isTitleBarDragRegion(x as Int, y as Int) as Boolean:
    return x >= this.x + this.controlsWidth