item.h File Reference

#include <gcu/macros.h>
#include <cairo.h>

Go to the source code of this file.

Namespaces

namespace  gccv

Defines

#define GCCV_ITEM_PROP(type, member)


Detailed Description

Definition in file item.h.


Define Documentation

#define GCCV_ITEM_PROP ( type,
member   ) 

Value:

public: \
        void Set##member (type val) {   \
                m_##member = val;       \
                Invalidate ();  \
        }       \
        type Get##member (void) const {return m_##member;}      \
        type &GetRef##member (void) {return m_##member;}        \
private:        \
        type m_##member;
Defines a private member with appropriate get/set methods. GCU_PROP((Type,Foo) expands to one private member:
        Type m_Foo;

and three public methods:

        void SetFoo(Type val);
        Type GetFoo();
        Type& GetRefFoo();

The last one allows code as:

        obj.GetRefFoo() = val;
Calling SetFoo(val) will set the member and invalidate the item.

Definition at line 52 of file item.h.


Generated on Wed Dec 17 13:43:19 2008 for The Gnome Chemistry Utils by  doxygen 1.5.6