|
The Gnome Chemistry Utils
0.14.17
|
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 |
| bool | 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 |
Public Member Functions inherited from gccv::Item | |
| Item (Canvas *canvas) | |
| Item (Group *parent, ItemClient *client=NULL) | |
| virtual | ~Item () |
| void | GetBounds (double &x0, double &y0, double &x1, double &y1) const |
| void | Invalidate () const |
| void | SetVisible (bool visible) |
| virtual double | Distance (double x, double y, Item **item) const |
| virtual void | BuildPath (cairo_t *cr) const |
| virtual void | Draw (cairo_t *cr, bool is_vector) const |
| virtual bool | Draw (cairo_t *cr, double x0, double y0, double x1, double y1, bool is_vector) const |
| virtual void | Move (double x, double y) |
| bool | IsTopLevel () const |
| void | SetClient (ItemClient *val) |
| ItemClient * | GetClient (void) |
| Group const * | GetParent (void) const |
| bool | GetVisible (void) const |
| void | SetOperator (cairo_operator_t val) |
| cairo_operator_t | GetOperator (void) const |
Additional Inherited Members | |
Protected Member Functions inherited from gccv::Item | |
| void | BoundsChanged () |
| virtual void | UpdateBounds () |
| Canvas const * | GetCanvas () const |
Protected Attributes inherited from gccv::Item | |
| double | m_x0 |
| double | m_y0 |
| double | m_x1 |
| double | m_y1 |
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 |
The destructor.
| bool 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.
|
inline |
Definition at line 114 of file line-item.h.
| GOColor gccv::LineItem::GetEffectiveLineColor | ( | ) | const |
|
inline |
Definition at line 104 of file line-item.h.
|
inline |
Definition at line 95 of file line-item.h.
|
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 114 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.
|
inline |
| color | the new line color. |
Sets the LineItem color.
Definition at line 104 of file line-item.h.
|
inline |
| width | the new line width. |
Sets the LineItem line width.
Definition at line 95 of file line-item.h.
1.8.13