wxArt2D
Public Member Functions | Static Public Member Functions | List of all members
a2dTextChanges Class Reference

#include <cantext.h>

Public Member Functions

 a2dTextChanges (const a2dFont &font, unsigned int textflags, int alignment)
 
void Set (const a2dFont &font, unsigned int textflags, int alignment, bool wrongloadflag=false)
 
void Mix (const a2dFont &font, unsigned int textflags, int alignment)
 
a2dFont GetFont (const a2dFont &font, wxArrayString valid_styles=wxArrayString(), wxArrayString valid_extras=wxArrayString()) const
 
int GetAlignment (int Alignment) const
 
unsigned int GetTextFlags (unsigned int textflags) const
 
bool IsValid () const
 
a2dFont GetFont () const
 
void SetFont (a2dFont font)
 
void SetStyle (wxString style)
 Set the font style.
 
void SetName (wxString name)
 Set the font name.
 
void SetSize (double size)
 Set the size.
 
void SetTextFlags (unsigned int textflags)
 Set the text flags.
 
void SetAlignment (int alignment)
 Set the position of the anchor point w.r.t the text.
 
bool IsTypeValid () const
 
bool IsNameValid () const
 
bool IsStyleValid () const
 
bool IsSizeValid () const
 
bool IsAlignmentValid () const
 
bool IsTextflagsValid () const
 
void SetStyleValidity (bool valid)
 
void SetNameValidity (bool valid)
 
unsigned int GetTextFlags () const
 Get the text flags.
 
int GetAlignment () const
 Get the position of the anchor point w.r.t the text. More...
 
a2dFontInfoListGetFontInfoList ()
 
wxArrayString GetCommonStyle ()
 

Static Public Member Functions

static void InitialiseFontList (const wxArrayString &filterlist=wxArrayString(), const wxString filtertype=wxT(""))
 

Detailed Description

a2dTextChanges - register a2dFont and other text properties 

on a group of a2dText objects. The class is used to set only certain properties on a2dText objects, and leaf the rest as is. For example to change the alignment of a group of selected a2dText objects, but leaf the font settings for the rest as is.

Definition at line 556 of file cantext.h.

Member Function Documentation

int a2dTextChanges::GetAlignment ( ) const
inline

Get the position of the anchor point w.r.t the text.

Returns
The alignment setting.

Definition at line 647 of file cantext.h.


The documentation for this class was generated from the following files:
a2dTextChanges Class Reference -- Sun Oct 12 2014 17:04:50 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation