C# Class touchvg.core.CmdObserver

Inheritance: IDisposable
Show file Open project: rhcad/touchvg-v0.6 Class Usage Examples

Protected Properties

Property Type Description
swigCMemOwn bool

Public Methods

Method Description
Dispose ( ) : void
addShapeActions ( MgMotion sender, Ints actions, int n, MgShape sp ) : int
createCommand ( MgMotion sender, string name ) : MgCommand
createShape ( MgMotion sender, int type ) : touchvg.core.MgBaseShape
doAction ( MgMotion sender, int action ) : bool
doEndAction ( MgMotion sender, int action ) : bool
drawInSelectCommand ( MgMotion sender, MgShape sp, int handleIndex, GiGraphics gs ) : void
drawInShapeCommand ( MgMotion sender, MgCommand cmd, GiGraphics gs ) : void
onDocLoaded ( MgMotion sender ) : void
onEnterSelectCommand ( MgMotion sender ) : void
onShapeAdded ( MgMotion sender, MgShape sp ) : void
onShapeCanRotated ( MgMotion sender, MgShape sp ) : bool
onShapeCanTransform ( MgMotion sender, MgShape sp ) : bool
onShapeCanUngroup ( MgMotion sender, MgShape sp ) : bool
onShapeCanUnlock ( MgMotion sender, MgShape sp ) : bool
onShapeDeleted ( MgMotion sender, MgShape sp ) : void
onShapeMoved ( MgMotion sender, MgShape sp, int segment ) : void
onShapeWillAdded ( MgMotion sender, MgShape sp ) : bool
onShapeWillDeleted ( MgMotion sender, MgShape sp ) : bool
onUnloadCommands ( MgCmdManager sender ) : void
selectActionsNeedHided ( MgMotion sender ) : bool

Private Methods

Method Description
CmdObserver ( IntPtr cPtr, bool cMemoryOwn ) : System
getCPtr ( CmdObserver obj ) : HandleRef

Method Details

Dispose() public method

public Dispose ( ) : void
return void

addShapeActions() public method

public addShapeActions ( MgMotion sender, Ints actions, int n, MgShape sp ) : int
sender MgMotion
actions Ints
n int
sp MgShape
return int

createCommand() public method

public createCommand ( MgMotion sender, string name ) : MgCommand
sender MgMotion
name string
return MgCommand

createShape() public method

public createShape ( MgMotion sender, int type ) : touchvg.core.MgBaseShape
sender MgMotion
type int
return touchvg.core.MgBaseShape

doAction() public method

public doAction ( MgMotion sender, int action ) : bool
sender MgMotion
action int
return bool

doEndAction() public method

public doEndAction ( MgMotion sender, int action ) : bool
sender MgMotion
action int
return bool

drawInSelectCommand() public method

public drawInSelectCommand ( MgMotion sender, MgShape sp, int handleIndex, GiGraphics gs ) : void
sender MgMotion
sp MgShape
handleIndex int
gs GiGraphics
return void

drawInShapeCommand() public method

public drawInShapeCommand ( MgMotion sender, MgCommand cmd, GiGraphics gs ) : void
sender MgMotion
cmd MgCommand
gs GiGraphics
return void

onDocLoaded() public method

public onDocLoaded ( MgMotion sender ) : void
sender MgMotion
return void

onEnterSelectCommand() public method

public onEnterSelectCommand ( MgMotion sender ) : void
sender MgMotion
return void

onShapeAdded() public method

public onShapeAdded ( MgMotion sender, MgShape sp ) : void
sender MgMotion
sp MgShape
return void

onShapeCanRotated() public method

public onShapeCanRotated ( MgMotion sender, MgShape sp ) : bool
sender MgMotion
sp MgShape
return bool

onShapeCanTransform() public method

public onShapeCanTransform ( MgMotion sender, MgShape sp ) : bool
sender MgMotion
sp MgShape
return bool

onShapeCanUngroup() public method

public onShapeCanUngroup ( MgMotion sender, MgShape sp ) : bool
sender MgMotion
sp MgShape
return bool

onShapeCanUnlock() public method

public onShapeCanUnlock ( MgMotion sender, MgShape sp ) : bool
sender MgMotion
sp MgShape
return bool

onShapeDeleted() public method

public onShapeDeleted ( MgMotion sender, MgShape sp ) : void
sender MgMotion
sp MgShape
return void

onShapeMoved() public method

public onShapeMoved ( MgMotion sender, MgShape sp, int segment ) : void
sender MgMotion
sp MgShape
segment int
return void

onShapeWillAdded() public method

public onShapeWillAdded ( MgMotion sender, MgShape sp ) : bool
sender MgMotion
sp MgShape
return bool

onShapeWillDeleted() public method

public onShapeWillDeleted ( MgMotion sender, MgShape sp ) : bool
sender MgMotion
sp MgShape
return bool

onUnloadCommands() public method

public onUnloadCommands ( MgCmdManager sender ) : void
sender MgCmdManager
return void

selectActionsNeedHided() public method

public selectActionsNeedHided ( MgMotion sender ) : bool
sender MgMotion
return bool

Property Details

swigCMemOwn protected property

protected bool swigCMemOwn
return bool