CanvasImage

An canvas image item.

More...

Constructors

this
this(double[] coords, Image image, string anchor)

Create an image.

Members

Functions

init
void init(Canvas parent)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin Anchor

Mixin common commands.

__anonymous
mixin ImageSpecific
Undocumented in source.

Mixed In Members

From mixin Anchor

getAnchor
string getAnchor()

Get the anchor.

setAnchor
auto setAnchor(string anchor)

Set the anchor position.

From mixin ImageSpecific

getImage
Image getImage()

Get the image.

setImage
auto setImage(Image image)

Set the image.

getActiveImage
Image getActiveImage()

Get the active image.

setActiveImage
auto setActiveImage(Image image)

Set the active image.

getDisabledImage
Image getDisabledImage()

Get the disabled image.

setDisabledImage
auto setDisabledImage(Image image)

Set the disabled image.

Inherited Members

From CanvasItem

type
string type [@property getter]

Get the type of canvas item.

init
void init(Canvas parent)
Undocumented in source. Be warned that the author may not have intended to support it.
getCoords
double[] getCoords()

Get the coords of this item.

setCoords
auto setCoords(double[] coords)

Set the coordinates used to draw this item.

getTags
string[] getTags()

Get the tags associated with this item.

setTags
auto setTags(string[] tags)

Set tags associated with this item.

addTag
auto addTag(string tag)

Add a specific tag to this item.

deleteTag
auto deleteTag(string tag)

Delete a specific tag associated to this item.

clearTags
auto clearTags()

Delete all tags associated to this item.

destroy
void destroy()

Destroy this item and remove it from the canvas.

focus
auto focus()

Set the keyboard focus to this item in the canvas.

lower
auto lower()

Lower an item in the drawing order.

raise
auto raise()

Raise an item in the drawing order.

moveBy
auto moveBy(int xAmount, int yAmount)

Move an item on the canvas by an amount.

moveTo
auto moveTo(int xPos, int yPos)

Move an item on the canvas to a position.

scale
auto scale(double xOrigin, double yOrigin, double xPercent, double yPercent)

Scale an item on the canvas. Note that some items have only a single pair of coordinates (e.g., text, images and widgets) and so scaling of them by this command can only move them around.

__anonymous
mixin Bind

Mixin common commands.

__anonymous
mixin State
Undocumented in source.

Detailed Description

Common Commands

These are injected common commands that can also be used with this canvas item.

Anchor
ImageSpecific

See Also

Meta