a2dColourProperty Class Reference
[a2dPropObject holds property objects]

property to hold a FileName type variable to be associated with a a2dPropObject More...

#include <gen.h>

Inheritance diagram for a2dColourProperty:

Inheritance graph
[legend]
Collaboration diagram for a2dColourProperty:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dColourProperty (const a2dPropertyIdColour *id, const wxColour &colour)
 a2dColourProperty (const a2dColourProperty &other)
virtual a2dNamedPropertyClone (a2dObject::CloneOptions options) const
 Virtual copy constructor.
virtual void Assign (const a2dNamedProperty &other)
 Virtual assignment operator.
void SetValue (const wxColour &colour)
wxColour GetValue () const
wxColour * GetValuePtr ()
wxColour & GetValueRef ()
void SetColour (const wxColour &colour)
wxColour GetColour ()
wxColour & GetColourRef ()
virtual wxString StringRepresentation () const
virtual wxString StringValueRepresentation () const
virtual void DoSave (wxObject *parent, a2dIOHandlerXmlSerOut &out, a2dXmlSer_flag xmlparts, a2dObjectList *towrite)
 Save settings.
virtual void DoLoad (wxObject *parent, a2dIOHandlerXmlSerIn &parser, a2dXmlSer_flag xmlparts)
 Load settings.

Static Public Member Functions

static a2dColourPropertyCreatePropertyFromString (const a2dPropertyIdColour *id, const wxString &value)
 Construct a new property object from a string.

Protected Attributes

wxColour m_colour


Detailed Description

property to hold a FileName type variable to be associated with a a2dPropObject

Definition at line 2471 of file gen.h.


Member Function Documentation

a2dColourProperty * a2dColourProperty::CreatePropertyFromString ( const a2dPropertyIdColour id,
const wxString &  value 
) [static]

Construct a new property object from a string.

If this is not appropriate, this may return NULL. Accepted colours are:

  • hex numbers: "#a1b2c3" or just "a1b2c3".
  • decimal numbers: "rgb(10,20,30)", "10,20,30" or "10 20 30".
  • colour names: "red", "pink", "forest green".

Definition at line 2669 of file gen.cpp.

wxString a2dColourProperty::StringRepresentation (  )  const [virtual]

Convert the property to a string, used to serialize class. Override to define it for your properties.

Reimplemented from a2dNamedProperty.

Definition at line 2716 of file gen.cpp.

wxString a2dColourProperty::StringValueRepresentation (  )  const [virtual]

Convert the property value to a string, used to serialize class. Override to define it for your properties.

Reimplemented from a2dNamedProperty.

Definition at line 2724 of file gen.cpp.


The documentation for this class was generated from the following files:
a2dColourProperty Class Reference -- Tue Aug 31 18:15:03 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation