1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2006 by the OpenSG Forum *
7 * contact: David Kabala (djkabala@gmail.com) *
9 \*---------------------------------------------------------------------------*/
10 /*---------------------------------------------------------------------------*\
13 * This library is free software; you can redistribute it and/or modify it *
14 * under the terms of the GNU Library General Public License as published *
15 * by the Free Software Foundation, version 2. *
17 * This library is distributed in the hope that it will be useful, but *
18 * WITHOUT ANY WARRANTY; without even the implied warranty of *
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
20 * Library General Public License for more details. *
22 * You should have received a copy of the GNU Library General Public *
23 * License along with this library; if not, write to the Free Software *
24 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
26 \*---------------------------------------------------------------------------*/
27 /*---------------------------------------------------------------------------*\
35 \*---------------------------------------------------------------------------*/
37 //---------------------------------------------------------------------------
39 //---------------------------------------------------------------------------
44 void SimpleTextForeground::addLine(const std::string &szText)
46 editMFLines()->push_back(szText);
50 void SimpleTextForeground::clear(void)
52 editMFLines()->clear();
56 bool SimpleTextForeground::TextColoredRange::isBounded(UInt32 uiPosition) const
58 return (uiPosition >= _uiStart &&
59 uiPosition <= _uiEnd);
63 SimpleTextForeground::TextColoredRange::TextColoredRange( UInt32 uiStart,
65 const Color4f &cColor):
73 const Color4f &SimpleTextForeground::TextColoredRange::getColor(void) const
79 UInt32 SimpleTextForeground::TextColoredRange::getStart(void) const
85 UInt32 SimpleTextForeground::TextColoredRange::getEnd(void) const