utility.h File Reference
#include <papyrus/enums.h>
#include <glibmm/ustring.h>
#include <papyrus/pointer.h>
Go to the source code of this file.
Define Documentation
#define PAPYRUS_CLASS_NAME |
( |
StrName |
|
) |
|
Value:static const Glib::ustring& name_string() \
{ \
static const Glib::ustring cn(StrName); \
return cn; \
} \
\
virtual const Glib::ustring& class_name() const \
{ \
static const Glib::ustring cn(StrName); \
return cn; \
}
#define PAPYRUS_CLONE_METHOD |
( |
Type |
|
) |
|
Value:virtual Drawable::pointer clone() const { \
Type::pointer other = Type::create(); \
*other = *this; \
return other; \
}
#define PAPYRUS_CREATE |
( |
BaseObjCall |
|
) |
|
Value:pointer p = pointer( new BaseObjCall ); \
p->m_self = p; \
return p;
Referenced by Papyrus::Zoomer::create(), Papyrus::Translator::create(), Papyrus::Text::create(), Papyrus::SVG::create(), Papyrus::Sierpinski::create(), Papyrus::Selector::create(), Papyrus::Scaler::create(), Papyrus::Rotator::create(), Papyrus::RegularPolygon::create(), Papyrus::Reference::create(), Papyrus::Rectangle::create(), Papyrus::Quadrille::create(), Papyrus::Polyline::create(), Papyrus::Polygon::create(), Papyrus::PathElement::create(), Papyrus::Path::create(), Papyrus::Marker::create(), Papyrus::KochSnowflake::create(), Papyrus::KochCurve::create(), Papyrus::Image::create(), Papyrus::Hilbert::create(), Papyrus::Hextille::create(), Papyrus::Handlebox::create(), Papyrus::Group::create(), Papyrus::Grid::create(), Papyrus::Face::create(), Papyrus::DrawableController::create(), Papyrus::Deltille::create(), Papyrus::Controller::create(), Papyrus::Circle::create(), Papyrus::Canvas::create(), Papyrus::Bezierline::create(), Papyrus::Beziergon::create(), Papyrus::Arc::create(), Papyrus::Annulus::create(), and Papyrus::AffineController::create().
#define PAPYRUS_DRAWABLE |
( |
Name |
|
) |
|
#define PAPYRUS_RENDERABLE |
( |
Name |
|
) |
|
Value:typedef PapyrusPointer<Name> pointer; \
\
typedef PapyrusPointer<const Name> const_pointer; \
\
typedef PapyrusWeakPointer<Name> weak_pointer; \
\
using Renderable::render; \
\
PAPYRUS_CLASS_NAME("Name")