classicui_pub/generic_button_api/inc/AknButton.h
branchRCL_3
changeset 72 a5e7a4f63858
parent 56 d48ab3b357f1
equal deleted inserted replaced
64:85902f042028 72:a5e7a4f63858
  1483          */
  1483          */
  1484         void SetFrameRects(); 
  1484         void SetFrameRects(); 
  1485 
  1485 
  1486         /**
  1486         /**
  1487          * Converts text to visual and clips it. This is called when there
  1487          * Converts text to visual and clips it. This is called when there
  1488          * are possible changes in visual text or text area changed.
  1488          * are possible changes in visual text.
  1489          * Notice that if the text area size is changed, clipped visual text 
  1489          */
  1490          * should be regenerated. 
  1490         void ConvertTextToVisualAndClip() const; 
  1491          *
       
  1492          * @param aRect new text area.         
       
  1493          *         
       
  1494          */
       
  1495         void ConvertTextToVisualAndClip( const TRect& aRect ) const; 
       
  1496         
       
  1497         /*
       
  1498          * Get rect for icon and text of the current button state .
       
  1499          * 
       
  1500          * @param aIconRect the rectangle for icon. If no icon used in current state,
       
  1501          *                 this will be EUninitialized.
       
  1502          * @param aTextRect the rectangle for text. If no text in current state,
       
  1503          *                 this will be EUninitialized.
       
  1504          */
       
  1505         void GetCurrentStateTextAndIconRect( TRect& aIconRect, TRect& aTextRect ) const;
       
  1506 
  1491 
  1507     protected: // Data
  1492     protected: // Data
  1508 
  1493 
  1509         // array to keep states
  1494         // array to keep states
  1510         CArrayPtrFlat<CAknButtonState>* iStates;
  1495         CArrayPtrFlat<CAknButtonState>* iStates;