The Gnome Chemistry Utils  0.14.0
Public Member Functions | List of all members
gccv::FillItem Class Reference

Base class for filled items. More...

#include <fill-item.h>

Inheritance diagram for gccv::FillItem:
gccv::LineItem gccv::Item gccv::Circle gccv::Leaf gccv::Polygon gccv::Rectangle gccv::Text

Public Member Functions

 FillItem (Canvas *canvas)
 FillItem (Group *parent, ItemClient *client=NULL)
virtual ~FillItem ()
void SetFillColor (GOColor val)
GOColor GetFillColor (void) const
- Public Member Functions inherited from gccv::LineItem
 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
- 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)
ItemClientGetClient (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

Detailed Description

Base class for filled items.

This class has just one important member: the fill color. Although it is not a virtual class, only derived objects should be used.

Definition at line 40 of file fill-item.h.

Constructor & Destructor Documentation

gccv::FillItem::FillItem ( Canvas canvas)
Parameters
canvasa Canvas.

Creates a new FillItem and sets it as a child of the root Group of canvas.

gccv::FillItem::FillItem ( Group parent,
ItemClient client = NULL 
)
Parameters
parentthe Group to which the new FillItem will be added.
clientthe ItemClient for the new FillItem if any.

Creates a new FillItem inside parent and sets client as its associated ItemClient.

virtual gccv::FillItem::~FillItem ( )
virtual

The destructor.

Member Function Documentation

gccv::FillItem::GetFillColor ( void  ) const
inline
Returns
the fill color for the item.

Definition at line 69 of file fill-item.h.

gccv::FillItem::SetFillColor ( GOColor  color)
inline
Parameters
colorthe new fill color.

Sets the fill color for the item.

Definition at line 69 of file fill-item.h.


The documentation for this class was generated from the following file: