C# 클래스 Vidka.Core.OpsMouse.MouseOpAbstract

파일 보기 프로젝트 열기: miktemk/VidkaEditor 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
dimdim ProjectDimensions
editor IVideoShitbox
iEditor IVidkaOpContext
proj Vidka.Core.Model.VidkaProj
uiObjects Vidka.Core.UiObj.VidkaUiStateObjects
videoPlayer IVideoPlayer

공개 메소드들

메소드 설명
ApplyFrameDelta ( long deltaFrame ) : void

Override to accept keyboard adjustments See EditorLogic.LeftRightArrowKeys for call order and usage

ControlPressed ( ) : void

For those ops that might have a different behavior based on whether it is click or control click

EndOperation ( ) : void

Called from EditorLogic.MouseDragEnd (if DragEndIsTheEndOfThisOperation is true) or EditorLogic.EscapePressed, both cases, right before setting CurEditOp to null. (e.g. if the user decided to hit Escape and cancel this operation ...or to get out of keyboard adjustments) Override to clear any uiObjects in case a repaint is needed

EnterPressed ( ) : void

For those ops who care

Init ( ) : void

Called when we begin a fresh new op

KeyPressedArrow ( Keys keyData ) : void

Override to accept keyboard adjustments See EditorLogic.LeftRightArrowKeys for call order and usage

KeyPressedOther ( Keys keyData ) : void

Override to accept keyboard adjustments See EditorLogic.LeftRightArrowKeys for call order and usage

MouseDragEnd ( int x, int y, int deltaX, int deltaY, int w, int h ) : void
MouseDragStart ( int x, int y, int w, int h ) : void
MouseDragged ( int x, int y, int deltaX, int deltaY, int w, int h ) : void
MouseOpAbstract ( IVidkaOpContext iEditor, VidkaUiStateObjects uiObjects, ProjectDimensions dimdim, IVideoShitbox editor, IVideoPlayer videoPlayer ) : System
SetVideoPlayer ( IVideoPlayer videoPlayer ) : void
ShiftPressed ( ) : void

For those ops that might have a different behavior based on whether it is click or shift click

TriggerBy_KeyPress ( Keys key ) : bool

Override this to return true when a key press is such that it triggers this edit op

TriggerBy_MouseDragStart ( MouseButtons button, int x, int y ) : bool

Override this to return true when a mouse drag action is such that it triggers this edit op

setProj ( VidkaProj proj ) : void

보호된 메소드들

메소드 설명
cxzxc ( string text ) : void

Debug print to UI console

메소드 상세

ApplyFrameDelta() 공개 메소드

Override to accept keyboard adjustments See EditorLogic.LeftRightArrowKeys for call order and usage
public ApplyFrameDelta ( long deltaFrame ) : void
deltaFrame long
리턴 void

ControlPressed() 공개 메소드

For those ops that might have a different behavior based on whether it is click or control click
public ControlPressed ( ) : void
리턴 void

EndOperation() 공개 메소드

Called from EditorLogic.MouseDragEnd (if DragEndIsTheEndOfThisOperation is true) or EditorLogic.EscapePressed, both cases, right before setting CurEditOp to null. (e.g. if the user decided to hit Escape and cancel this operation ...or to get out of keyboard adjustments) Override to clear any uiObjects in case a repaint is needed
public EndOperation ( ) : void
리턴 void

EnterPressed() 공개 메소드

For those ops who care
public EnterPressed ( ) : void
리턴 void

Init() 공개 메소드

Called when we begin a fresh new op
public Init ( ) : void
리턴 void

KeyPressedArrow() 공개 메소드

Override to accept keyboard adjustments See EditorLogic.LeftRightArrowKeys for call order and usage
public KeyPressedArrow ( Keys keyData ) : void
keyData Keys
리턴 void

KeyPressedOther() 공개 메소드

Override to accept keyboard adjustments See EditorLogic.LeftRightArrowKeys for call order and usage
public KeyPressedOther ( Keys keyData ) : void
keyData Keys
리턴 void

MouseDragEnd() 공개 추상적인 메소드

public abstract MouseDragEnd ( int x, int y, int deltaX, int deltaY, int w, int h ) : void
x int
y int
deltaX int relative to where the mouse was pressed down
deltaY int relative to where the mouse was pressed down
w int
h int
리턴 void

MouseDragStart() 공개 추상적인 메소드

public abstract MouseDragStart ( int x, int y, int w, int h ) : void
x int
y int
w int
h int
리턴 void

MouseDragged() 공개 추상적인 메소드

public abstract MouseDragged ( int x, int y, int deltaX, int deltaY, int w, int h ) : void
x int
y int
deltaX int relative to where the mouse was pressed down
deltaY int relative to where the mouse was pressed down
w int
h int
리턴 void

MouseOpAbstract() 공개 메소드

public MouseOpAbstract ( IVidkaOpContext iEditor, VidkaUiStateObjects uiObjects, ProjectDimensions dimdim, IVideoShitbox editor, IVideoPlayer videoPlayer ) : System
iEditor IVidkaOpContext
uiObjects Vidka.Core.UiObj.VidkaUiStateObjects
dimdim ProjectDimensions
editor IVideoShitbox
videoPlayer IVideoPlayer
리턴 System

SetVideoPlayer() 공개 메소드

public SetVideoPlayer ( IVideoPlayer videoPlayer ) : void
videoPlayer IVideoPlayer
리턴 void

ShiftPressed() 공개 메소드

For those ops that might have a different behavior based on whether it is click or shift click
public ShiftPressed ( ) : void
리턴 void

TriggerBy_KeyPress() 공개 메소드

Override this to return true when a key press is such that it triggers this edit op
public TriggerBy_KeyPress ( Keys key ) : bool
key Keys
리턴 bool

TriggerBy_MouseDragStart() 공개 메소드

Override this to return true when a mouse drag action is such that it triggers this edit op
public TriggerBy_MouseDragStart ( MouseButtons button, int x, int y ) : bool
button MouseButtons
x int
y int
리턴 bool

cxzxc() 보호된 메소드

Debug print to UI console
protected cxzxc ( string text ) : void
text string
리턴 void

setProj() 공개 메소드

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

프로퍼티 상세

dimdim 보호되어 있는 프로퍼티

protected ProjectDimensions dimdim
리턴 ProjectDimensions

editor 보호되어 있는 프로퍼티

protected IVideoShitbox editor
리턴 IVideoShitbox

iEditor 보호되어 있는 프로퍼티

protected IVidkaOpContext iEditor
리턴 IVidkaOpContext

proj 보호되어 있는 프로퍼티

protected VidkaProj,Vidka.Core.Model proj
리턴 Vidka.Core.Model.VidkaProj

uiObjects 보호되어 있는 프로퍼티

protected VidkaUiStateObjects,Vidka.Core.UiObj uiObjects
리턴 Vidka.Core.UiObj.VidkaUiStateObjects

videoPlayer 보호되어 있는 프로퍼티

protected IVideoPlayer videoPlayer
리턴 IVideoPlayer