papyrus logo

utility.h File Reference

#include <papyrus/enums.h>
#include <glibmm/ustring.h>
#include <papyrus/pointer.h>
Include dependency graph for utility.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Papyrus::wp_lt_compare

Namespaces

namespace  Papyrus

Defines

#define PAPYRUS_CLASS_NAME(StrName)
#define PAPYRUS_RENDERABLE(Name)
#define PAPYRUS_CLONE_METHOD(Type)
#define PAPYRUS_DRAWABLE(Name)
#define PAPYRUS_CREATE(BaseObjCall)

Functions

double Papyrus::rad2units (double value, DegRad units)
double Papyrus::units2rad (double value, DegRad units)
bool Papyrus::strcaseeq (const Glib::ustring &str1, const Glib::ustring &str2)
int Papyrus::strcasecmp (const Glib::ustring &str1, const Glib::ustring &str2)

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   ) 
#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")

Generated on Fri Apr 16 12:41:00 2010 for papyrus by doxygen 1.6.1