cocos2d-x  3.0alpha1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
LabelTextFormatProtocol Class Referenceabstract

#include <CCLabelTextFormatProtocol.h>

Inheritance diagram for LabelTextFormatProtocol:
Label

Public Member Functions

virtual ~LabelTextFormatProtocol ()
virtual bool recordLetterInfo (const cocos2d::Point &point, unsigned short int theChar, int spriteIndex)=0
virtual bool recordPlaceholderInfo (int spriteIndex)=0
virtual std::vector< LetterInfo > * getLettersInfo ()=0
virtual float getLetterPosXLeft (int index) const =0
virtual float getLetterPosXRight (int index) const =0
virtual cocos2d::SpritegetLetter (int ID)=0
virtual int getCommonLineHeight () const =0
virtual int getKerningForCharsPair (unsigned short first, unsigned short second) const =0
virtual int getXOffsetForChar (unsigned short c) const =0
virtual int getYOffsetForChar (unsigned short c) const =0
virtual int getAdvanceForChar (unsigned short c, int hintPositionInString) const =0
virtual cocos2d::Rect getRectForChar (unsigned short c) const =0
virtual int getStringNumLines () const =0
virtual int getStringLenght () const =0
virtual unsigned short getCharAtStringPosition (int position) const =0
virtual unsigned short * getUTF8String () const =0
virtual void assignNewUTF8String (unsigned short *newString)=0
virtual TextHAlignment getTextAlignment () const =0
virtual float getMaxLineWidth () const =0
virtual bool breakLineWithoutSpace () const =0
virtual cocos2d::Size getLabelContentSize () const =0
virtual void setLabelContentSize (const Size &newSize)=0

Constructor & Destructor Documentation

virtual ~LabelTextFormatProtocol ( )
inlinevirtual

Member Function Documentation

virtual void assignNewUTF8String ( unsigned short *  newString)
pure virtual

Implemented in Label.

virtual bool breakLineWithoutSpace ( ) const
pure virtual

Implemented in Label.

virtual int getAdvanceForChar ( unsigned short  c,
int  hintPositionInString 
) const
pure virtual

Implemented in Label.

virtual unsigned short
getCharAtStringPosition
( int  position) const
pure virtual

Implemented in Label.

virtual int getCommonLineHeight ( ) const
pure virtual

Implemented in Label.

virtual int getKerningForCharsPair ( unsigned short  first,
unsigned short  second 
) const
pure virtual

Implemented in Label.

virtual cocos2d::Size
getLabelContentSize
( ) const
pure virtual

Implemented in Label.

virtual cocos2d::Sprite* getLetter ( int  ID)
pure virtual

Implemented in Label.

virtual float getLetterPosXLeft ( int  index) const
pure virtual

Implemented in Label.

virtual float getLetterPosXRight ( int  index) const
pure virtual

Implemented in Label.

virtual std::vector<LetterInfo>
* getLettersInfo
( )
pure virtual

Implemented in Label.

virtual float getMaxLineWidth ( ) const
pure virtual

Implemented in Label.

virtual cocos2d::Rect
getRectForChar
( unsigned short  c) const
pure virtual

Implemented in Label.

virtual int getStringLenght ( ) const
pure virtual

Implemented in Label.

virtual int getStringNumLines ( ) const
pure virtual

Implemented in Label.

virtual TextHAlignment
getTextAlignment
( ) const
pure virtual

Implemented in Label.

virtual unsigned short*
getUTF8String
( ) const
pure virtual

Implemented in Label.

virtual int getXOffsetForChar ( unsigned short  c) const
pure virtual

Implemented in Label.

virtual int getYOffsetForChar ( unsigned short  c) const
pure virtual

Implemented in Label.

virtual bool recordLetterInfo ( const cocos2d::Point point,
unsigned short int  theChar,
int  spriteIndex 
)
pure virtual

Implemented in Label.

virtual bool recordPlaceholderInfo ( int  spriteIndex)
pure virtual

Implemented in Label.

virtual void setLabelContentSize ( const Size newSize)
pure virtual

Implemented in Label.


The documentation for this class was generated from the following file: