C# 클래스 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.
파일 보기 프로젝트 열기: miktemk/VidkaEditor 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
resetCurrentClipUsages ( ) : void

메소드 상세

ClearAll() 공개 메소드

public ClearAll ( ) : void
리턴 void

ClearDraggy() 공개 메소드

public ClearDraggy ( ) : void
리턴 void

ClearStateChangeFlag() 공개 메소드

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

DidSomethingChange() 공개 메소드

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

DidSomethingChange_originalTimeline() 공개 메소드

Used to change player position when console is hidden and player floats around
public DidSomethingChange_originalTimeline ( ) : bool
리턴 bool

IncCurrentMarkerFrame() 공개 메소드

public IncCurrentMarkerFrame ( long frameInc ) : void
frameInc long
리턴 void

PleaseShowAllUsages() 공개 메소드

public PleaseShowAllUsages ( VidkaProj proj ) : void
proj Vidka.Core.Model.VidkaProj
리턴 void

SetActiveAudio() 공개 메소드

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
리턴 void

SetActiveVideo() 공개 메소드

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
리턴 void

SetCurrentMarkerFrame() 공개 메소드

public SetCurrentMarkerFrame ( long frame ) : void
frame long
리턴 void

SetDraggyAudio() 공개 메소드

public SetDraggyAudio ( VidkaClipAudio clip ) : void
clip Vidka.Core.Model.VidkaClipAudio
리턴 void

SetDraggyCoordinates() 공개 메소드

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
리턴 void

SetDraggyVideo() 공개 메소드

public SetDraggyVideo ( VidkaClipVideoAbstract clip ) : void
clip Vidka.Core.Model.VidkaClipVideoAbstract
리턴 void

SetHoverAudio() 공개 메소드

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
리턴 void

SetHoverGeneric() 공개 메소드

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
리턴 void

SetHoverVideo() 공개 메소드

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
리턴 void

SetOriginalTimelinePlaybackMode() 공개 메소드

public SetOriginalTimelinePlaybackMode ( bool flag ) : void
flag bool
리턴 void

SetShowEasingHandles() 공개 메소드

public SetShowEasingHandles ( bool flag ) : void
flag bool
리턴 void

SetShowVideoAudioLinkage() 공개 메소드

public SetShowVideoAudioLinkage ( bool flag ) : void
flag bool
리턴 void

SetTimelineHover() 공개 메소드

public SetTimelineHover ( ProjectDimensionsTimelineType hover ) : void
hover ProjectDimensionsTimelineType
리턴 void

SetTrimHover() 공개 메소드

public SetTrimHover ( TrimDirection trimHover ) : void
trimHover TrimDirection
리턴 void

SetTrimThreshPixels() 공개 메소드

public SetTrimThreshPixels ( int trimThreshPixels ) : void
trimThreshPixels int
리턴 void

UiStateChanged() 공개 메소드

Call if a repaint should be forced anyway, regardless
public UiStateChanged ( ) : void
리턴 void

UpdateCurrentClipFrameAbsPos() 공개 메소드

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

VidkaUiStateObjects() 공개 메소드

public VidkaUiStateObjects ( ) : System
리턴 System

setMouseDragFrameDelta() 공개 메소드

public setMouseDragFrameDelta ( long frameDelta ) : void
frameDelta long
리턴 void

setMouseDragFrameDeltaMainTimelineOnly() 공개 메소드

public setMouseDragFrameDeltaMainTimelineOnly ( bool p ) : void
p bool
리턴 void