00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __CAIROMM_FONTFACE_H
00020 #define __CAIROMM_FONTFACE_H
00021
00022 #include <cairomm/enums.h>
00023 #include <cairo.h>
00024
00025
00026 namespace Cairo
00027 {
00028
00032 class FontFace
00033 {
00034 protected:
00035
00036
00037
00038 public:
00039
00044 explicit FontFace(cairo_font_face_t* cobject, bool has_reference = false);
00045
00046
00047 virtual ~FontFace();
00048
00049
00050
00051
00052
00053
00054
00055 FontType get_type() const;
00056
00057 typedef cairo_font_face_t cobject;
00058 inline cobject* cobj() { return m_cobject; }
00059 inline const cobject* cobj() const { return m_cobject; }
00060
00061 #ifndef DOXYGEN_IGNORE_THIS
00063 inline ErrorStatus get_status() const
00064 { return cairo_font_face_status(const_cast<cairo_font_face_t*>(cobj())); }
00065 #endif //DOXYGEN_IGNORE_THIS
00066
00067 void reference() const;
00068 void unreference() const;
00069
00070 protected:
00071
00072 cobject* m_cobject;
00073 };
00074
00075 }
00076
00077 #endif //__CAIROMM_FONTFACE_H
00078
00079