Table of Contents

Class PanelModel

Namespace
Hi.PanelModels
Assembly
HiDisp.dll

A panel model contains necessary data for manipulating a panel. It is platform-neutral.

public class PanelModel
Inheritance
PanelModel
Inherited Members
Extension Methods

Properties

CursorDelta

Mouse cursor position changed from the last time to current.

public Vec2d CursorDelta { get; set; }

Property Value

Vec2d

CursorPosition

Current mouse cursor position.

public Vec2d CursorPosition { get; set; }

Property Value

Vec2d

Height

Panel height.

public double Height { get; set; }

Property Value

double

IsVisible

Is panel visible.

public bool IsVisible { get; set; }

Property Value

bool

ModifierKeys

Current pressed keyboard modifiers.

public HiModifierKeys ModifierKeys { get; set; }

Property Value

HiModifierKeys

MouseButtonMask

Current pressed mouse button.

public HiMouseButtonMask MouseButtonMask { get; set; }

Property Value

HiMouseButtonMask

Width

Panel width.

public double Width { get; set; }

Property Value

double

Methods

KeyDown(HiKey)

Press the key to this model.

public void KeyDown(HiKey key)

Parameters

key HiKey

key

KeyUp(HiKey)

Release the key to this model.

public void KeyUp(HiKey key)

Parameters

key HiKey

key

MouseButtonDown(HiMouseButton)

Press the mouse button to this model.

public void MouseButtonDown(HiMouseButton button)

Parameters

button HiMouseButton

button

MouseButtonUp(HiMouseButton)

Release the mouse button to this model.

public void MouseButtonUp(HiMouseButton button)

Parameters

button HiMouseButton

button

MouseMove(Vec2d)

Move the mouse and update the mouse cursor position to this model.

public void MouseMove(Vec2d cursorPosition)

Parameters

cursorPosition Vec2d

cursor position

MouseWheel(int)

Roll mouse wheel to this model.

public void MouseWheel(int delta)

Parameters

delta int

the quantity of the mouse wheel rolling

Resize(double, double)

Resize the panel model.

public void Resize(double w, double h)

Parameters

w double

width

h double

height