The Gnome Chemistry Utils 0.13.3
|
Equilateral hashed triangle. More...
#include <hash.h>
Public Member Functions | |
Hash (Canvas *canvas, double x0, double y0, double x1, double y1, double width) | |
Hash (Group *parent, double x0, double y0, double x1, double y1, double width, ItemClient *client=NULL) | |
virtual | ~Hash () |
void | Draw (cairo_t *cr, bool is_vector) const |
void | SetLineWidth (double val) |
double | GetLineWidth (void) const |
void | SetLineDist (double val) |
double | GetLineDist (void) const |
Equilateral hashed triangle.
Equilateral triangle filled with regularly spaced hashes parallel to the triangle base.
gccv::Hash::Hash | ( | Canvas * | canvas, |
double | x0, | ||
double | y0, | ||
double | x1, | ||
double | y1, | ||
double | width | ||
) |
canvas | a Canvas. |
x0 | the triangle top horizontal position. |
y0 | the triangle top vertical position. |
x1 | the horizontal position of the canter of the triangle base. |
y1 | the vertical position of the canter of the triangle base. |
width | the triangle base width. |
Creates a new Hash and sets it as a child of the root Group of canvas.
gccv::Hash::Hash | ( | Group * | parent, |
double | x0, | ||
double | y0, | ||
double | x1, | ||
double | y1, | ||
double | width, | ||
ItemClient * | client = NULL |
||
) |
parent | the Group to which the new Hash will be added. |
x0 | the triangle top horizontal position. |
y0 | the triangle top vertical position. |
x1 | the horizontal position of the canter of the triangle base. |
y1 | the vertical position of the canter of the triangle base. |
width | the triangle base width. |
client | the ItemClient for the new Hash if any. |
Creates a new Hash inside parent and sets client as its associated ItemClient.
virtual gccv::Hash::~Hash | ( | ) | [virtual] |
The destructor.
void gccv::Hash::Draw | ( | cairo_t * | cr, |
bool | is_vector | ||
) | const [virtual] |
cr | a cairo_t. |
is_vector | whether the cairo_t is a vectorial context. |
Draws the Hash to cr.
Reimplemented from gccv::Wedge.
gccv::Hash::GetLineDist | ( | void | ) | const [inline] |
gccv::Hash::GetLineWidth | ( | void | ) | const [inline] |
gccv::Hash::SetLineDist | ( | double | dist | ) | [inline] |
gccv::Hash::SetLineWidth | ( | double | width | ) | [inline] |