OmegaEngine API  1.0.3
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties | Events | List of all members
OmegaGUI.Render.Slider Class Reference

Slider control More...

Inheritance diagram for OmegaGUI.Render.Slider:
OmegaGUI.Render.Control

Public Member Functions

void SetRange (int min, int max)
 Sets the range of the slider More...
 
 Slider (Dialog parent)
 Create new button instance More...
 
override bool ContainsPoint (Point pt)
 Does the control contain this point? More...
 
int ValueFromPosition (int x)
 Gets a value from a position More...
 
override bool HandleMouse (WindowMessage msg, Point pt, IntPtr wParam, IntPtr lParam)
 Handle mouse input input More...
 
override bool HandleKeyboard (WindowMessage msg, IntPtr wParam, IntPtr lParam)
 Handle keyboard input More...
 
override void Render (Device device, float elapsedTime)
 Render the slider More...
 
- Public Member Functions inherited from OmegaGUI.Render.Control
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 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 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...
 

Public Attributes

const int TrackLayer = 0
 
const int ButtonLayer = 1
 
override bool CanHaveFocus => true
 Slider's can always have focus More...
 
- Public Attributes inherited from OmegaGUI.Render.Control
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...
 

Protected Member Functions

void RaiseChanged (Slider sender, bool wasTriggeredByUser)
 Current value of the slider More...
 
void SetValueInternal (int newValue, bool fromInput)
 Sets the value internally and fires the event if needed More...
 
override void UpdateRectangles ()
 Update the rectangles for the control More...
 
- Protected Member Functions inherited from OmegaGUI.Render.Control
 Control (Dialog parent)
 Create a new instance of a control More...
 

Protected Attributes

int currentValue
 
int maxValue
 
int minValue
 
int dragX
 
int dragOffset
 
int buttonX
 
bool isPressed
 
Rectangle buttonRect
 
- Protected Attributes inherited from OmegaGUI.Render.Control
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< ElementelementList = new List<Element>()
 

Properties

int Value [get, set]
 Current value of the slider More...
 
- Properties inherited from OmegaGUI.Render.Control
object UserData [get, set]
 User specified data More...
 
virtual bool IsEnabled [get, set]
 Is the control enabled More...
 
virtual bool IsVisible [get, set]
 Is the control visible More...
 
virtual int ID [get, set]
 Unique ID of the control More...
 
virtual Keys Hotkey [get, set]
 The controls hotkey More...
 
Element this[uint elementIndex] [get, set]
 Index for the elements this control has access to More...
 

Events

EventHandler Changed
 
- Events inherited from OmegaGUI.Render.Control
EventHandler MouseEnter
 

Detailed Description

Slider control

Constructor & Destructor Documentation

◆ Slider()

OmegaGUI.Render.Slider.Slider ( Dialog  parent)
inline

Create new button instance

Member Function Documentation

◆ ContainsPoint()

override bool OmegaGUI.Render.Slider.ContainsPoint ( Point  pt)
inlinevirtual

Does the control contain this point?

Reimplemented from OmegaGUI.Render.Control.

◆ HandleKeyboard()

override bool OmegaGUI.Render.Slider.HandleKeyboard ( WindowMessage  msg,
IntPtr  wParam,
IntPtr  lParam 
)
inlinevirtual

Handle keyboard input

Reimplemented from OmegaGUI.Render.Control.

◆ HandleMouse()

override bool OmegaGUI.Render.Slider.HandleMouse ( WindowMessage  msg,
Point  pt,
IntPtr  wParam,
IntPtr  lParam 
)
inlinevirtual

Handle mouse input input

Reimplemented from OmegaGUI.Render.Control.

◆ RaiseChanged()

void OmegaGUI.Render.Slider.RaiseChanged ( Slider  sender,
bool  wasTriggeredByUser 
)
inlineprotected

Current value of the slider

◆ Render()

override void OmegaGUI.Render.Slider.Render ( Device  device,
float  elapsedTime 
)
inlinevirtual

Render the slider

Implements OmegaGUI.Render.Control.

◆ SetRange()

void OmegaGUI.Render.Slider.SetRange ( int  min,
int  max 
)
inline

Sets the range of the slider

◆ SetValueInternal()

void OmegaGUI.Render.Slider.SetValueInternal ( int  newValue,
bool  fromInput 
)
inlineprotected

Sets the value internally and fires the event if needed

◆ UpdateRectangles()

override void OmegaGUI.Render.Slider.UpdateRectangles ( )
inlineprotectedvirtual

Update the rectangles for the control

Reimplemented from OmegaGUI.Render.Control.

◆ ValueFromPosition()

int OmegaGUI.Render.Slider.ValueFromPosition ( int  x)
inline

Gets a value from a position

Member Data Documentation

◆ CanHaveFocus

override bool OmegaGUI.Render.Slider.CanHaveFocus => true

Slider's can always have focus

Property Documentation

◆ Value

int OmegaGUI.Render.Slider.Value
getset

Current value of the slider


The documentation for this class was generated from the following file: