// ĠTHIS ĠFILE ĠIS ĠGENERATED ! ĠDO ĠNOT ĠEDIT ĠIT ĠMAN U ALLY ! ĠALL ĠCH ANG ES ĠTO ĠIT ĠWILL ĠBE ĠOVER WR IT TEN ĠON ĠE ACH ĠBUILD Ċ package Ġgod ot Ċ Ċ import Ġgod ot . core . Color Ċ import Ġgod ot . core . Dictionary Ċ import Ġgod ot . core . Pool Color Array Ċ import Ġgod ot . core . Pool Vector 2 Array Ċ import Ġgod ot . core . RID Ċ import Ġgod ot . core . Rect 2 Ċ import Ġgod ot . core . Signal 0 Ċ import Ġgod ot . core . Transform 2 D Ċ import Ġgod ot . core . Vector 2 Ċ import Ġgod ot . core . signal Ċ import Ġgod ot . ic alls ._ ic all _ Boolean Ċ import Ġgod ot . ic alls ._ ic all _ Color Ċ import Ġgod ot . ic alls ._ ic all _ Double _ Object _ Vector 2 _ String _ String _ Color Ċ import Ġgod ot . ic alls ._ ic all _ Input Event _ Object Ċ import Ġgod ot . ic alls ._ ic all _ Long Ċ import Ġgod ot . ic alls ._ ic all _ Material Ċ import Ġgod ot . ic alls ._ ic all _ RID Ċ import Ġgod ot . ic alls ._ ic all _ Rect 2 Ċ import Ġgod ot . ic alls ._ ic all _ Transform 2 D Ċ import Ġgod ot . ic alls ._ ic all _ Unit Ċ import Ġgod ot . ic alls ._ ic all _ Unit _ Boolean Ċ import Ġgod ot . ic alls ._ ic all _ Unit _ Color Ċ import Ġgod ot . ic alls ._ ic all _ Unit _ Long Ċ import Ġgod ot . ic alls ._ ic all _ Unit _ Object Ċ import Ġgod ot . ic alls ._ ic all _ Unit _ Object _ Object _ n Object Ċ import Ġgod ot . ic alls ._ ic all _ Unit _ Object _ Object _ n Object _ Transform 2 D _ Color Ċ import Ġgod ot . ic alls ._ ic all _ Unit _ Object _ Rect 2 Ċ import Ġgod ot . ic alls ._ ic all _ Unit _ Object _ Rect 2 _ Boolean _ Color _ Boolean _ n Object Ċ import Ġgod ot . ic alls ._ ic all _ Unit _ Object _ Rect 2 _ Rect 2 _ Color _ Boolean _ n Object _ Boolean Ċ import Ġgod ot . ic alls ._ ic all _ Unit _ Object _ Vector 2 _ Color _ n Object Ċ import Ġgod ot . ic alls ._ ic all _ Unit _ Object _ Vector 2 _ String _ Color _ Long Ċ import Ġgod ot . ic alls ._ ic all _ Unit _ Pool Vector 2 Array _ Color _ Double _ Boolean Ċ import Ġgod ot . ic alls ._ ic all _ Unit _ Pool Vector 2 Array _ Color _ Pool Vector 2 Array _ n Object _ n Object _ Boolean Ċ import Ġgod ot . ic alls ._ ic all _ Unit _ Pool Vector 2 Array _ Pool Color Array _ Double _ Boolean Ċ import Ġgod ot . ic alls ._ ic all _ Unit _ Pool Vector 2 Array _ Pool Color Array _ Pool Vector 2 Array _ n Object _ Double _ n Object Ċ import Ġgod ot . ic alls ._ ic all _ Unit _ Pool Vector 2 Array _ Pool Color Array _ Pool Vector 2 Array _ n Object _ n Object _ Boolean Ċ import Ġgod ot . ic alls ._ ic all _ Unit _ Rect 2 _ Color _ Boolean _ Double _ Boolean Ċ import Ġgod ot . ic alls ._ ic all _ Unit _ Transform 2 D Ċ import Ġgod ot . ic alls ._ ic all _ Unit _ Vector 2 _ Double _ Color Ċ import Ġgod ot . ic alls ._ ic all _ Unit _ Vector 2 _ Double _ Double _ Double _ Long _ Color _ Double _ Boolean Ċ import Ġgod ot . ic alls ._ ic all _ Unit _ Vector 2 _ Double _ Vector 2 Ċ import Ġgod ot . ic alls ._ ic all _ Unit _ Vector 2 _ Vector 2 _ Color _ Double _ Boolean Ċ import Ġgod ot . ic alls ._ ic all _ Vector 2 Ċ import Ġgod ot . ic alls ._ ic all _ Vector 2 _ Vector 2 Ċ import Ġgod ot . ic alls ._ ic all _ World 2 D Ċ import Ġgod ot . internal . utils . getMethod Bind Ċ import Ġkotlin . Boolean Ċ import Ġkotlin . Double Ċ import Ġkotlin . Long Ċ import Ġkotlin . NotImplemented Error Ċ import Ġkotlin . String Ċ import Ġkotlin . Unit Ċ Ċ open Ġclass ĠCanvas Item Ġinternal Ġconstructor () Ġ: ĠNode () Ġ{ ĊĠ Ġval Ġdraw : ĠSignal 0 Ġby Ġsignal () ĊĊĠ Ġval Ġhide : ĠSignal 0 Ġby Ġsignal () ĊĊĠ Ġval Ġitem Rect Changed : ĠSignal 0 Ġby Ġsignal () ĊĊĠ Ġval Ġvisibility Changed : ĠSignal 0 Ġby Ġsignal () ĊĊĠ Ġopen Ġvar Ġlight Mask : ĠLong ĊĠĠĠ Ġget () Ġ{ ĊĠĠĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," get _ light _ mask ") ĊĠĠĠĠĠ Ġreturn Ġ_ ic all _ Long ( mb , Ġthis . ptr ) ĊĠĠĠ Ġ} ĊĠĠĠ Ġset ( value ) Ġ{ ĊĠĠĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," set _ light _ mask ") ĊĠĠĠĠĠ Ġ_ ic all _ Unit _ Long ( mb , Ġthis . ptr , Ġvalue ) ĊĠĠĠ Ġ} ĊĊĠ Ġopen Ġvar Ġmaterial : ĠMaterial ĊĠĠĠ Ġget () Ġ{ ĊĠĠĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," get _ material ") ĊĠĠĠĠĠ Ġreturn Ġ_ ic all _ Material ( mb , Ġthis . ptr ) ĊĠĠĠ Ġ} ĊĠĠĠ Ġset ( value ) Ġ{ ĊĠĠĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," set _ material ") ĊĠĠĠĠĠ Ġ_ ic all _ Unit _ Object ( mb , Ġthis . ptr , Ġvalue ) ĊĠĠĠ Ġ} ĊĊĠ Ġopen Ġvar Ġmod ulate : ĠColor ĊĠĠĠ Ġget () Ġ{ ĊĠĠĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," get _ mod ulate ") ĊĠĠĠĠĠ Ġreturn Ġ_ ic all _ Color ( mb , Ġthis . ptr ) ĊĠĠĠ Ġ} ĊĠĠĠ Ġset ( value ) Ġ{ ĊĠĠĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," set _ mod ulate ") ĊĠĠĠĠĠ Ġ_ ic all _ Unit _ Color ( mb , Ġthis . ptr , Ġvalue ) ĊĠĠĠ Ġ} ĊĊĠ Ġopen Ġvar Ġself Mod ulate : ĠColor ĊĠĠĠ Ġget () Ġ{ ĊĠĠĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," get _ self _ mod ulate ") ĊĠĠĠĠĠ Ġreturn Ġ_ ic all _ Color ( mb , Ġthis . ptr ) ĊĠĠĠ Ġ} ĊĠĠĠ Ġset ( value ) Ġ{ ĊĠĠĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," set _ self _ mod ulate ") ĊĠĠĠĠĠ Ġ_ ic all _ Unit _ Color ( mb , Ġthis . ptr , Ġvalue ) ĊĠĠĠ Ġ} ĊĊĠ Ġopen Ġvar Ġshow Be hind Parent : ĠBoolean ĊĠĠĠ Ġget () Ġ{ ĊĠĠĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," is _ draw _ behind _ parent _ enabled ") ĊĠĠĠĠĠ Ġreturn Ġ_ ic all _ Boolean ( mb , Ġthis . ptr ) ĊĠĠĠ Ġ} ĊĠĠĠ Ġset ( value ) Ġ{ ĊĠĠĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," set _ draw _ behind _ parent ") ĊĠĠĠĠĠ Ġ_ ic all _ Unit _ Boolean ( mb , Ġthis . ptr , Ġvalue ) ĊĠĠĠ Ġ} ĊĊĠ Ġopen Ġvar Ġuse Parent Material : ĠBoolean ĊĠĠĠ Ġget () Ġ{ ĊĠĠĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," get _ use _ parent _ material ") ĊĠĠĠĠĠ Ġreturn Ġ_ ic all _ Boolean ( mb , Ġthis . ptr ) ĊĠĠĠ Ġ} ĊĠĠĠ Ġset ( value ) Ġ{ ĊĠĠĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," set _ use _ parent _ material ") ĊĠĠĠĠĠ Ġ_ ic all _ Unit _ Boolean ( mb , Ġthis . ptr , Ġvalue ) ĊĠĠĠ Ġ} ĊĊĠ Ġopen Ġvar Ġvisible : ĠBoolean ĊĠĠĠ Ġget () Ġ{ ĊĠĠĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," is _ visible ") ĊĠĠĠĠĠ Ġreturn Ġ_ ic all _ Boolean ( mb , Ġthis . ptr ) ĊĠĠĠ Ġ} ĊĠĠĠ Ġset ( value ) Ġ{ ĊĠĠĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," set _ visible ") ĊĠĠĠĠĠ Ġ_ ic all _ Unit _ Boolean ( mb , Ġthis . ptr , Ġvalue ) ĊĠĠĠ Ġ} ĊĊĠ Ġopen Ġfun Ġmod ulate ( schedule : ĠColor . () Ġ-> ĠUnit ): ĠColor Ġ= Ġmod ulate . apply { ĊĠĠĠĠĠ Ġschedule ( this ) ĊĠĠĠĠĠ Ġmod ulate Ġ= Ġthis ĊĠ Ġ} ĊĊĊĠ Ġopen Ġfun Ġself Mod ulate ( schedule : ĠColor . () Ġ-> ĠUnit ): ĠColor Ġ= Ġself Mod ulate . apply { ĊĠĠĠĠĠ Ġschedule ( this ) ĊĠĠĠĠĠ Ġself Mod ulate Ġ= Ġthis ĊĠ Ġ} ĊĊĊĠ Ġopen Ġfun Ġ_ draw () Ġ{ ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġ_ edit Get Pivot (): ĠVector 2 Ġ{ ĊĠĠĠ Ġthrow ĠNotImplementedError ("_ edit _ get _ pivot Ġis Ġnot Ġimplemented Ġfor ĠCanvas Item ") ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġ_ edit Get Position (): ĠVector 2 Ġ{ ĊĠĠĠ Ġthrow ĠNotImplementedError ("_ edit _ get _ position Ġis Ġnot Ġimplemented Ġfor ĠCanvas Item ") ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġ_ edit Get Rect (): ĠRect 2 Ġ{ ĊĠĠĠ Ġthrow ĠNotImplementedError ("_ edit _ get _ rect Ġis Ġnot Ġimplemented Ġfor ĠCanvas Item ") ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġ_ edit Get Rotation (): ĠDouble Ġ{ ĊĠĠĠ Ġthrow ĠNotImplementedError ("_ edit _ get _ rotation Ġis Ġnot Ġimplemented Ġfor ĠCanvas Item ") ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġ_ edit Get Scale (): ĠVector 2 Ġ{ ĊĠĠĠ Ġthrow ĠNotImplementedError ("_ edit _ get _ scale Ġis Ġnot Ġimplemented Ġfor ĠCanvas Item ") ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġ_ edit GetState (): ĠDictionary Ġ{ ĊĠĠĠ Ġthrow ĠNotImplementedError ("_ edit _ get _ state Ġis Ġnot Ġimplemented Ġfor ĠCanvas Item ") ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġ_ edit Get Transform (): ĠTransform 2 D Ġ{ ĊĠĠĠ Ġthrow ĠNotImplementedError ("_ edit _ get _ transform Ġis Ġnot Ġimplemented Ġfor ĠCanvas Item ") ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġ_ edit Set Pivot ( pivot : ĠVector 2 ) Ġ{ ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġ_ edit Set Position ( position : ĠVector 2 ) Ġ{ ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġ_ edit Set Rect ( rect : ĠRect 2 ) Ġ{ ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġ_ edit Set Rotation ( degrees : ĠDouble ) Ġ{ ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġ_ edit Set Scale ( scale : ĠVector 2 ) Ġ{ ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġ_ edit Set State ( state : ĠDictionary ) Ġ{ ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġ_ edit Use Pivot (): ĠBoolean Ġ{ ĊĠĠĠ Ġthrow ĠNotImplementedError ("_ edit _ use _ pivot Ġis Ġnot Ġimplemented Ġfor ĠCanvas Item ") ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġ_ edit Use Rect (): ĠBoolean Ġ{ ĊĠĠĠ Ġthrow ĠNotImplementedError ("_ edit _ use _ rect Ġis Ġnot Ġimplemented Ġfor ĠCanvas Item ") ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġ_ edit Use Rotation (): ĠBoolean Ġ{ ĊĠĠĠ Ġthrow ĠNotImplementedError ("_ edit _ use _ rotation Ġis Ġnot Ġimplemented Ġfor ĠCanvas Item ") ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġ_ is On Top (): ĠBoolean Ġ{ ĊĠĠĠ Ġthrow ĠNotImplementedError ("_ is _ on _ top Ġis Ġnot Ġimplemented Ġfor ĠCanvas Item ") ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġ_ setOn Top ( on Top : ĠBoolean ) Ġ{ ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġ_ toplevel Raise Self () Ġ{ ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġ_ update Callback () Ġ{ ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġdraw Arc ( ĊĠĠĠ Ġcenter : ĠVector 2 , ĊĠĠĠ Ġradius : ĠDouble , ĊĠĠĠ Ġstart Angle : ĠDouble , ĊĠĠĠ Ġend Angle : ĠDouble , ĊĠĠĠ Ġpoint Count : ĠLong , ĊĠĠĠ Ġcolor : ĠColor , ĊĠĠĠ Ġwidth : ĠDouble Ġ= Ġ 1 . 0 , ĊĠĠĠ Ġant iali ased : ĠBoolean Ġ= Ġfalse ĊĠ Ġ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," draw _ arc ") ĊĠĠĠ Ġ_ ic all _ Unit _ Vector 2 _ Double _ Double _ Double _ Long _ Color _ Double _ Boolean ( Ġmb , Ġthis . ptr , Ġcenter , ĊĠĠĠĠĠĠĠ Ġradius , Ġstart Angle , Ġend Angle , Ġpoint Count , Ġcolor , Ġwidth , Ġant iali ased ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġdraw Char ( ĊĠĠĠ Ġfont : ĠFont , ĊĠĠĠ Ġposition : ĠVector 2 , ĊĠĠĠ Ġchar : ĠString , ĊĠĠĠ Ġnext : ĠString , ĊĠĠĠ Ġmod ulate : ĠColor Ġ= ĠColor ( 1 , 1 , 1 , 1 ) ĊĠ Ġ): ĠDouble Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," draw _ char ") ĊĠĠĠ Ġreturn Ġ_ ic all _ Double _ Object _ Vector 2 _ String _ String _ Color ( Ġmb , Ġthis . ptr , Ġfont , Ġposition , Ġchar , ĊĠĠĠĠĠĠĠ Ġnext , Ġmod ulate ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġdraw Circle ( ĊĠĠĠ Ġposition : ĠVector 2 , ĊĠĠĠ Ġradius : ĠDouble , ĊĠĠĠ Ġcolor : ĠColor ĊĠ Ġ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," draw _ circle ") ĊĠĠĠ Ġ_ ic all _ Unit _ Vector 2 _ Double _ Color ( Ġmb , Ġthis . ptr , Ġposition , Ġradius , Ġcolor ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġdraw Colo red Polygon ( ĊĠĠĠ Ġpoints : ĠPool Vector 2 Array , ĊĠĠĠ Ġcolor : ĠColor , ĊĠĠĠ Ġu vs : ĠPool Vector 2 Array Ġ= ĠPool Vector 2 Array (), ĊĠĠĠ Ġtexture : ĠTexture ? Ġ= Ġnull , ĊĠĠĠ Ġnormal Map : ĠTexture ? Ġ= Ġnull , ĊĠĠĠ Ġant iali ased : ĠBoolean Ġ= Ġfalse ĊĠ Ġ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," draw _ colored _ polygon ") ĊĠĠĠ Ġ_ ic all _ Unit _ Pool Vector 2 Array _ Color _ Pool Vector 2 Array _ n Object _ n Object _ Boolean ( Ġmb , Ġthis . ptr , ĊĠĠĠĠĠĠĠ Ġpoints , Ġcolor , Ġu vs , Ġtexture , Ġnormal Map , Ġant iali ased ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġdraw Line ( ĊĠĠĠ Ġfrom : ĠVector 2 , ĊĠĠĠ Ġto : ĠVector 2 , ĊĠĠĠ Ġcolor : ĠColor , ĊĠĠĠ Ġwidth : ĠDouble Ġ= Ġ 1 . 0 , ĊĠĠĠ Ġant iali ased : ĠBoolean Ġ= Ġfalse ĊĠ Ġ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," draw _ line ") ĊĠĠĠ Ġ_ ic all _ Unit _ Vector 2 _ Vector 2 _ Color _ Double _ Boolean ( Ġmb , Ġthis . ptr , Ġfrom , Ġto , Ġcolor , Ġwidth , ĊĠĠĠĠĠĠĠ Ġant iali ased ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġdraw Mesh ( ĊĠĠĠ Ġmesh : ĠMesh , ĊĠĠĠ Ġtexture : ĠTexture , ĊĠĠĠ Ġnormal Map : ĠTexture ? Ġ= Ġnull , ĊĠĠĠ Ġtransform : ĠTransform 2 D Ġ= ĠTransform 2 D (), ĊĠĠĠ Ġmod ulate : ĠColor Ġ= ĠColor ( 1 , 1 , 1 , 1 ) ĊĠ Ġ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," draw _ mesh ") ĊĠĠĠ Ġ_ ic all _ Unit _ Object _ Object _ n Object _ Transform 2 D _ Color ( Ġmb , Ġthis . ptr , Ġmesh , Ġtexture , Ġnormal Map , ĊĠĠĠĠĠĠĠ Ġtransform , Ġmod ulate ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġdraw Mult iline ( ĊĠĠĠ Ġpoints : ĠPool Vector 2 Array , ĊĠĠĠ Ġcolor : ĠColor , ĊĠĠĠ Ġwidth : ĠDouble Ġ= Ġ 1 . 0 , ĊĠĠĠ Ġant iali ased : ĠBoolean Ġ= Ġfalse ĊĠ Ġ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," draw _ mult iline ") ĊĠĠĠ Ġ_ ic all _ Unit _ Pool Vector 2 Array _ Color _ Double _ Boolean ( Ġmb , Ġthis . ptr , Ġpoints , Ġcolor , Ġwidth , ĊĠĠĠĠĠĠĠ Ġant iali ased ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġdraw Mult iline Colors ( ĊĠĠĠ Ġpoints : ĠPool Vector 2 Array , ĊĠĠĠ Ġcolors : ĠPool Color Array , ĊĠĠĠ Ġwidth : ĠDouble Ġ= Ġ 1 . 0 , ĊĠĠĠ Ġant iali ased : ĠBoolean Ġ= Ġfalse ĊĠ Ġ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," draw _ mult iline _ colors ") ĊĠĠĠ Ġ_ ic all _ Unit _ Pool Vector 2 Array _ Pool Color Array _ Double _ Boolean ( Ġmb , Ġthis . ptr , Ġpoints , Ġcolors , Ġwidth , ĊĠĠĠĠĠĠĠ Ġant iali ased ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġdraw Mult ime sh ( ĊĠĠĠ Ġmult ime sh : ĠMulti Mesh , ĊĠĠĠ Ġtexture : ĠTexture , ĊĠĠĠ Ġnormal Map : ĠTexture ? Ġ= Ġnull ĊĠ Ġ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," draw _ mult ime sh ") ĊĠĠĠ Ġ_ ic all _ Unit _ Object _ Object _ n Object ( Ġmb , Ġthis . ptr , Ġmult ime sh , Ġtexture , Ġnormal Map ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġdraw Polygon ( ĊĠĠĠ Ġpoints : ĠPool Vector 2 Array , ĊĠĠĠ Ġcolors : ĠPool Color Array , ĊĠĠĠ Ġu vs : ĠPool Vector 2 Array Ġ= ĠPool Vector 2 Array (), ĊĠĠĠ Ġtexture : ĠTexture ? Ġ= Ġnull , ĊĠĠĠ Ġnormal Map : ĠTexture ? Ġ= Ġnull , ĊĠĠĠ Ġant iali ased : ĠBoolean Ġ= Ġfalse ĊĠ Ġ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," draw _ polygon ") ĊĠĠĠ Ġ_ ic all _ Unit _ Pool Vector 2 Array _ Pool Color Array _ Pool Vector 2 Array _ n Object _ n Object _ Boolean ( Ġmb , ĊĠĠĠĠĠĠĠ Ġthis . ptr , Ġpoints , Ġcolors , Ġu vs , Ġtexture , Ġnormal Map , Ġant iali ased ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġdraw Polyline ( ĊĠĠĠ Ġpoints : ĠPool Vector 2 Array , ĊĠĠĠ Ġcolor : ĠColor , ĊĠĠĠ Ġwidth : ĠDouble Ġ= Ġ 1 . 0 , ĊĠĠĠ Ġant iali ased : ĠBoolean Ġ= Ġfalse ĊĠ Ġ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," draw _ poly line ") ĊĠĠĠ Ġ_ ic all _ Unit _ Pool Vector 2 Array _ Color _ Double _ Boolean ( Ġmb , Ġthis . ptr , Ġpoints , Ġcolor , Ġwidth , ĊĠĠĠĠĠĠĠ Ġant iali ased ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġdraw Polyline Colors ( ĊĠĠĠ Ġpoints : ĠPool Vector 2 Array , ĊĠĠĠ Ġcolors : ĠPool Color Array , ĊĠĠĠ Ġwidth : ĠDouble Ġ= Ġ 1 . 0 , ĊĠĠĠ Ġant iali ased : ĠBoolean Ġ= Ġfalse ĊĠ Ġ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," draw _ poly line _ colors ") ĊĠĠĠ Ġ_ ic all _ Unit _ Pool Vector 2 Array _ Pool Color Array _ Double _ Boolean ( Ġmb , Ġthis . ptr , Ġpoints , Ġcolors , Ġwidth , ĊĠĠĠĠĠĠĠ Ġant iali ased ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġdraw Primitive ( ĊĠĠĠ Ġpoints : ĠPool Vector 2 Array , ĊĠĠĠ Ġcolors : ĠPool Color Array , ĊĠĠĠ Ġu vs : ĠPool Vector 2 Array , ĊĠĠĠ Ġtexture : ĠTexture ? Ġ= Ġnull , ĊĠĠĠ Ġwidth : ĠDouble Ġ= Ġ 1 . 0 , ĊĠĠĠ Ġnormal Map : ĠTexture ? Ġ= Ġnull ĊĠ Ġ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," draw _ primitive ") ĊĠĠĠ Ġ_ ic all _ Unit _ Pool Vector 2 Array _ Pool Color Array _ Pool Vector 2 Array _ n Object _ Double _ n Object ( Ġmb , ĊĠĠĠĠĠĠĠ Ġthis . ptr , Ġpoints , Ġcolors , Ġu vs , Ġtexture , Ġwidth , Ġnormal Map ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġdraw Rect ( ĊĠĠĠ Ġrect : ĠRect 2 , ĊĠĠĠ Ġcolor : ĠColor , ĊĠĠĠ Ġfilled : ĠBoolean Ġ= Ġtrue , ĊĠĠĠ Ġwidth : ĠDouble Ġ= Ġ 1 . 0 , ĊĠĠĠ Ġant iali ased : ĠBoolean Ġ= Ġfalse ĊĠ Ġ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," draw _ rect ") ĊĠĠĠ Ġ_ ic all _ Unit _ Rect 2 _ Color _ Boolean _ Double _ Boolean ( Ġmb , Ġthis . ptr , Ġrect , Ġcolor , Ġfilled , Ġwidth , ĊĠĠĠĠĠĠĠ Ġant iali ased ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġdraw Set Transform ( ĊĠĠĠ Ġposition : ĠVector 2 , ĊĠĠĠ Ġrotation : ĠDouble , ĊĠĠĠ Ġscale : ĠVector 2 ĊĠ Ġ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," draw _ set _ transform ") ĊĠĠĠ Ġ_ ic all _ Unit _ Vector 2 _ Double _ Vector 2 ( Ġmb , Ġthis . ptr , Ġposition , Ġrotation , Ġscale ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġdraw Set Transform Matrix ( xform : ĠTransform 2 D ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," draw _ set _ transform _ matrix ") ĊĠĠĠ Ġ_ ic all _ Unit _ Transform 2 D ( Ġmb , Ġthis . ptr , Ġx form ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġdraw String ( ĊĠĠĠ Ġfont : ĠFont , ĊĠĠĠ Ġposition : ĠVector 2 , ĊĠĠĠ Ġtext : ĠString , ĊĠĠĠ Ġmod ulate : ĠColor Ġ= ĠColor ( 1 , 1 , 1 , 1 ), ĊĠĠĠ Ġclip W : ĠLong Ġ= Ġ- 1 ĊĠ Ġ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," draw _ string ") ĊĠĠĠ Ġ_ ic all _ Unit _ Object _ Vector 2 _ String _ Color _ Long ( Ġmb , Ġthis . ptr , Ġfont , Ġposition , Ġtext , Ġmod ulate , ĊĠĠĠĠĠĠĠ Ġclip W ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġdraw Style Box ( style Box : ĠStyle Box , Ġrect : ĠRect 2 ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," draw _ style _ box ") ĊĠĠĠ Ġ_ ic all _ Unit _ Object _ Rect 2 ( Ġmb , Ġthis . ptr , Ġstyle Box , Ġrect ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġdraw Texture ( ĊĠĠĠ Ġtexture : ĠTexture , ĊĠĠĠ Ġposition : ĠVector 2 , ĊĠĠĠ Ġmod ulate : ĠColor Ġ= ĠColor ( 1 , 1 , 1 , 1 ), ĊĠĠĠ Ġnormal Map : ĠTexture ? Ġ= Ġnull ĊĠ Ġ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," draw _ texture ") ĊĠĠĠ Ġ_ ic all _ Unit _ Object _ Vector 2 _ Color _ n Object ( Ġmb , Ġthis . ptr , Ġtexture , Ġposition , Ġmod ulate , Ġnormal Map ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġdraw Texture Rect ( ĊĠĠĠ Ġtexture : ĠTexture , ĊĠĠĠ Ġrect : ĠRect 2 , ĊĠĠĠ Ġtile : ĠBoolean , ĊĠĠĠ Ġmod ulate : ĠColor Ġ= ĠColor ( 1 , 1 , 1 , 1 ), ĊĠĠĠ Ġtranspose : ĠBoolean Ġ= Ġfalse , ĊĠĠĠ Ġnormal Map : ĠTexture ? Ġ= Ġnull ĊĠ Ġ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," draw _ texture _ rect ") ĊĠĠĠ Ġ_ ic all _ Unit _ Object _ Rect 2 _ Boolean _ Color _ Boolean _ n Object ( Ġmb , Ġthis . ptr , Ġtexture , Ġrect , Ġtile , ĊĠĠĠĠĠĠĠ Ġmod ulate , Ġtranspose , Ġnormal Map ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġdraw Texture Rect Region ( ĊĠĠĠ Ġtexture : ĠTexture , ĊĠĠĠ Ġrect : ĠRect 2 , ĊĠĠĠ Ġsrc Rect : ĠRect 2 , ĊĠĠĠ Ġmod ulate : ĠColor Ġ= ĠColor ( 1 , 1 , 1 , 1 ), ĊĠĠĠ Ġtranspose : ĠBoolean Ġ= Ġfalse , ĊĠĠĠ Ġnormal Map : ĠTexture ? Ġ= Ġnull , ĊĠĠĠ Ġclip Uv : ĠBoolean Ġ= Ġtrue ĊĠ Ġ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," draw _ texture _ rect _ region ") ĊĠĠĠ Ġ_ ic all _ Unit _ Object _ Rect 2 _ Rect 2 _ Color _ Boolean _ n Object _ Boolean ( Ġmb , Ġthis . ptr , Ġtexture , Ġrect , ĊĠĠĠĠĠĠĠ Ġsrc Rect , Ġmod ulate , Ġtranspose , Ġnormal Map , Ġclip Uv ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġforce Update Transform () Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," force _ update _ transform ") ĊĠĠĠ Ġ_ ic all _ Unit ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġget Canvas (): ĠRID Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," get _ canvas ") ĊĠĠĠ Ġreturn Ġ_ ic all _ RID ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġget Canvas Item (): ĠRID Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," get _ canvas _ item ") ĊĠĠĠ Ġreturn Ġ_ ic all _ RID ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġget Canvas Transform (): ĠTransform 2 D Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," get _ canvas _ transform ") ĊĠĠĠ Ġreturn Ġ_ ic all _ Transform 2 D ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġget Global Mouse Position (): ĠVector 2 Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," get _ global _ mouse _ position ") ĊĠĠĠ Ġreturn Ġ_ ic all _ Vector 2 ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġget Global Transform (): ĠTransform 2 D Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," get _ global _ transform ") ĊĠĠĠ Ġreturn Ġ_ ic all _ Transform 2 D ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġget Global Transform With Canvas (): ĠTransform 2 D Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," get _ global _ transform _ with _ canvas ") ĊĠĠĠ Ġreturn Ġ_ ic all _ Transform 2 D ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġget Light Mask (): ĠLong Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," get _ light _ mask ") ĊĠĠĠ Ġreturn Ġ_ ic all _ Long ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġget Local Mouse Position (): ĠVector 2 Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," get _ local _ mouse _ position ") ĊĠĠĠ Ġreturn Ġ_ ic all _ Vector 2 ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġget Material (): ĠMaterial Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," get _ material ") ĊĠĠĠ Ġreturn Ġ_ ic all _ Material ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġget Mod ulate (): ĠColor Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," get _ mod ulate ") ĊĠĠĠ Ġreturn Ġ_ ic all _ Color ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġget Self Mod ulate (): ĠColor Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," get _ self _ mod ulate ") ĊĠĠĠ Ġreturn Ġ_ ic all _ Color ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġget Transform (): ĠTransform 2 D Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," get _ transform ") ĊĠĠĠ Ġreturn Ġ_ ic all _ Transform 2 D ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġget Use Parent Material (): ĠBoolean Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," get _ use _ parent _ material ") ĊĠĠĠ Ġreturn Ġ_ ic all _ Boolean ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġget Viewport Rect (): ĠRect 2 Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," get _ viewport _ rect ") ĊĠĠĠ Ġreturn Ġ_ ic all _ Rect 2 ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġget Viewport Transform (): ĠTransform 2 D Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," get _ viewport _ transform ") ĊĠĠĠ Ġreturn Ġ_ ic all _ Transform 2 D ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġget World 2 d (): ĠWorld 2 D Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," get _ world _ 2 d ") ĊĠĠĠ Ġreturn Ġ_ ic all _ World 2 D ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġhide () Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," hide ") ĊĠĠĠ Ġ_ ic all _ Unit ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġis Draw Be hind Parent Enabled (): ĠBoolean Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," is _ draw _ behind _ parent _ enabled ") ĊĠĠĠ Ġreturn Ġ_ ic all _ Boolean ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġis Local Transform Notification Enabled (): ĠBoolean Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," is _ local _ transform _ notification _ enabled ") ĊĠĠĠ Ġreturn Ġ_ ic all _ Boolean ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun ĠisSet As Top level (): ĠBoolean Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," is _ set _ as _ toplevel ") ĊĠĠĠ Ġreturn Ġ_ ic all _ Boolean ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġis Transform Notification Enabled (): ĠBoolean Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," is _ transform _ notification _ enabled ") ĊĠĠĠ Ġreturn Ġ_ ic all _ Boolean ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġis Visible (): ĠBoolean Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," is _ visible ") ĊĠĠĠ Ġreturn Ġ_ ic all _ Boolean ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġis Visible In Tree (): ĠBoolean Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," is _ visible _ in _ tree ") ĊĠĠĠ Ġreturn Ġ_ ic all _ Boolean ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġmake Canvas Position Local ( screen Point : ĠVector 2 ): ĠVector 2 Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," make _ canvas _ position _ local ") ĊĠĠĠ Ġreturn Ġ_ ic all _ Vector 2 _ Vector 2 ( Ġmb , Ġthis . ptr , Ġscreen Point ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġmake Input Local ( event : ĠInput Event ): ĠInput Event Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," make _ input _ local ") ĊĠĠĠ Ġreturn Ġ_ ic all _ Input Event _ Object ( Ġmb , Ġthis . ptr , Ġevent ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġset As Top level ( enable : ĠBoolean ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," set _ as _ toplevel ") ĊĠĠĠ Ġ_ ic all _ Unit _ Boolean ( Ġmb , Ġthis . ptr , Ġenable ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġset Draw Be hind Parent ( enable : ĠBoolean ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," set _ draw _ behind _ parent ") ĊĠĠĠ Ġ_ ic all _ Unit _ Boolean ( Ġmb , Ġthis . ptr , Ġenable ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġset Light Mask ( light Mask : ĠLong ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," set _ light _ mask ") ĊĠĠĠ Ġ_ ic all _ Unit _ Long ( Ġmb , Ġthis . ptr , Ġlight Mask ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġset Material ( material : ĠMaterial ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," set _ material ") ĊĠĠĠ Ġ_ ic all _ Unit _ Object ( Ġmb , Ġthis . ptr , Ġmaterial ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġset Mod ulate ( mod ulate : ĠColor ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," set _ mod ulate ") ĊĠĠĠ Ġ_ ic all _ Unit _ Color ( Ġmb , Ġthis . ptr , Ġmod ulate ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġset Notify Local Transform ( enable : ĠBoolean ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," set _ notify _ local _ transform ") ĊĠĠĠ Ġ_ ic all _ Unit _ Boolean ( Ġmb , Ġthis . ptr , Ġenable ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġset Notify Transform ( enable : ĠBoolean ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," set _ notify _ transform ") ĊĠĠĠ Ġ_ ic all _ Unit _ Boolean ( Ġmb , Ġthis . ptr , Ġenable ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġset Self Mod ulate ( self Mod ulate : ĠColor ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," set _ self _ mod ulate ") ĊĠĠĠ Ġ_ ic all _ Unit _ Color ( Ġmb , Ġthis . ptr , Ġself Mod ulate ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġset Use Parent Material ( enable : ĠBoolean ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," set _ use _ parent _ material ") ĊĠĠĠ Ġ_ ic all _ Unit _ Boolean ( Ġmb , Ġthis . ptr , Ġenable ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġset Visible ( visible : ĠBoolean ) Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," set _ visible ") ĊĠĠĠ Ġ_ ic all _ Unit _ Boolean ( Ġmb , Ġthis . ptr , Ġvisible ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġshow () Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," show ") ĊĠĠĠ Ġ_ ic all _ Unit ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġupdate () Ġ{ ĊĠĠĠ Ġval Ġmb Ġ= Ġget Method Bind (" Canvas Item "," update ") ĊĠĠĠ Ġ_ ic all _ Unit ( Ġmb , Ġthis . ptr ) ĊĠ Ġ} ĊĊĠ Ġenum Ġclass ĠBlend Mode ( ĊĠĠĠ Ġid : ĠLong ĊĠ Ġ) Ġ{ ĊĠĠĠ ĠBL END _ MODE _ MIX ( 0 ), ĊĊĠĠĠ ĠBL END _ MODE _ ADD ( 1 ), ĊĊĠĠĠ ĠBL END _ MODE _ SUB ( 2 ), ĊĊĠĠĠ ĠBL END _ MODE _ MUL ( 3 ), ĊĊĠĠĠ ĠBL END _ MODE _ PRE MULT _ ALPHA ( 4 ), ĊĊĠĠĠ ĠBL END _ MODE _ DISABLED ( 5 ); ĊĊĠĠĠ Ġval Ġid : ĠLong ĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠ Ġthis . id Ġ= Ġid ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠ Ġfun Ġfrom ( value : ĠLong ) Ġ= Ġvalues (). single Ġ{ Ġit . id Ġ== Ġvalue Ġ} ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠ Ġfinal Ġconst Ġval ĠNOT IFICATION _ DRAW : ĠLong Ġ= Ġ 3 0 ĊĊĠĠĠ Ġfinal Ġconst Ġval ĠNOT IFICATION _ ENTER _ CAN V AS : ĠLong Ġ= Ġ 3 2 ĊĊĠĠĠ Ġfinal Ġconst Ġval ĠNOT IFICATION _ EXIT _ CAN V AS : ĠLong Ġ= Ġ 3 3 ĊĊĠĠĠ Ġfinal Ġconst Ġval ĠNOT IFICATION _ TRANSFORM _ CHANGED : ĠLong Ġ= Ġ 2 0 0 0 ĊĊĠĠĠ Ġfinal Ġconst Ġval ĠNOT IFICATION _ VIS IBILITY _ CHANGED : ĠLong Ġ= Ġ 3 1 ĊĠ Ġ} Ċ } Ċ