Figure

Plotting figure type.

Constructors

this
this()
Undocumented in source.

Destructor

~this
~this()
Undocumented in 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)

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.

setCloseCallback
Figure setCloseCallback(CloseCallback clbck)
Undocumented in source. Be warned that the author may not have intended to support it.
setCursorCallback
Figure setCursorCallback(CursorCallback clbck)
Undocumented in source. Be warned that the author may not have intended to support it.
setMouseCallback
Figure setMouseCallback(MouseCallback clbck)

Assign mouse callback function.

show
void show()

Show the figure window.

Properties

height
height [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
image
image [@property getter]

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

position
position [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
size
size [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
title
title [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
title
string title [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
visible
visible [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
width
width [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta