The Gnome Chemistry Utils 0.13.3
Public Member Functions
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

List of all members.

Public Member Functions

 FillItem (Canvas *canvas)
 FillItem (Group *parent, ItemClient *client=NULL)
virtual ~FillItem ()
void SetFillColor (GOColor val)
GOColor GetFillColor (void) const

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: