mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-11 01:01:25 +03:00
Minor clean up.
This commit is contained in:
@@ -130,7 +130,7 @@ class EE_API Text {
|
||||
/** Shrink the String to a max width
|
||||
* @param MaxWidth The maximum possible width
|
||||
*/
|
||||
void shrinkText( const Uint32& maxWidth );
|
||||
void wrapText( const Uint32& maxWidth );
|
||||
|
||||
/** Invalidates the color cache */
|
||||
void invalidateColors();
|
||||
|
||||
@@ -16,17 +16,17 @@ class EE_API Translator {
|
||||
public:
|
||||
Translator( const std::locale& locale = std::locale() );
|
||||
|
||||
void loadFromDirectory( std::string dirPath, std::string ext = "xml" );
|
||||
bool loadFromDirectory( std::string dirPath, std::string ext = "xml" );
|
||||
|
||||
void loadFromFile( const std::string& path, std::string lang = "" );
|
||||
bool loadFromFile( const std::string& path, std::string lang = "" );
|
||||
|
||||
void loadFromString( const std::string& string, std::string lang = "" );
|
||||
bool loadFromString( const std::string& string, std::string lang = "" );
|
||||
|
||||
void loadFromMemory( const void* buffer, Int32 bufferSize, std::string lang = "" );
|
||||
bool loadFromMemory( const void* buffer, Int32 bufferSize, std::string lang = "" );
|
||||
|
||||
void loadFromStream( IOStream& stream, std::string lang = "" );
|
||||
bool loadFromStream( IOStream& stream, std::string lang = "" );
|
||||
|
||||
void loadFromPack( Pack* pack, const std::string& FilePackPath, std::string lang = "" );
|
||||
bool loadFromPack( Pack* pack, const std::string& FilePackPath, std::string lang = "" );
|
||||
|
||||
String getString( const std::string& key, const String& defaultValue = String() );
|
||||
|
||||
@@ -50,7 +50,7 @@ class EE_API Translator {
|
||||
std::string mCurrentLanguage;
|
||||
StringLocaleDictionary mDictionary;
|
||||
|
||||
void loadNodes( pugi::xml_node node, std::string lang = "" );
|
||||
bool loadNodes( pugi::xml_node node, std::string lang = "" );
|
||||
};
|
||||
|
||||
}} // namespace EE::System
|
||||
|
||||
@@ -643,15 +643,15 @@ class EE_API UICodeEditor : public UIWidget, public TextDocument::Client {
|
||||
|
||||
virtual void drawMatchingBrackets( const Vector2f& startScroll, const Float& lineHeight );
|
||||
|
||||
virtual void drawLineText( const Int64& line, Vector2f position, const Float& fontSize,
|
||||
const Float& lineHeight );
|
||||
|
||||
virtual void drawSelectionMatch( const std::pair<int, int>& lineRange,
|
||||
const Vector2f& startScroll, const Float& lineHeight );
|
||||
|
||||
virtual void drawWordMatch( const String& text, const std::pair<int, int>& lineRange,
|
||||
const Vector2f& startScroll, const Float& lineHeight );
|
||||
|
||||
virtual void drawLineText( const Int64& index, Vector2f position, const Float& fontSize,
|
||||
const Float& lineHeight );
|
||||
|
||||
virtual void drawWhitespaces( const std::pair<int, int>& lineRange, const Vector2f& startScroll,
|
||||
const Float& lineHeight );
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ class EE_API UITextEdit : public UICodeEditor {
|
||||
|
||||
virtual void setTheme( UITheme* Theme );
|
||||
|
||||
virtual void shrinkText( const Float& maxWidth );
|
||||
virtual void wrapText( const Float& maxWidth );
|
||||
|
||||
String getText() const;
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ class EE_API UITextInput : public UITextView, public TextDocument::Client {
|
||||
|
||||
virtual UITextView* setText( const String& text );
|
||||
|
||||
virtual void shrinkText( const Uint32& MaxWidth );
|
||||
virtual void wrapText( const Uint32& MaxWidth );
|
||||
|
||||
UITextInput* setMaxLength( const Uint32& maxLength );
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ class EE_API UITextView : public UIWidget {
|
||||
|
||||
Vector2f getAlignOffset() const;
|
||||
|
||||
virtual void shrinkText( const Uint32& MaxWidth );
|
||||
virtual void wrapText( const Uint32& maxWidth );
|
||||
|
||||
bool isTextSelectionEnabled() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user