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
CursorPosition
Current mouse cursor position.
public Vec2d CursorPosition { get; set; }
Property Value
Height
Panel height.
public double Height { get; set; }
Property Value
IsVisible
Is panel visible.
public bool IsVisible { get; set; }
Property Value
ModifierKeys
Current pressed keyboard modifiers.
public HiModifierKeys ModifierKeys { get; set; }
Property Value
MouseButtonMask
Current pressed mouse button.
public HiMouseButtonMask MouseButtonMask { get; set; }
Property Value
Width
Panel width.
public double Width { get; set; }
Property Value
Methods
KeyDown(HiKey)
Press the key to this model.
public void KeyDown(HiKey key)
Parameters
keyHiKeykey
KeyUp(HiKey)
Release the key to this model.
public void KeyUp(HiKey key)
Parameters
keyHiKeykey
MouseButtonDown(HiMouseButton)
Press the mouse button to this model.
public void MouseButtonDown(HiMouseButton button)
Parameters
buttonHiMouseButtonbutton
MouseButtonUp(HiMouseButton)
Release the mouse button to this model.
public void MouseButtonUp(HiMouseButton button)
Parameters
buttonHiMouseButtonbutton
MouseMove(Vec2d)
Move the mouse and update the mouse cursor position to this model.
public void MouseMove(Vec2d cursorPosition)
Parameters
cursorPositionVec2dcursor position
MouseWheel(int)
Roll mouse wheel to this model.
public void MouseWheel(int delta)
Parameters
deltaintthe quantity of the mouse wheel rolling
Resize(double, double)
Resize the panel model.
public void Resize(double w, double h)