bool IsGrabHandleEnabled();
/**
- * Toggle to enable flipping the selection handle, when it is reached the selection handle flip border.
- * @param[in] toggle true to enable, false to disable flipping the selection handle. DEFAULT = true.
- */
- /* @deprecated, handles always flip. Use SetBoundingRectangle */
- void EnableSelectionHandleFlip( bool toggle );
-
- /**
- * Method to check if the selection handle flip is enabled, if true then the selection cursor will be fliped when this exceed border.
- * @return bool return true is that the selection handle flip enable.
- */
- /* @deprecated, handles always flip. Use SetBoundingRectangle */
- bool IsSelectionHandleFlipEnabled();
-
- /**
- * Set the selection handle filp margin.
- * The default value is Vector4(0, 0, 0, 0)
- * ------------------------------------------
- * | y |
- * | ---------------------------------- |
- * | | | |
- * | x | Text Input | z |
- * | | | |
- * | ---------------------------------- |
- * | w |
- * ------------------------------------------
- */
- /* @deprecated, use SetBoundingRectangle instead. */
- void SetSelectionHandleFlipMargin( const Vector4& margin );
-
- /**
* Set the bounding rectangle which handles, popup and similar decorations will not exceed
* The default value is the width and height of the stage from the top left origin.
* If a title bar for example is on the top of the screen then the y should be the title's height and
*/
const Rect<float> GetBoundingRectangle() const;
- /**
- * Retrieve the selection handle filp margin.
- * @return Vector4 the selection handle flip margin.
- */
- /* @deprecated, use GetBoundingRectangle instead. */
- const Vector4& GetSelectionHandleFlipMargin();
-
/**
* Sets the style for new text being typed.
* By default all style settings are applied but a bit mask could be used to modify only certain style settings.
return GetImpl(*this).IsGrabHandleEnabled();
}
-void TextInput::EnableSelectionHandleFlip( bool toggle )
-{
- GetImpl(*this).EnableSelectionHandleFlip( toggle );
-}
-
-bool TextInput::IsSelectionHandleFlipEnabled()
-{
- return GetImpl(*this).IsSelectionHandleFlipEnabled();
-}
-
-void TextInput::SetSelectionHandleFlipMargin( const Vector4& border )
-{
- GetImpl(*this).SetSelectionHandleFlipMargin( border );
-}
-
void TextInput::SetBoundingRectangle( const Rect<float>& boundingOriginAndSize )
{
GetImpl(*this).SetBoundingRectangle( boundingOriginAndSize );
return GetImpl(*this).GetBoundingRectangle();
}
-const Vector4& TextInput::GetSelectionHandleFlipMargin()
-{
- return GetImpl(*this).GetSelectionHandleFlipMargin();
-}
-
void TextInput::SetActiveStyle( const TextStyle& style, const TextStyle::Mask mask )
{
GetImpl(*this).SetActiveStyle(style,mask);