Changeset 10164 in orxonox.OLD for branches/gui/src/lib/gui/gl/glgui_multiline_text.cc
- Timestamp:
- Jan 3, 2007, 2:56:10 PM (17 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl/glgui_multiline_text.cc
r10163 r10164 16 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GUI 17 17 18 #include "glgui_ text.h"18 #include "glgui_multiline_text.h" 19 19 20 20 #include "text.h" … … 22 22 namespace OrxGui 23 23 { 24 ObjectListDefinition(GLGui Text);24 ObjectListDefinition(GLGuiMultiLineText); 25 25 /** 26 26 * standard constructor 27 27 */ 28 GLGui Text::GLGuiText ()28 GLGuiMultiLineText::GLGuiMultiLineText () 29 29 { 30 30 this->init(); … … 36 36 * standard deconstructor 37 37 */ 38 GLGui Text::~GLGuiText()38 GLGuiMultiLineText::~GLGuiMultiLineText() 39 39 {} 40 40 … … 42 42 * initializes the GUI-element 43 43 */ 44 void GLGui Text::init()44 void GLGuiMultiLineText::init() 45 45 { 46 this->registerObject(this, GLGui Text::_objectList);46 this->registerObject(this, GLGuiMultiLineText::_objectList); 47 47 48 48 this->_text.setParent2D(this); … … 61 61 * @param text The new Text. 62 62 */ 63 void GLGui Text::setText(const std::string& text)63 void GLGuiMultiLineText::setText(const std::string& text) 64 64 { 65 65 this->_text.setText(text); … … 71 71 * @param appendText the Text to append 72 72 */ 73 void GLGui Text::append(const std::string& appendText)73 void GLGuiMultiLineText::append(const std::string& appendText) 74 74 { 75 75 this->_text.append(appendText); … … 82 82 * @param character the Character to append. 83 83 */ 84 void GLGui Text::appendCharacter(char character)84 void GLGuiMultiLineText::appendCharacter(char character) 85 85 { 86 86 this->_text.appendCharacter(character); … … 93 93 * @param chars The count of characters to remove 94 94 */ 95 void GLGui Text::removeCharacters(unsigned int chars)95 void GLGuiMultiLineText::removeCharacters(unsigned int chars) 96 96 { 97 97 this->_text.removeCharacters(chars); … … 99 99 } 100 100 101 void GLGui Text::clear()101 void GLGuiMultiLineText::clear() 102 102 { 103 103 this->_text.clear(); … … 111 111 * This Function also emits the Signal textChanged. 112 112 */ 113 void GLGui Text::changedText()113 void GLGuiMultiLineText::changedText() 114 114 { 115 115 this->resize(); … … 118 118 } 119 119 120 void GLGui Text::setTextSize(float size)120 void GLGuiMultiLineText::setTextSize(float size) 121 121 { 122 122 this->_text.setSize(size); … … 124 124 } 125 125 126 void GLGui Text::setFont(const Font& font)126 void GLGuiMultiLineText::setFont(const Font& font) 127 127 { 128 128 GLGuiWidget::setFont(font); … … 130 130 } 131 131 132 void GLGui Text::setChangedTextColor(const Color& color)132 void GLGuiMultiLineText::setChangedTextColor(const Color& color) 133 133 { 134 134 this->_changedTextColor = color; … … 138 138 * @brief Resizes the Widget to the new Size-constraints. 139 139 */ 140 void GLGui Text::resize()140 void GLGuiMultiLineText::resize() 141 141 { 142 142 this->_text.setRelCoor2D(borderLeft(), borderTop()); … … 148 148 } 149 149 150 void GLGui Text::updateFrontColor()150 void GLGuiMultiLineText::updateFrontColor() 151 151 { 152 152 this->_text.setColor(foregroundColor()); 153 153 } 154 154 155 void GLGui Text::hiding()155 void GLGuiMultiLineText::hiding() 156 156 { 157 157 this->_text.setVisibility(false); 158 158 } 159 159 160 void GLGui Text::showing()160 void GLGuiMultiLineText::showing() 161 161 { 162 162 this->_text.setVisibility(true); … … 166 166 167 167 /** 168 * draws the GLGui Text168 * draws the GLGuiMultiLineText 169 169 */ 170 void GLGui Text::draw() const170 void GLGuiMultiLineText::draw() const 171 171 { 172 172 this->beginDraw();
Note: See TracChangeset
for help on using the changeset viewer.