Class Timeline.Event
Single timeline event control.
Implements
Namespace: FlaxEditor.Windows.Profiler
Assembly: FlaxEngine.CSharp.dll
Syntax
public class Event : ContainerControl, IComparable, IDrawable
Constructors
Event()
Declaration
public Event()
Fields
DefaultHeight
The default height of the event.
Declaration
public const float DefaultHeight = 25F
Field Value
|
System.Single
|
DoubleClick
The double click event.
Declaration
public Action DoubleClick
Field Value
|
System.Action
|
EventDoubleClick
The double click event.
Declaration
public Action<Timeline.Event> EventDoubleClick
Field Value
|
System.Action<Timeline.Event>
|
EventLeftClick
The left mouse button click event.
Declaration
public Action<Timeline.Event> EventLeftClick
Field Value
|
System.Action<Timeline.Event>
|
EventRightClick
The right mouse button click event.
Declaration
public Action<Timeline.Event> EventRightClick
Field Value
|
System.Action<Timeline.Event>
|
LeftClick
The left mouse button click event.
Declaration
public Action LeftClick
Field Value
|
System.Action
|
RightClick
The right mouse button click event.
Declaration
public Action RightClick
Field Value
|
System.Action
|
Properties
Name
Gets or sets the event name.
Declaration
public string Name { get; set; }
Property Value
|
System.String
|
Methods
Draw()
Draw the control and the children.
Declaration
public override void Draw()
Overrides
OnMouseDoubleClick(Float2, MouseButton)
When mouse double clicks over control's area
Declaration
public override bool OnMouseDoubleClick(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
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
OnMouseLeave()
When mouse leaves control's area
Declaration
public override void OnMouseLeave()
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
OnParentChangedInternal()
Action fired when parent control gets changed.
Declaration
protected override void OnParentChangedInternal()