GL Studio C++ Runtime API
gls_text.h File Reference

The disti::GlsText class. More...

#include "unhide_globals.h"
#include "gls_gl.h"
#include <string>
#include "glpolygon.h"
#include "gls_color.h"
#include "gls_cpp_lang_support.h"
#include "gls_font_base.h"
#include "gls_font_man.h"
#include "gls_metadata_attributes.h"
#include "gls_runtime_font_base.h"
#include "gls_unicode_font_base.h"
#include "scoped_ptr.h"

Go to the source code of this file.

Classes

class  GlsText
 
struct  GlsText::CharAttr_t
 Attributes for each character position in the grid. More...
 
class  GlsText::LineSegment_t
 
class  GlsTextCharAttr
 

Namespaces

namespace  disti
 Force inclusion of the DirectShow library.
 

Macros

#define GLS_TEXT_SET_GEOMETRY_REFRESH
 Macro to refresh geometry in ES, that does nothing on Desktop.
 
#define SET_ALL_CHARS(attribute, value)
 Macro to set a given attribute on all characters with the given value. More...
 

Enumerations

enum  GlsTextInitializers_t {
  GLS_TEXT_BORDER = GLS_LAST_INITIALIZER + 1 , GLS_TEXT_CELL_HEIGHT , GLS_TEXT_CELL_WIDTH , GLS_TEXT_CONSTRAIN_CELL_RATIO ,
  GLS_TEXT_CONTROL_CELL_SIZE , GLS_TEXT_FONT , GLS_TEXT_HALO , GLS_TEXT_LINESPACING ,
  GLS_TEXT_LOCK_CELL_SIZE , GLS_TEXT_JUSTIFY , GLS_TEXT_SHADOW , GLS_TEXT_STRING ,
  GLS_TEXT_UPPERCASE , GLS_TEXT_WRAP , GLS_LAST_TEXT_INITIALIZER = GLS_TEXT_WRAP
}
 Initializers for text.
 

Functions

GlsRuntimeFontBase * GetGlsRuntimeFontBase (const GlsFontBase *font)
 
const GlsUnicodeFontBase * GetGlsUnicodeFontBase (const GlsFontBase *font)
 
std::istream & operator>> (std::istream &instr, disti::GlsText::Justify_t &j)
 
std::ostream & operator<< (std::ostream &outstr, disti::GlsText::Justify_t j)
 
std::ostream & operator<< (std::ostream &outstr, const disti::GlsText::CharAttr_t &c)
 
std::istream & operator>> (std::istream &instr, disti::GlsText::CharAttr_t &c)
 

Detailed Description

The disti::GlsText class.

Copyright Information

Copyright (c) 2017 by The DiSTI Corporation.
11301 Corporate Blvd; Suite 100
Orlando, Florida 32817
USA

All rights reserved.

This Software contains proprietary trade secrets of DiSTI and may not be reproduced, in whole or part, in any form, or by any means of electronic, mechanical, or otherwise, without the written permission of DiSTI. Said permission may be derived through the purchase of applicable DiSTI product licenses which detail the distribution rights of this content and any Derivative Works based on this or other copyrighted DiSTI Software.

NO WARRANTY. THE SOFTWARE IS PROVIDED "AS-IS," WITHOUT WARRANTY OF ANY KIND, AND ANY USE OF THIS SOFTWARE PRODUCT IS AT YOUR OWN RISK. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, DISTI AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES AND CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE.

LIMITATION OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL DISTI OR ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE, EVEN IF DISTI HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. DISTI'S ENTIRE LIABILITY AND YOUR EXCLUSIVE REMEDY SHALL NOT EXCEED FIVE DOLLARS (US$5.00).

The aforementioned terms and restrictions are governed by the laws of the State of Florida and the United States of America.

Macro Definition Documentation

◆ SET_ALL_CHARS

#define SET_ALL_CHARS (   attribute,
  value 
)
Value:
{ \
for( CharAttrCont_t::iterator i = _chars.begin(); i != _chars.end(); ++i ) \
{ \
i->attribute = value; \
} \
GLS_TEXT_SET_GEOMETRY_REFRESH \
}

Macro to set a given attribute on all characters with the given value.

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  outstr,
const disti::GlsText::CharAttr_t c 
)

Stream out operator

Parameters
outstrThe stream to write to.
cThe value to write to the stream.
Returns
The stream in its current state.

◆ operator>>()

std::istream & operator>> ( std::istream &  instr,
disti::GlsText::CharAttr_t c 
)

Stream in operator

Parameters
instrThe stream to read from.
cThe returned value read from the stream.
Returns
The stream in its current state.