Module canvas_item

Consts

BLEND_MODE_MIX* = 0'i64
BLEND_MODE_ADD* = 1'i64
BLEND_MODE_SUB* = 2'i64
BLEND_MODE_MUL* = 3'i64
BLEND_MODE_PREMULT_ALPHA* = 4'i64
NOTIFICATION_DRAW* = 30'i64
NOTIFICATION_VISIBILITY_CHANGED* = 31'i64
NOTIFICATION_ENTER_CANVAS* = 32'i64
NOTIFICATION_EXIT_CANVAS* = 33'i64
NOTIFICATION_TRANSFORM_CHANGED* = 29'i64

Procs

proc visible*(self: CanvasItem): bool {.
gcsafe, locks: 0
.}
proc `visible =`*(self: CanvasItem; val: bool) {.
gcsafe, locks: 0
.}
proc modulate*(self: CanvasItem): Color {.
gcsafe, locks: 0
.}
proc `modulate =`*(self: CanvasItem; val: Color) {.
gcsafe, locks: 0
.}
proc selfModulate*(self: CanvasItem): Color {.
gcsafe, locks: 0
.}
proc `selfModulate =`*(self: CanvasItem; val: Color) {.
gcsafe, locks: 0
.}
proc showBehindParent*(self: CanvasItem): bool {.
gcsafe, locks: 0
.}
proc `showBehindParent =`*(self: CanvasItem; val: bool) {.
gcsafe, locks: 0
.}
proc showOnTop*(self: CanvasItem): bool {.
gcsafe, locks: 0
.}
proc `showOnTop =`*(self: CanvasItem; val: bool) {.
gcsafe, locks: 0
.}
proc lightMask*(self: CanvasItem): int64 {.
gcsafe, locks: 0
.}
proc `lightMask =`*(self: CanvasItem; val: int64) {.
gcsafe, locks: 0
.}
proc material*(self: CanvasItem): Material {.
gcsafe, locks: 0
.}
proc `material =`*(self: CanvasItem; val: Material) {.
gcsafe, locks: 0
.}
proc useParentMaterial*(self: CanvasItem): bool {.
gcsafe, locks: 0
.}
proc `useParentMaterial =`*(self: CanvasItem; val: bool) {.
gcsafe, locks: 0
.}
proc editSetState*(self: CanvasItem; state: Variant) {.
gcsafe, locks: 0
.}
proc editGetState*(self: CanvasItem): Variant {.
gcsafe, locks: 0
.}
proc editSetRect*(self: CanvasItem; rect: Rect2) {.
gcsafe, locks: 0
.}
proc editRotate*(self: CanvasItem; degrees: float64) {.
gcsafe, locks: 0
.}
proc getItemRect*(self: CanvasItem): Rect2 {.
gcsafe, locks: 0
.}
proc getItemAndChildrenRect*(self: CanvasItem): Rect2 {.
gcsafe, locks: 0
.}
proc getCanvasItem*(self: CanvasItem): RID {.
gcsafe, locks: 0
.}
proc isVisibleInTree*(self: CanvasItem): bool {.
gcsafe, locks: 0
.}
proc show*(self: CanvasItem) {.
gcsafe, locks: 0
.}
proc hide*(self: CanvasItem) {.
gcsafe, locks: 0
.}
proc update*(self: CanvasItem) {.
gcsafe, locks: 0
.}
proc setAsToplevel*(self: CanvasItem; enable: bool) {.
gcsafe, locks: 0
.}
proc isSetAsToplevel*(self: CanvasItem): bool {.
gcsafe, locks: 0
.}
proc drawLine*(self: CanvasItem; fromm: Vector2; to: Vector2; color: Color;
              width: float64 = 1.0; antialiased: bool = false) {.
gcsafe, locks: 0
.}
proc drawPolyline*(self: CanvasItem; points: PoolVector2Array; color: Color;
                  width: float64 = 1.0; antialiased: bool = false) {.
gcsafe, locks: 0
.}
proc drawPolylineColors*(self: CanvasItem; points: PoolVector2Array;
                        colors: PoolColorArray; width: float64 = 1.0;
                        antialiased: bool = false) {.
gcsafe, locks: 0
.}
proc drawRect*(self: CanvasItem; rect: Rect2; color: Color; filled: bool = true) {.
gcsafe, locks: 0
.}
proc drawCircle*(self: CanvasItem; pos: Vector2; radius: float64; color: Color) {.
gcsafe, locks: 0
.}
proc drawTexture*(self: CanvasItem; texture: Texture; pos: Vector2;
                 modulate: Color = initColor(1.0, 1.0, 1.0, 1.0);
                 normalMap: Texture = nil) {.
gcsafe, locks: 0
.}
proc drawTextureRect*(self: CanvasItem; texture: Texture; rect: Rect2; tile: bool;
                     modulate: Color = initColor(1.0, 1.0, 1.0, 1.0);
                     transpose: bool = false; normalMap: Texture = nil) {.
gcsafe, locks: 0
.}
proc drawTextureRectRegion*(self: CanvasItem; texture: Texture; rect: Rect2;
                           srcRect: Rect2;
                           modulate: Color = initColor(1.0, 1.0, 1.0, 1.0);
                           transpose: bool = false; normalMap: Texture = nil;
                           clipUv: bool = true) {.
gcsafe, locks: 0
.}
proc drawStyleBox*(self: CanvasItem; styleBox: StyleBox; rect: Rect2) {.
gcsafe, locks: 0
.}
proc drawPrimitive*(self: CanvasItem; points: PoolVector2Array;
                   colors: PoolColorArray; uvs: PoolVector2Array;
                   texture: Texture = nil; width: float64 = 1.0;
                   normalMap: Texture = nil) {.
gcsafe, locks: 0
.}
proc drawPolygon*(self: CanvasItem; points: PoolVector2Array; colors: PoolColorArray;
                 uvs: PoolVector2Array; texture: Texture = nil;
                 normalMap: Texture = nil) {.
gcsafe, locks: 0
.}
proc drawColoredPolygon*(self: CanvasItem; points: PoolVector2Array; color: Color;
                        uvs: PoolVector2Array; texture: Texture = nil;
                        normalMap: Texture = nil) {.
gcsafe, locks: 0
.}
proc drawString*(self: CanvasItem; font: Font; pos: Vector2; text: string;
                modulate: Color = initColor(1.0, 1.0, 1.0, 1.0); clipW: int64 = - 1'i64) {.
gcsafe, locks: 0
.}
proc drawChar*(self: CanvasItem; font: Font; pos: Vector2; char: string; next: string;
              modulate: Color = initColor(1.0, 1.0, 1.0, 1.0)): float64 {.
gcsafe, locks: 0
.}
proc drawSetTransform*(self: CanvasItem; pos: Vector2; rot: float64; scale: Vector2) {.
gcsafe, locks: 0
.}
proc drawSetTransformMatrix*(self: CanvasItem; xform: Transform2D) {.
gcsafe, locks: 0
.}
proc getTransform*(self: CanvasItem): Transform2D {.
gcsafe, locks: 0
.}
proc getGlobalTransform*(self: CanvasItem): Transform2D {.
gcsafe, locks: 0
.}
proc getGlobalTransformWithCanvas*(self: CanvasItem): Transform2D {.
gcsafe, locks: 0
.}
proc getViewportTransform*(self: CanvasItem): Transform2D {.
gcsafe, locks: 0
.}
proc getViewportRect*(self: CanvasItem): Rect2 {.
gcsafe, locks: 0
.}
proc getCanvasTransform*(self: CanvasItem): Transform2D {.
gcsafe, locks: 0
.}
proc getLocalMousePos*(self: CanvasItem): Vector2 {.
gcsafe, locks: 0
.}
proc getGlobalMousePosition*(self: CanvasItem): Vector2 {.
gcsafe, locks: 0
.}
proc getCanvas*(self: CanvasItem): RID {.
gcsafe, locks: 0
.}
proc getWorld2d*(self: CanvasItem): World2D {.
gcsafe, locks: 0
.}
proc setNotifyLocalTransform*(self: CanvasItem; enable: bool) {.
gcsafe, locks: 0
.}
proc isLocalTransformNotificationEnabled*(self: CanvasItem): bool {.
gcsafe, locks: 0
.}
proc setNotifyTransform*(self: CanvasItem; enable: bool) {.
gcsafe, locks: 0
.}
proc isTransformNotificationEnabled*(self: CanvasItem): bool {.
gcsafe, locks: 0
.}
proc makeCanvasPosLocal*(self: CanvasItem; screenPoint: Vector2): Vector2 {.
gcsafe, locks: 0
.}
proc makeInputLocal*(self: CanvasItem; event: InputEvent): InputEvent {.
gcsafe, locks: 0
.}

Methods

method draw*(self: CanvasItem) {.
gcsafe, locks: 0, base
.}
method toplevelRaiseSelf*(self: CanvasItem) {.
gcsafe, locks: 0, base
.}
method updateCallback*(self: CanvasItem) {.
gcsafe, locks: 0, base
.}