C# Class Vidka.Core.OpsMouse.MouseOpAbstract

Afficher le fichier Open project: miktemk/VidkaEditor Class Usage Examples

Protected Properties

Свойство Type Description
dimdim ProjectDimensions
editor IVideoShitbox
iEditor IVidkaOpContext
proj Vidka.Core.Model.VidkaProj
uiObjects Vidka.Core.UiObj.VidkaUiStateObjects
videoPlayer IVideoPlayer

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
cxzxc ( string text ) : void

Debug print to UI console

Method Details

ApplyFrameDelta() public méthode

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

ControlPressed() public méthode

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

EndOperation() public méthode

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
Résultat void

EnterPressed() public méthode

For those ops who care
public EnterPressed ( ) : void
Résultat void

Init() public méthode

Called when we begin a fresh new op
public Init ( ) : void
Résultat void

KeyPressedArrow() public méthode

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

KeyPressedOther() public méthode

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

MouseDragEnd() public abstract méthode

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
Résultat void

MouseDragStart() public abstract méthode

public abstract MouseDragStart ( int x, int y, int w, int h ) : void
x int
y int
w int
h int
Résultat void

MouseDragged() public abstract méthode

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
Résultat void

MouseOpAbstract() public méthode

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
Résultat System

SetVideoPlayer() public méthode

public SetVideoPlayer ( IVideoPlayer videoPlayer ) : void
videoPlayer IVideoPlayer
Résultat void

ShiftPressed() public méthode

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

TriggerBy_KeyPress() public méthode

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
Résultat bool

TriggerBy_MouseDragStart() public méthode

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
Résultat bool

cxzxc() protected méthode

Debug print to UI console
protected cxzxc ( string text ) : void
text string
Résultat void

setProj() public méthode

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

Property Details

dimdim protected_oe property

protected ProjectDimensions dimdim
Résultat ProjectDimensions

editor protected_oe property

protected IVideoShitbox editor
Résultat IVideoShitbox

iEditor protected_oe property

protected IVidkaOpContext iEditor
Résultat IVidkaOpContext

proj protected_oe property

protected VidkaProj,Vidka.Core.Model proj
Résultat Vidka.Core.Model.VidkaProj

uiObjects protected_oe property

protected VidkaUiStateObjects,Vidka.Core.UiObj uiObjects
Résultat Vidka.Core.UiObj.VidkaUiStateObjects

videoPlayer protected_oe property

protected IVideoPlayer videoPlayer
Résultat IVideoPlayer