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_t CursorDelta { get; set; }
Property Value
CursorPosition
Current mouse cursor position; null until the first MouseMove(vec2d_t).
public vec2d_t? 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_t)
Move the mouse and update the mouse cursor position to this model. The first move on a panel reports a zero CursorDelta.
public void MouseMove(vec2d_t cursorPosition)
Parameters
cursorPositionvec2d_tcursor 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)