|
Rapicorn - Experimental UI Toolkit - Source Code 10.08.1
|
00001 /* Rapicorn 00002 * Copyright (C) 2005-2006 Tim Janik 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2.1 of the License, or (at your option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * A copy of the GNU Lesser General Public License should ship along 00015 * with this library; if not, see http://www.gnu.org/copyleft/. 00016 */ 00017 #ifndef __RAPICORN_TEXT_PANGO_HH__ 00018 #define __RAPICORN_TEXT_PANGO_HH__ 00019 00020 #include <ui/utilities.hh> 00021 #include <ui/text-editor.hh> 00022 00023 namespace Rapicorn { 00024 00025 #if RAPICORN_WITH_PANGO 00026 class TextLayout : public virtual ItemImpl { 00027 virtual String markup_text () const = 0; 00028 virtual void markup_text (const String &markup) = 0; 00029 }; 00030 class TextPango : public virtual TextLayout { // FIXME: move to Text::EditorClient 00031 public: 00032 virtual void font_name (const String &fname) = 0; 00033 virtual String font_name () const = 0; 00034 virtual AlignType align () const = 0; 00035 virtual void align (AlignType at) = 0; 00036 virtual EllipsizeType ellipsize () const = 0; 00037 virtual void ellipsize (EllipsizeType et) = 0; 00038 virtual uint16 spacing () const = 0; 00039 virtual void spacing (uint16 sp) = 0; 00040 virtual int16 indent () const = 0; 00041 virtual void indent (int16 sp) = 0; 00042 virtual void text (const String &text) = 0; 00043 virtual String text () const = 0; 00044 }; 00045 #endif /* RAPICORN_WITH_PANGO */ 00046 00047 } // Rapicorn 00048 00049 #endif /* __RAPICORN_TEXT_PANGO_HH__ */
1.7.4