C# Класс Vidka.Core.OpsMouse.MouseOpAbstract

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
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