Figure

Plotting figure type.

Disabled Default Constructor

A disabled default is present on this object. To use it, use one of the other constructors or a factory function.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Aliases

CloseCallback
alias CloseCallback = void delegate(Figure figure)

Figure closing callback function.

CursorCallback
alias CursorCallback = void delegate(Figure figure, double xpos, double ypos)

Cursor movement callback function.

MouseCallback
alias MouseCallback = void delegate(Figure figure, int button, int action, int mods)

Mouse button callback function.

Functions

clear
void clear()

Clear canvas content of this figure.

draw
void draw(Image image)

Draw image onto figure canvas.

draw
void draw(Slice!(kind, packs, Iterator) image, ImageFormat format = ImageFormat.IF_UNASSIGNED)

Draw slice of image onto figure canvas.

draw
void draw(GGPlotD plot)

Draw the GGPlotD context on this figure's canvas.

hide
void hide()

Show the figure window.

move
void move(int x, int y)
void move(int[] offset)

Offset figure window position by given values.

moveTo
void moveTo(int x, int y)
void moveTo(int[] pos)

Move figure window to given position on screen.

setMouseCallback
Figure setMouseCallback(MouseCallback clbck)

Assign mouse callback function.

show
void show()

Show the figure window.

Properties

image
image [@property getter]

Get a copy of image currently drawn on figure's canvas.

Meta