OSDN Git Service

TextView strict layout.
[fukui-no-namari/dialektos.git] / src / text_element_id.hxx
index 8cf3f0a..a152360 100644 (file)
@@ -21,6 +21,8 @@
 #ifndef TEXT_ELEMENT_ID_HXX
 #define TEXT_ELEMENT_ID_HXX
 
+#include <pangomm/item.h>
+#include <pangomm/glyphstring.h>
 #include <boost/shared_ptr.hpp>
 #include "text_element_anchor.hxx"
 
@@ -47,17 +49,13 @@ public:
     Anchor(range, bold, id), id_map_(id_map) {
   }
   virtual ~ID() {}
-
 protected:
-  /*! @brief set attributes for drawing the ID text element.
-   *
-   * @param list
-   */
-  virtual void set_attributes(Pango::AttrList& list) const;
+  virtual void do_draw_glyphs(text_view::DrawingSet&, const Pango::Item&,
+      const Pango::GlyphString&, double x, double y,
+      bool in_selection) const;
 
 private:
   virtual ID* do_clone() const { return new ID(*this); }
-
   boost::shared_ptr<const IDMap> id_map_;
 };