- ControlInterface& mControlInterface;
-
- std::string mNewText;
-
- LogicalModelPtr mLogicalModel;
- VisualModelPtr mVisualModel;
-
- View mView;
-
- LayoutEngine mLayoutEngine;
-
- TextAbstraction::FontClient mFontClient;
-
- OperationsMask mOperations;
-
- Size mControlSize;
-
- // Avoid allocating this when the user does not specify a font
- FontDefaults* mFontDefaults;
-
- // Avoid allocating everything for text input until EnableTextInput()
- Controller::TextInput* mTextInput;
+ ControlInterface& mControlInterface; ///< Reference to the text controller.
+ LogicalModelPtr mLogicalModel; ///< Pointer to the logical model.
+ VisualModelPtr mVisualModel; ///< Pointer to the visual model.
+ FontDefaults* mFontDefaults; ///< Avoid allocating this when the user does not specify a font.
+ Controller::TextInput* mTextInput; ///< Avoid allocating everything for text input until EnableTextInput().
+ TextAbstraction::FontClient mFontClient; ///< Handle to the font client.
+ View mView; ///< The view interface to the rendering back-end.
+ LayoutEngine mLayoutEngine; ///< The layout engine.
+ std::string mNewText; ///< Temporary stores the text set until the next relayout.
+ Size mControlSize; ///< The size of the control.
+ OperationsMask mOperationsPending; ///< Operations pending to be done to layout the text.
+ bool mRecalculateNaturalSize:1; ///< Whether the natural size needs to be recalculated.