Mercurial > octave
diff libinterp/corefcn/base-text-renderer.h @ 22331:b81b08cc4c83
maint: Indent namespaces in more files.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 17 Aug 2016 11:43:27 -0400 |
parents | 71dd9d5a5ecd |
children | 34ce5be04942 |
line wrap: on
line diff
--- a/libinterp/corefcn/base-text-renderer.h Wed Aug 17 08:20:26 2016 -0700 +++ b/libinterp/corefcn/base-text-renderer.h Wed Aug 17 11:43:27 2016 -0400 @@ -37,50 +37,48 @@ namespace octave { + class + base_text_renderer : public text_processor + { + public: -class -base_text_renderer : public text_processor -{ -public: + base_text_renderer (void) : text_processor () { } - base_text_renderer (void) : text_processor () { } - - virtual ~base_text_renderer (void) { } + virtual ~base_text_renderer (void) { } - virtual Matrix - get_extent (text_element *elt, double rotation) = 0; + virtual Matrix + get_extent (text_element *elt, double rotation) = 0; - virtual Matrix - get_extent (const std::string& txt, double rotation, - const caseless_str& interpreter) = 0; + virtual Matrix + get_extent (const std::string& txt, double rotation, + const caseless_str& interpreter) = 0; - virtual void - set_font (const std::string& name, const std::string& weight, - const std::string& angle, double size) = 0; + virtual void + set_font (const std::string& name, const std::string& weight, + const std::string& angle, double size) = 0; - virtual void set_color (const Matrix& c) = 0; + virtual void set_color (const Matrix& c) = 0; - virtual void - text_to_pixels (const std::string& txt, uint8NDArray& pxls, - Matrix& bbox, int halign, int valign, double rotation, - const caseless_str& interpreter, - bool handle_rotation) = 0; + virtual void + text_to_pixels (const std::string& txt, uint8NDArray& pxls, + Matrix& bbox, int halign, int valign, double rotation, + const caseless_str& interpreter, + bool handle_rotation) = 0; - virtual void - text_to_strlist (const std::string& txt, - std::list<text_renderer::string>& lst, - Matrix& box, int halign, int valign, double rotation, - const caseless_str& interpreter = "tex") = 0; - -private: + virtual void + text_to_strlist (const std::string& txt, + std::list<text_renderer::string>& lst, + Matrix& box, int halign, int valign, double rotation, + const caseless_str& interpreter = "tex") = 0; - // No copying! + private: - base_text_renderer (const base_text_renderer&); + // No copying! - base_text_renderer& operator = (const base_text_renderer&); -}; + base_text_renderer (const base_text_renderer&); + base_text_renderer& operator = (const base_text_renderer&); + }; } #endif