Something went wrong. Try again.
Massive multiplayer game aiming to create a collaborative musical environment.
Something went wrong. Try again.
1.7 kB · 53 lines
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354/*********************************************************************** TextFormatting***********************************************************************/enum TextFormatting{ LeftAligned, RightAligned, Centred, Justified, WordWrapLeftAligned, WordWrapRightAligned, WordWrapCentred, WordWrapJustified};
/*********************************************************************** Font***********************************************************************/class Font //: public PropertySet{ ////////////////////////////////////////////// // PropertySet void setProperty(string name, string value); string getProperty(string name) const; string getPropertyDefault(string name) const; string getPropertyHelp(string name) const;
bool isPropertyPresent(string name) const; bool isPropertyDefault(string name) const;
tolua_outside PropertyIterator ceguiLua_getPropertyIterator @ getPropertyIterator() const;
static void setDefaultResourceGroup(string resourceGroup); static string getDefaultResourceGroup();
void load ();
bool isCodepointAvailable(unsigned long cp) const;
void setNativeResolution(const Size& sz); void notifyScreenResolution(const Size& sz);
float getTextExtent(string text, float xscale=1); float getLineSpacing(float yscale=1) const; float getFontHeight(float yscale=1) const;
unsigned long getCharAtPixel(string text, unsigned long start_char, float pixel, float xscale=1); unsigned long getCharAtPixel(string text, float pixel, float xscale=1);
unsigned long getFormattedLineCount(string text, const Rect& format_area, TextFormatting fmt, float xscale=1); float getFormattedTextExtent(string text, const Rect& format_area, TextFormatting fmt, float xscale=1);};