C# Class Vidka.Core.UiObj.VidkaUiStateObjects

This class serves 2 functions: 1 - keeps all interactive UI objects in one place. 2 - provides easier management of when a state changes to help trigger repaint only when neccesary.
Afficher le fichier Open project: miktemk/VidkaEditor Class Usage Examples

Méthodes publiques

Méthode Description
ClearAll ( ) : void
ClearDraggy ( ) : void
ClearStateChangeFlag ( ) : void

Call this before every serious interaction method. Then do some shit. Then call DidSomethingChange() to see if you need to repaint.

DidSomethingChange ( ) : bool

Call this at the end of every serious interaction method. if this returns true, then you probably need to repaint.

DidSomethingChange_originalTimeline ( ) : bool

Used to change player position when console is hidden and player floats around

IncCurrentMarkerFrame ( long frameInc ) : void
PleaseShowAllUsages ( VidkaProj proj ) : void
SetActiveAudio ( VidkaClipAudio active ) : void

There can only be one selected (active) b/w video and audio line, so video will be set to null

SetActiveVideo ( VidkaClipVideoAbstract active, VidkaProj proj ) : void

There can only be one selected (active) b/w video and audio line, so audio will be set to null Needs proj to find absolute frame position (CurrentClipFrameAbsPos)

SetCurrentMarkerFrame ( long frame ) : void
SetDraggyAudio ( VidkaClipAudio clip ) : void
SetDraggyCoordinates ( EditorDraggyMode mode = null, long frameLength = null, string text = null, int mouseX = null, int mouseXOffset = null, bool hasAudio = null, long frameAbsLeft = null ) : void
SetDraggyVideo ( VidkaClipVideoAbstract clip ) : void
SetHoverAudio ( VidkaClipAudio hover ) : void

There can only be one hover b/w video and audio line, so video will be set to null

SetHoverGeneric ( VidkaClip hoverClip, VidkaProj proj ) : void

Uses proj.ClipsAudio.Contains(hoverClip) to determine which to set HoverAudio or HoverVideo

SetHoverVideo ( VidkaClipVideoAbstract hover ) : void

There can only be one hover b/w video and audio line, so audio will be set to null

SetOriginalTimelinePlaybackMode ( bool flag ) : void
SetShowEasingHandles ( bool flag ) : void
SetShowVideoAudioLinkage ( bool flag ) : void
SetTimelineHover ( ProjectDimensionsTimelineType hover ) : void
SetTrimHover ( TrimDirection trimHover ) : void
SetTrimThreshPixels ( int trimThreshPixels ) : void
UiStateChanged ( ) : void

Call if a repaint should be forced anyway, regardless

UpdateCurrentClipFrameAbsPos ( VidkaProj proj ) : void

proj parameter is only needed for video clip, to find its abs position

VidkaUiStateObjects ( ) : System
setMouseDragFrameDelta ( long frameDelta ) : void
setMouseDragFrameDeltaMainTimelineOnly ( bool p ) : void

Private Methods

Méthode Description
resetCurrentClipUsages ( ) : void

Method Details

ClearAll() public méthode

public ClearAll ( ) : void
Résultat void

ClearDraggy() public méthode

public ClearDraggy ( ) : void
Résultat void

ClearStateChangeFlag() public méthode

Call this before every serious interaction method. Then do some shit. Then call DidSomethingChange() to see if you need to repaint.
public ClearStateChangeFlag ( ) : void
Résultat void

DidSomethingChange() public méthode

Call this at the end of every serious interaction method. if this returns true, then you probably need to repaint.
public DidSomethingChange ( ) : bool
Résultat bool

DidSomethingChange_originalTimeline() public méthode

Used to change player position when console is hidden and player floats around
public DidSomethingChange_originalTimeline ( ) : bool
Résultat bool

IncCurrentMarkerFrame() public méthode

public IncCurrentMarkerFrame ( long frameInc ) : void
frameInc long
Résultat void

PleaseShowAllUsages() public méthode

public PleaseShowAllUsages ( VidkaProj proj ) : void
proj Vidka.Core.Model.VidkaProj
Résultat void

SetActiveAudio() public méthode

There can only be one selected (active) b/w video and audio line, so video will be set to null
public SetActiveAudio ( VidkaClipAudio active ) : void
active Vidka.Core.Model.VidkaClipAudio
Résultat void

SetActiveVideo() public méthode

There can only be one selected (active) b/w video and audio line, so audio will be set to null Needs proj to find absolute frame position (CurrentClipFrameAbsPos)
public SetActiveVideo ( VidkaClipVideoAbstract active, VidkaProj proj ) : void
active Vidka.Core.Model.VidkaClipVideoAbstract
proj Vidka.Core.Model.VidkaProj
Résultat void

SetCurrentMarkerFrame() public méthode

public SetCurrentMarkerFrame ( long frame ) : void
frame long
Résultat void

SetDraggyAudio() public méthode

public SetDraggyAudio ( VidkaClipAudio clip ) : void
clip Vidka.Core.Model.VidkaClipAudio
Résultat void

SetDraggyCoordinates() public méthode

public SetDraggyCoordinates ( EditorDraggyMode mode = null, long frameLength = null, string text = null, int mouseX = null, int mouseXOffset = null, bool hasAudio = null, long frameAbsLeft = null ) : void
mode EditorDraggyMode
frameLength long
text string
mouseX int
mouseXOffset int
hasAudio bool
frameAbsLeft long
Résultat void

SetDraggyVideo() public méthode

public SetDraggyVideo ( VidkaClipVideoAbstract clip ) : void
clip Vidka.Core.Model.VidkaClipVideoAbstract
Résultat void

SetHoverAudio() public méthode

There can only be one hover b/w video and audio line, so video will be set to null
public SetHoverAudio ( VidkaClipAudio hover ) : void
hover Vidka.Core.Model.VidkaClipAudio
Résultat void

SetHoverGeneric() public méthode

Uses proj.ClipsAudio.Contains(hoverClip) to determine which to set HoverAudio or HoverVideo
public SetHoverGeneric ( VidkaClip hoverClip, VidkaProj proj ) : void
hoverClip Vidka.Core.Model.VidkaClip
proj Vidka.Core.Model.VidkaProj
Résultat void

SetHoverVideo() public méthode

There can only be one hover b/w video and audio line, so audio will be set to null
public SetHoverVideo ( VidkaClipVideoAbstract hover ) : void
hover Vidka.Core.Model.VidkaClipVideoAbstract
Résultat void

SetOriginalTimelinePlaybackMode() public méthode

public SetOriginalTimelinePlaybackMode ( bool flag ) : void
flag bool
Résultat void

SetShowEasingHandles() public méthode

public SetShowEasingHandles ( bool flag ) : void
flag bool
Résultat void

SetShowVideoAudioLinkage() public méthode

public SetShowVideoAudioLinkage ( bool flag ) : void
flag bool
Résultat void

SetTimelineHover() public méthode

public SetTimelineHover ( ProjectDimensionsTimelineType hover ) : void
hover ProjectDimensionsTimelineType
Résultat void

SetTrimHover() public méthode

public SetTrimHover ( TrimDirection trimHover ) : void
trimHover TrimDirection
Résultat void

SetTrimThreshPixels() public méthode

public SetTrimThreshPixels ( int trimThreshPixels ) : void
trimThreshPixels int
Résultat void

UiStateChanged() public méthode

Call if a repaint should be forced anyway, regardless
public UiStateChanged ( ) : void
Résultat void

UpdateCurrentClipFrameAbsPos() public méthode

proj parameter is only needed for video clip, to find its abs position
public UpdateCurrentClipFrameAbsPos ( VidkaProj proj ) : void
proj Vidka.Core.Model.VidkaProj
Résultat void

VidkaUiStateObjects() public méthode

public VidkaUiStateObjects ( ) : System
Résultat System

setMouseDragFrameDelta() public méthode

public setMouseDragFrameDelta ( long frameDelta ) : void
frameDelta long
Résultat void

setMouseDragFrameDeltaMainTimelineOnly() public méthode

public setMouseDragFrameDeltaMainTimelineOnly ( bool p ) : void
p bool
Résultat void