|
The Gnome Chemistry Utils
0.13.7
|
Base class for line items, whether straight or curved. More...
#include <line-item.h>
Public Member Functions | |
| LineItem (Canvas *canvas) | |
| LineItem (Group *parent, ItemClient *client=NULL) | |
| virtual | ~LineItem () |
| GOColor | GetEffectiveLineColor () const |
| void | ApplyLine (cairo_t *cr) const |
| void | SetDashes (double const *dashes, int num_dashes, double offset) |
| void | SetLineWidth (double val) |
| double | GetLineWidth (void) const |
| void | SetLineColor (GOColor val) |
| GOColor | GetLineColor (void) const |
| void | SetAutoColor (bool val) |
| bool | GetAutoColor (void) const |
Base class for line items, whether straight or curved.
This base class implements the common properties of all lines.
Definition at line 40 of file line-item.h.
| gccv::LineItem::LineItem | ( | Canvas * | canvas | ) |
| gccv::LineItem::LineItem | ( | Group * | parent, |
| ItemClient * | client = NULL |
||
| ) |
| parent | the Group to which the new LineItem will be added. |
| client | the ItemClient for the new LineItem if any. |
Creates a new LineItem inside parent and sets client as its associated ItemClient.
| virtual gccv::LineItem::~LineItem | ( | ) | [virtual] |
The destructor.
| void gccv::LineItem::ApplyLine | ( | cairo_t * | cr | ) | const |
| cr | the cairo_t to which the line must be rendered. |
Sets the line style to cairo. cairo_restore must be called when done.
| gccv::LineItem::GetAutoColor | ( | void | ) | const [inline] |
Definition at line 113 of file line-item.h.
| GOColor gccv::LineItem::GetEffectiveLineColor | ( | ) | const |
| gccv::LineItem::GetLineColor | ( | void | ) | const [inline] |
Definition at line 103 of file line-item.h.
| gccv::LineItem::GetLineWidth | ( | void | ) | const [inline] |
Definition at line 94 of file line-item.h.
| gccv::LineItem::SetAutoColor | ( | bool | auto | ) | [inline] |
| auto | whether to use a color from the theme. |
if auto is true, the color used to draw the line whiil be retrieved from the Gtk+ theme instead of using the LineColor member.
Definition at line 113 of file line-item.h.
| void gccv::LineItem::SetDashes | ( | double const * | dashes, |
| int | num_dashes, | ||
| double | offset | ||
| ) |
| dashes | the dashes lengths. |
| num_dashes | the dashes number inside the pattern. |
| offset | the dashes offset at line start. |
Sets the line dashes, see cairo_set_dash for more details on the parameters values.
| gccv::LineItem::SetLineColor | ( | GOColor | color | ) | [inline] |
| color | the new line color. |
Sets the LineItem color.
Definition at line 103 of file line-item.h.
| gccv::LineItem::SetLineWidth | ( | double | width | ) | [inline] |
| width | the new line width. |
Sets the LineItem line width.
Definition at line 94 of file line-item.h.
1.7.6.1