C# Class Vidka.Core.OpsMouse.MouseOpAbstract

Datei anzeigen Open project: miktemk/VidkaEditor Class Usage Examples

Protected Properties

Property Type Description
dimdim ProjectDimensions
editor IVideoShitbox
iEditor IVidkaOpContext
proj Vidka.Core.Model.VidkaProj
uiObjects Vidka.Core.UiObj.VidkaUiStateObjects
videoPlayer IVideoPlayer

Public Methods

Method Description
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

Protected Methods

Method Description
cxzxc ( string text ) : void

Debug print to UI console

Method Details

ApplyFrameDelta() public method

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

ControlPressed() public method

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

EndOperation() public method

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
return void

EnterPressed() public method

For those ops who care
public EnterPressed ( ) : void
return void

Init() public method

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

KeyPressedArrow() public method

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

KeyPressedOther() public method

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

MouseDragEnd() public abstract method

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
return void

MouseDragStart() public abstract method

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

MouseDragged() public abstract method

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
return void

MouseOpAbstract() public method

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
return System

SetVideoPlayer() public method

public SetVideoPlayer ( IVideoPlayer videoPlayer ) : void
videoPlayer IVideoPlayer
return void

ShiftPressed() public method

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

TriggerBy_KeyPress() public method

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
return bool

TriggerBy_MouseDragStart() public method

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
return bool

cxzxc() protected method

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

setProj() public method

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

Property Details

dimdim protected_oe property

protected ProjectDimensions dimdim
return ProjectDimensions

editor protected_oe property

protected IVideoShitbox editor
return IVideoShitbox

iEditor protected_oe property

protected IVidkaOpContext iEditor
return IVidkaOpContext

proj protected_oe property

protected VidkaProj,Vidka.Core.Model proj
return Vidka.Core.Model.VidkaProj

uiObjects protected_oe property

protected VidkaUiStateObjects,Vidka.Core.UiObj uiObjects
return Vidka.Core.UiObj.VidkaUiStateObjects

videoPlayer protected_oe property

protected IVideoPlayer videoPlayer
return IVideoPlayer