A scroll bar control
More...
|
| ScrollBar (Dialog parent) |
| Creates a new instance of the scroll bar class More...
|
|
void | Scroll (int delta) |
| Scrolls by delta items. A positive value scrolls down, while a negative scrolls down More...
|
|
void | ScrollTo (int position) |
| Scrolls by to position. More...
|
|
void | ShowItem (int index) |
| Shows an item More...
|
|
void | SetTrackRange (int startRange, int endRange) |
| Sets the track range More...
|
|
override void | Render (Device device, float elapsedTime) |
| Render the scroll bar control More...
|
|
override bool | HandleMouse (WindowMessage msg, Point pt, IntPtr wParam, IntPtr lParam) |
| Stores data for a dropdown list item More...
|
|
override string | ToString () |
|
virtual void | OnInitialize () |
| Initialize the control More...
|
|
virtual bool | MsgProc (IntPtr hWnd, WindowMessage msg, IntPtr wParam, IntPtr lParam) |
| Message Handler More...
|
|
virtual bool | HandleKeyboard (WindowMessage msg, IntPtr wParam, IntPtr lParam) |
| Handle the keyboard data More...
|
|
virtual void | OnFocusIn () |
| Called when control gets focus More...
|
|
virtual void | OnFocusOut () |
| Called when control loses focus More...
|
|
virtual void | OnMouseEnter () |
| Called when mouse goes over the control More...
|
|
virtual void | OnMouseExit () |
| Called when mouse leaves the control More...
|
|
virtual void | OnHotKey () |
| Called when the control's hotkey is hit More...
|
|
virtual bool | ContainsPoint (Point pt) |
| Does the control contain this point More...
|
|
virtual void | SetLocation (int x, int y) |
| Called to set control's location More...
|
|
virtual void | SetSize (int w, int h) |
| Called to set control's size More...
|
|
virtual void | Refresh () |
| Refreshes the control More...
|
|
|
const int | TrackLayer = 0 |
|
const int | UpButtonLayer = 1 |
|
const int | DownButtonLayer = 2 |
|
const int | ThumbLayer = 3 |
|
uint | index |
|
bool | IsDefault |
|
Dialog | Parent => parentDialog |
| The parent dialog of this control More...
|
|
virtual bool | CanHaveFocus => false |
| Can the control have focus More...
|
|
virtual ControlType | ControlType => ctrlType |
| Type of the control More...
|
|
|
const int | MinimumThumbSize = 8 |
|
bool | showingThumb = true |
|
Rectangle | upButtonRect |
|
Rectangle | downButtonRect |
|
Rectangle | trackRect |
|
Rectangle | thumbRect |
|
int | m_position |
|
int | pgSize = 1 |
|
int | start |
|
int | end = 1 |
|
Dialog | parentDialog |
|
object | localUserData |
|
bool | visible = true |
|
bool | isMouseOver |
|
bool | hasFocus |
|
int | controlId |
|
ControlType | ctrlType |
|
Keys | ctrlHotKey |
|
bool | enabled = true |
|
Rectangle | boundingBox |
|
int | controlX |
|
List< Element > | elementList = new List<Element>() |
|
◆ ScrollBar()
OmegaGUI.Render.ScrollBar.ScrollBar |
( |
Dialog |
parent | ) |
|
|
inline |
Creates a new instance of the scroll bar class
◆ Cap()
void OmegaGUI.Render.ScrollBar.Cap |
( |
| ) |
|
|
inlineprotected |
Clips position at boundaries
◆ HandleMouse()
override bool OmegaGUI.Render.ScrollBar.HandleMouse |
( |
WindowMessage |
msg, |
|
|
Point |
pt, |
|
|
IntPtr |
wParam, |
|
|
IntPtr |
lParam |
|
) |
| |
|
inlinevirtual |
◆ Render()
override void OmegaGUI.Render.ScrollBar.Render |
( |
Device |
device, |
|
|
float |
elapsedTime |
|
) |
| |
|
inlinevirtual |
◆ Scroll()
void OmegaGUI.Render.ScrollBar.Scroll |
( |
int |
delta | ) |
|
|
inline |
Scrolls by delta items. A positive value scrolls down, while a negative scrolls down
◆ ScrollTo()
void OmegaGUI.Render.ScrollBar.ScrollTo |
( |
int |
position | ) |
|
|
inline |
◆ SetTrackRange()
void OmegaGUI.Render.ScrollBar.SetTrackRange |
( |
int |
startRange, |
|
|
int |
endRange |
|
) |
| |
|
inline |
◆ ShowItem()
void OmegaGUI.Render.ScrollBar.ShowItem |
( |
int |
index | ) |
|
|
inline |
◆ UpdateRectangles()
override void OmegaGUI.Render.ScrollBar.UpdateRectangles |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ UpdateThumbRectangle()
void OmegaGUI.Render.ScrollBar.UpdateThumbRectangle |
( |
| ) |
|
|
inlineprotected |
Compute the dimension of the scroll thumb
◆ PageSize
int OmegaGUI.Render.ScrollBar.PageSize |
|
getset |
◆ TrackPosition
int OmegaGUI.Render.ScrollBar.TrackPosition |
|
getset |
The documentation for this class was generated from the following file:
- OmegaGUI/Render/ScrollBar.cs