Class PopupMenuItems

Namespace
Forma
Assembly
Forma.dll

Input surface owned by a PopupMenu. It mirrors Godot's internal PopupMenuItems control so the command list can participate in normal hit testing without making menu data a collection of transient button controls.

public sealed class PopupMenuItems : Control, IAddChild<Control>, IAddChild, INotifyPropertyChanged
Inheritance
PopupMenuItems
Implements
Inherited Members

Properties

Popup

public PopupMenu Popup { get; }

Property Value

PopupMenu

Methods

GetTooltip(Point)

Returns the tooltip at a global pointer position. Override to provide dynamic help text.

public override string GetTooltip(Point position)

Parameters

position Point

Returns

string

PointerPressed(Point)

A pointer press landed on this control, in global coordinates.

Protected as well as internal so a control defined outside this assembly can take part in pointer input. Without that, an app hosting its own drawing surface has to read raw mouse state instead, which bypasses hit-testing, modal gating and the injection side-channel — so such a surface cannot be driven by a test at all.

protected override void PointerPressed(Point point)

Parameters

point Point

PointerReleased(Point, bool)

The pointer was released, with whether it was still inside this control.

protected override void PointerReleased(Point point, bool isInside)

Parameters

point Point
isInside bool