gtkIOStream
1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
|
#include <CairoBox.H>
Public Member Functions | |
CairoBox () | |
Empty constructor - sets default start point and width, height. More... | |
CairoBox (cairo_t *cr, float xBase, float yBase, float w, float h, bool fill) | |
virtual | ~CairoBox () |
Destructor. More... | |
void | boxSettings (float xBase, float yBase, float w, float h, bool fill) |
void | draw (cairo_t *cr, float xBase, float yBase, float w, float h, bool fill) |
void | draw (cairo_t *cr, float xBase, float yBase) |
Draw the box using the member variable state to define the box. More... | |
void | draw (cairo_t *cr) |
float | getX (void) |
float | getY (void) |
float | getWidth (void) |
float | getHeight (void) |
void | setXY (float xBase, float yBase) |
void | setWidthHeight (int widthIn, int heightIn) |
Private Attributes | |
float | x |
The base ordinate. More... | |
float | y |
The base coordinate. More... | |
float | width |
The box with. More... | |
float | height |
The box height. More... | |
bool | filled |
Whether to fill the box. More... | |
Given a Cairo context, draw a box. The box is specified by a starting point (x, y) a width, height and whether it is filled or not. Assumes that the Cairo context is already configured for line width and colour.
Definition at line 31 of file CairoBox.H.
|
inline |
Empty constructor - sets default start point and width, height.
Definition at line 39 of file CairoBox.H.
|
inline |
Construct a box given starting point and the width, height and use cairo to stroke or fill. The Cairo context which is passed in should already be configured for line width and colour
cr | The cairo context to draw in |
xBase | The x box corner ordinate |
yBase | The y box corner coordinate |
w | The width of the box |
h | The height of the box |
fill | Fill the arrow head |
Definition at line 54 of file CairoBox.H.
|
inlinevirtual |
Destructor.
Definition at line 63 of file CairoBox.H.
|
inline |
Set the box size given starting point and the width, height and the cairo stroke or fill.
xBase | The x box corner ordinate |
yBase | The y box corner coordinate |
w | The width of the box |
h | The height of the box |
fill | Fill the arrow head |
Definition at line 73 of file CairoBox.H.
|
inline |
Construct a box given starting point and the width, height and use cairo to stroke or fill. The Cairo context which is passed in should already be configured for line width and colour
cr | The cairo context to draw in |
xBase | The x box corner ordinate |
yBase | The y box corner coordinate |
w | The width of the box |
h | The height of the box |
fill | Fill the arrow head |
Definition at line 89 of file CairoBox.H.
|
inline |
Draw the box using the member variable state to define the box.
Construct a box given starting point and the width, height and use cairo to stroke or fill. The Cairo context which is passed in should already be configured for line width and colour
cr | The cairo context to draw in |
xBase | The x box corner ordinate |
yBase | The y box corner coordinate |
Definition at line 100 of file CairoBox.H.
|
inline |
Definition at line 106 of file CairoBox.H.
|
inline |
Get the height
Definition at line 137 of file CairoBox.H.
|
inline |
Get the width
Definition at line 131 of file CairoBox.H.
|
inline |
Get the ordinate
Definition at line 119 of file CairoBox.H.
|
inline |
Get the coordinate
Definition at line 125 of file CairoBox.H.
|
inline |
Set a new width and height for the box
widthIn | The new box width |
heightIn | The new box height |
Definition at line 154 of file CairoBox.H.
|
inline |
Set a new x and y location for the box
xBase | The x box corner ordinate |
yBase | The y box corner coordinate |
Definition at line 145 of file CairoBox.H.
|
private |
Whether to fill the box.
Definition at line 36 of file CairoBox.H.
|
private |
The box height.
Definition at line 35 of file CairoBox.H.
|
private |
The box with.
Definition at line 34 of file CairoBox.H.
|
private |
The base ordinate.
Definition at line 32 of file CairoBox.H.
|
private |
The base coordinate.
Definition at line 33 of file CairoBox.H.
GTK+ IOStream
Beta
|