Table of Contents

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

List<Key>

Properties

Current

Gets the current global context. The context is set on every window's callback.

public static WidgetContext Current { get; }

Property Value

WidgetContext

GestureManager

public GestureManager GestureManager { get; set; }

Property Value

GestureManager

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

MouseCursor

NodeCapturedByMouse

Gets the topmost node under mouse at the moment any of mouse buttons down.

public Node NodeCapturedByMouse { get; }

Property Value

Node

NodeUnderMouse

Gets the topmost node which the mouse cursor is up on.

public Node NodeUnderMouse { get; }

Property Value

Node

Root

public Widget Root { get; }

Property Value

Widget