Class WidgetContext
- Namespace
- Lime
- Assembly
- Lime.dll
Represents the global context for every widget within the current window.
public class WidgetContext : Context, IContext
- Inheritance
-
WidgetContext
- Implements
- Inherited Members
Constructors
WidgetContext(Widget)
public WidgetContext(Widget root)
Parameters
root
Widget
Fields
NodeCaptureKeys
public static readonly List<Key> NodeCaptureKeys
Field Value
Properties
Current
Gets the current global context. The context is set on every window's callback.
public static WidgetContext Current { get; }
Property Value
GestureManager
public GestureManager GestureManager { get; set; }
Property Value
MouseCursor
Gets or sets the mouse cursor. The WindowWidget resets mouse cursor to the default value in the beginning of every update cycle.
public MouseCursor MouseCursor { get; set; }
Property Value
NodeCapturedByMouse
Gets the topmost node under mouse at the moment any of mouse buttons down.
public Node NodeCapturedByMouse { get; }
Property Value
NodeUnderMouse
Gets the topmost node which the mouse cursor is up on.
public Node NodeUnderMouse { get; }
Property Value
Root
public Widget Root { get; }