The Gnome Chemistry Utils 0.13.3
|
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 () |
void | SetLineWidth (double val) |
double | GetLineWidth (void) const |
void | SetLineColor (GOColor val) |
GOColor | GetLineColor (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.
gccv::LineItem::GetLineColor | ( | void | ) | const [inline] |
Definition at line 78 of file line-item.h.
gccv::LineItem::GetLineWidth | ( | void | ) | const [inline] |
Definition at line 69 of file line-item.h.
gccv::LineItem::SetLineColor | ( | GOColor | color | ) | [inline] |
color | the new line color. |
Sets the LineItem color.
Definition at line 78 of file line-item.h.
gccv::LineItem::SetLineWidth | ( | double | width | ) | [inline] |
width | the new line width. |
Sets the LineItem line width.
Definition at line 69 of file line-item.h.