--- a/classicui_pub/generic_button_api/inc/AknButton.h Thu Jul 15 18:56:19 2010 +0300
+++ b/classicui_pub/generic_button_api/inc/AknButton.h Thu Aug 19 10:11:06 2010 +0300
@@ -1485,9 +1485,24 @@
/**
* Converts text to visual and clips it. This is called when there
- * are possible changes in visual text.
+ * are possible changes in visual text or text area changed.
+ * Notice that if the text area size is changed, clipped visual text
+ * should be regenerated.
+ *
+ * @param aRect new text area.
+ *
*/
- void ConvertTextToVisualAndClip() const;
+ void ConvertTextToVisualAndClip( const TRect& aRect ) const;
+
+ /*
+ * Get rect for icon and text of the current button state .
+ *
+ * @param aIconRect the rectangle for icon. If no icon used in current state,
+ * this will be EUninitialized.
+ * @param aTextRect the rectangle for text. If no text in current state,
+ * this will be EUninitialized.
+ */
+ void GetCurrentStateTextAndIconRect( TRect& aIconRect, TRect& aTextRect ) const;
protected: // Data