Difference between revisions of "Changes and Porting Tips for 1.0.0"

From CEGUI Wiki - Crazy Eddie's GUI System (Open Source)
Jump to: navigation, search
Line 9: Line 9:
 
* Editbox and MultilineEditbox now inherit common behaviour from the EditboxBase class.  
 
* Editbox and MultilineEditbox now inherit common behaviour from the EditboxBase class.  
 
* The Editbox and MultilineEditbox methods getSelectionStartIndex() and getSelectionEndIndex() were renamed to getSelectionStart() and getSelectionEnd()
 
* The Editbox and MultilineEditbox methods getSelectionStartIndex() and getSelectionEndIndex() were renamed to getSelectionStart() and getSelectionEnd()
 +
* XMLAttributes::getValueAsString signature and parameters changed to: << String getValueAsString(const String&, const String&) const >>  from  << const String& getValueAsString(const String&, const String& ) const >>
 
}}
 
}}
  

Revision as of 11:35, 3 July 2015

Written for CEGUI 0.8


Works with versions 0.8.x (stable)

Works with latest CEGUI stable!

Introduction

Porting guide for the upcomin 1.0.0 version. The guide is for porting 0.8 to 1.0, for porting from older versions please also see the older porting guides.

Major renames/API changes

  • The Editbox "MaskText" property was renamed to "TextMasked" for consistency
  • Editbox and MultilineEditbox now inherit common behaviour from the EditboxBase class.
  • The Editbox and MultilineEditbox methods getSelectionStartIndex() and getSelectionEndIndex() were renamed to getSelectionStart() and getSelectionEnd()
  • XMLAttributes::getValueAsString signature and parameters changed to: << String getValueAsString(const String&, const String&) const >> from << const String& getValueAsString(const String&, const String& ) const >>

Minor changes

  • Scrollbar::isAtEnd() and Scrollbar::getMaxScrollPosition() are now public
  • MultilineEditbox now also has a MaskText property