C# Class touchvg.core.GiCoreView

Inheritance: IDisposable
Mostrar archivo Open project: rhcad/touchvg-v0.6 Class Usage Examples

Protected Properties

Property Type Description
swigCMemOwn bool

Public Methods

Method Description
Dispose ( ) : void
GiCoreView ( ) : System
GiCoreView ( GiCoreView mainView ) : System
addImageShape ( string name, float width, float height ) : bool
addShapesForTest ( ) : int
calcPenWidth ( float lineWidth ) : float
clear ( ) : void
clearCachedData ( ) : void
createMagnifierView ( GiView newview, GiView mainView ) : void
createView ( GiView view ) : void
createView ( GiView view, int type ) : void
destoryView ( GiView view ) : void
doContextAction ( int action ) : bool
drawAll ( GiView view, GiCanvas canvas ) : int
drawAppend ( GiView view, GiCanvas canvas ) : bool
dynDraw ( GiView view, GiCanvas canvas ) : void
freeContent ( ) : void
getBoundingBox ( Floats box ) : bool
getChangeCount ( ) : int
getCommand ( ) : string
getContent ( ) : string
getContext ( bool forChange ) : GiContext
getGestureState ( ) : GiGestureState
getGestureType ( ) : GiGestureType
getSelectedShapeCount ( ) : int
getSelectedShapeType ( ) : int
getShapeCount ( ) : int
isPressDragging ( ) : bool
loadFromFile ( string vgfile ) : bool
onGesture ( GiView view, GiGestureType type, GiGestureState state, float x, float y ) : bool
onGesture ( GiView view, GiGestureType type, GiGestureState state, float x, float y, bool switchGesture ) : bool
onSize ( GiView view, int w, int h ) : void
saveToFile ( string vgfile ) : bool
saveToFile ( string vgfile, bool pretty ) : bool
setBkColor ( GiView view, int argb ) : int
setCommand ( GiView view, string name ) : bool
setCommand ( GiView view, string name, string arg2 ) : bool
setContent ( string content ) : bool
setContext ( GiContext ctx, int mask, int apply ) : void
setContext ( int mask ) : void
setContextEditing ( bool editing ) : void
setScreenDpi ( int dpi ) : void
twoFingersMove ( GiView view, GiGestureState state, float x1, float y1, float x2, float y2 ) : bool
twoFingersMove ( GiView view, GiGestureState state, float x1, float y1, float x2, float y2, bool switchGesture ) : bool
viewAdapter ( ) : MgView
viewAdapterHandle ( ) : int
zoomToExtent ( ) : bool
zoomToModel ( float x, float y, float w, float h ) : bool

Private Methods

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

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GiCoreView() public method

public GiCoreView ( ) : System
return System

GiCoreView() public method

public GiCoreView ( GiCoreView mainView ) : System
mainView GiCoreView
return System

addImageShape() public method

public addImageShape ( string name, float width, float height ) : bool
name string
width float
height float
return bool

addShapesForTest() public method

public addShapesForTest ( ) : int
return int

calcPenWidth() public method

public calcPenWidth ( float lineWidth ) : float
lineWidth float
return float

clear() public method

public clear ( ) : void
return void

clearCachedData() public method

public clearCachedData ( ) : void
return void

createMagnifierView() public method

public createMagnifierView ( GiView newview, GiView mainView ) : void
newview GiView
mainView GiView
return void

createView() public method

public createView ( GiView view ) : void
view GiView
return void

createView() public method

public createView ( GiView view, int type ) : void
view GiView
type int
return void

destoryView() public method

public destoryView ( GiView view ) : void
view GiView
return void

doContextAction() public method

public doContextAction ( int action ) : bool
action int
return bool

drawAll() public method

public drawAll ( GiView view, GiCanvas canvas ) : int
view GiView
canvas GiCanvas
return int

drawAppend() public method

public drawAppend ( GiView view, GiCanvas canvas ) : bool
view GiView
canvas GiCanvas
return bool

dynDraw() public method

public dynDraw ( GiView view, GiCanvas canvas ) : void
view GiView
canvas GiCanvas
return void

freeContent() public method

public freeContent ( ) : void
return void

getBoundingBox() public method

public getBoundingBox ( Floats box ) : bool
box Floats
return bool

getChangeCount() public method

public getChangeCount ( ) : int
return int

getCommand() public method

public getCommand ( ) : string
return string

getContent() public method

public getContent ( ) : string
return string

getContext() public method

public getContext ( bool forChange ) : GiContext
forChange bool
return GiContext

getGestureState() public method

public getGestureState ( ) : GiGestureState
return GiGestureState

getGestureType() public method

public getGestureType ( ) : GiGestureType
return GiGestureType

getSelectedShapeCount() public method

public getSelectedShapeCount ( ) : int
return int

getSelectedShapeType() public method

public getSelectedShapeType ( ) : int
return int

getShapeCount() public method

public getShapeCount ( ) : int
return int

isPressDragging() public method

public isPressDragging ( ) : bool
return bool

loadFromFile() public method

public loadFromFile ( string vgfile ) : bool
vgfile string
return bool

onGesture() public method

public onGesture ( GiView view, GiGestureType type, GiGestureState state, float x, float y ) : bool
view GiView
type GiGestureType
state GiGestureState
x float
y float
return bool

onGesture() public method

public onGesture ( GiView view, GiGestureType type, GiGestureState state, float x, float y, bool switchGesture ) : bool
view GiView
type GiGestureType
state GiGestureState
x float
y float
switchGesture bool
return bool

onSize() public method

public onSize ( GiView view, int w, int h ) : void
view GiView
w int
h int
return void

saveToFile() public method

public saveToFile ( string vgfile ) : bool
vgfile string
return bool

saveToFile() public method

public saveToFile ( string vgfile, bool pretty ) : bool
vgfile string
pretty bool
return bool

setBkColor() public method

public setBkColor ( GiView view, int argb ) : int
view GiView
argb int
return int

setCommand() public method

public setCommand ( GiView view, string name ) : bool
view GiView
name string
return bool

setCommand() public method

public setCommand ( GiView view, string name, string arg2 ) : bool
view GiView
name string
arg2 string
return bool

setContent() public method

public setContent ( string content ) : bool
content string
return bool

setContext() public method

public setContext ( GiContext ctx, int mask, int apply ) : void
ctx GiContext
mask int
apply int
return void

setContext() public method

public setContext ( int mask ) : void
mask int
return void

setContextEditing() public method

public setContextEditing ( bool editing ) : void
editing bool
return void

setScreenDpi() public static method

public static setScreenDpi ( int dpi ) : void
dpi int
return void

twoFingersMove() public method

public twoFingersMove ( GiView view, GiGestureState state, float x1, float y1, float x2, float y2 ) : bool
view GiView
state GiGestureState
x1 float
y1 float
x2 float
y2 float
return bool

twoFingersMove() public method

public twoFingersMove ( GiView view, GiGestureState state, float x1, float y1, float x2, float y2, bool switchGesture ) : bool
view GiView
state GiGestureState
x1 float
y1 float
x2 float
y2 float
switchGesture bool
return bool

viewAdapter() public method

public viewAdapter ( ) : MgView
return MgView

viewAdapterHandle() public method

public viewAdapterHandle ( ) : int
return int

zoomToExtent() public method

public zoomToExtent ( ) : bool
return bool

zoomToModel() public method

public zoomToModel ( float x, float y, float w, float h ) : bool
x float
y float
w float
h float
return bool

Property Details

swigCMemOwn protected_oe property

protected bool swigCMemOwn
return bool