Class ColorSelectorWithSliders
Color selecting control with additional sliders.
Implements
System.IComparable
Namespace: FlaxEditor.GUI.Dialogs
Assembly: FlaxEngine.CSharp.dll
Syntax
public class ColorSelectorWithSliders : ColorSelector, IComparable, IDrawable
Constructors
ColorSelectorWithSliders(Single, Single)
Initializes a new instance of the ColorSelectorWithSliders class.
Declaration
public ColorSelectorWithSliders(float wheelSize, float slidersThickness)
Parameters
System.Single
wheelSize
Size of the wheel. |
System.Single
slidersThickness
The sliders thickness. |
Methods
Draw()
Draw the control and the children.
Declaration
public override void Draw()
Overrides
OnEndMouseCapture()
When mouse goes up/down not over the control but it has user focus so remove that focus from it (used by scroll bars, sliders etc.)
Declaration
public override void OnEndMouseCapture()
Overrides
OnLostFocus()
When control losts input focus
Declaration
public override void OnLostFocus()
Overrides
OnMouseDown(Float2, MouseButton)
When mouse goes down over control's area
Declaration
public override bool OnMouseDown(Float2 location, MouseButton button)
Parameters
Float2
location
Mouse location in Control Space |
MouseButton
button
Mouse buttons state (flags) |
Returns
System.Boolean
True if event has been handled, otherwise false |
Overrides
OnMouseUp(Float2, MouseButton)
When mouse goes up over control's area
Declaration
public override bool OnMouseUp(Float2 location, MouseButton button)
Parameters
Float2
location
Mouse location in Control Space |
MouseButton
button
Mouse buttons state (flags) |
Returns
System.Boolean
True if event has been handled, otherwise false |
Overrides
UpdateMouse(ref Float2)
Updates the color selected by the mouse.
Declaration
protected override void UpdateMouse(ref Float2 location)
Parameters
Float2
location
The location. |