Class CurveEditor<T>.ContentsBase
The curve contents container control.
Implements
Namespace: FlaxEditor.GUI
Assembly: FlaxEngine.CSharp.dll
Syntax
protected class ContentsBase : ContainerControl, IComparable, IDrawable
Constructors
ContentsBase(CurveEditor<T>)
Initializes a new instance of the CurveEditor<T>.ContentsBase class.
Declaration
public ContentsBase(CurveEditor<T> editor)
Parameters
CurveEditor<T>
editor
The curve editor. |
Methods
IntersectsContent(ref Float2, out Float2)
Checks if given location point in Parent Space intersects with the control content and calculates local position.
Declaration
public override bool IntersectsContent(ref Float2 locationParent, out Float2 location)
Parameters
Float2
locationParent
The location in Parent Space. |
Float2
location
The location of intersection in Control Space. |
Returns
System.Boolean
True if given point in Parent Space intersects with this control content, otherwise false. |
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
OnMouseEnter(Float2)
When mouse enters control's area
Declaration
public override void OnMouseEnter(Float2 location)
Parameters
Float2
location
Mouse location in Control Space |
Overrides
OnMouseMove(Float2)
When mouse moves over control's area
Declaration
public override void OnMouseMove(Float2 location)
Parameters
Float2
location
Mouse location in Control Space |
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
OnMouseWheel(Float2, Single)
When mouse wheel moves
Declaration
public override bool OnMouseWheel(Float2 location, float delta)
Parameters
Float2
location
Mouse location in Control Space |
System.Single
delta
Mouse wheel move delta. A positive value indicates that the wheel was rotated forward, away from the user; a negative value indicates that the wheel was rotated backward, toward the user. Normalized to [-1;1] range. |
Returns
System.Boolean
True if event has been handled |
Overrides
SetScaleInternal(ref Float2)
Sets the scale and updates the transform.
Declaration
protected override void SetScaleInternal(ref Float2 scale)
Parameters
Float2
scale
The scale. |