SophiaFramework UNIVERSE 5.3 |
#include <SFYSingleEditWidget.h.hpp>
class SFYSingleEditWidget : public SFYWidget;
SFMTYPEDEFCLASS(SFYSingleEditWidget)
How to use
SFYSingleEditWidget is a responder with the function of displaying a single editable text.
In general, this class is used as a child responder contained internally by the parent responder such as SFZSingleEditLabelControl or SFZSingleEditBoxControl, which will edit a single text.
In these responders, all processings such as setting a single text, its color, its font, its alignment, or its scroll are delegated to this class.
Internal processing of the SFYSingleEditWidget class | |
---|---|
The text input and its drawing of the SFYSingleEditWidget class will be delegated to the SFXEditor class and the SFYSingleTextWidget class which the SFYSingleEditWidget class contains internally, respectively. |
The state of this responder when used | |
---|---|
When this class is used, its state is set to "visible"+"active"+"disable"+"unfocus". In general, this class is used as a responder which will not handle the key event. |
Default value of the transparency attribute | |
---|---|
Since the default value of the transparency attribute of this class is set to "true", the background will be never drawn in the color set with the SFYWidget::SetBackgroundColor function unless the transparency attribute is set to "false" using the SFYResponder::SetPropertyTransparent function. |
About the virtual region | |
---|---|
In this class, it is recommended to equalize the virtual region with the real region for the intuitive text alignment or scroll. For instance, though all the text is not displayed, the text will not start to scroll even if the SFYSingleTextWidget::StartScroll function is called when the following relation stands up. [Width of virtual region] ≧ [Width of text] > [Width of real region]
|
SFZSingleEditLabelControl | SFZSingleEditBoxControl | SFYSingleTextWidget | SFXEditor | Virtual Region | Real Region | Local Region
Constructor/Destructor |
---|
SFYSingleEditWidget( Void ) Constructor of the SFYSingleEditWidget class.
|
~SFYSingleEditWidget( Void ) Destructor of the SFYSingleEditWidget class.
|
Public Functions | |
---|---|
SFCError |
Edit( Void ) Transfer to the naitive text input.
|
AEEFont |
GetFont( Void ) Get the font.
|
SFXSizeConstRef |
GetFontSize( Void ) Get the font size.
|
HorizontalEnum |
GetHorizontalAlign( Void ) Get the horizontal alignment.
|
AEETextInputMode |
GetInputMode( Void ) Get the value of text input mode.
|
UInt16 |
GetMaximumLength( Void ) Get the maximum number of characters for text input.
|
Bool |
GetPasswordMode( Void ) Get the value of password mode.
|
AEECLSID |
GetSFBMenuCtlClassID( Void ) [DEPRECATED] Get the class ID of SFBMenuCtl.
|
AEECLSID |
GetSFBTextCtlClassID( Void ) [DEPRECATED] Get the class ID of SFBTextCtl.
|
DirectionEnum |
GetScrollDirection( Void ) Get the scroll direction.
|
UInt32 |
GetScrollInterval( Void ) Get the scroll-interval. [milliseconds]
|
SInt16 |
GetScrollStep( Void ) Get the scroll-step. [pixels]
|
SFXWideStringConstRef |
GetText( Void ) Get the text.
|
SFXRGBColorConstRef |
GetTextColor( Void ) Get the color of text.
|
SFXSizeConstRef |
GetTextSize( Void ) Get the size of the text.
|
VerticalEnum |
GetVerticalAlign( Void ) Get the vertical alignment.
|
UInt32 |
GetWaitInterval( Void ) Get the waiting time to start to scroll. [milliseconds]
|
static SFYSingleEditWidgetSmp |
NewInstance(
SFCErrorPtr exception = null
) Create a new instance of this responder class.
|
Void |
SetFont(
AEEFont param
) Set the font to the specified value .
|
Void |
SetHorizontalAlign(
HorizontalEnum param
) Set the horizontal alignment to the specified value.
|
Void |
SetInputMode(
AEETextInputMode param
) Set the text input mode to the specified value.
|
SFCError |
SetMaximumLength(
UInt16 param
) Set the maximum number of characters for text input to the specified value.
|
SFCError |
SetPasswordMode(
Bool param
) Set the password mode to the specified value.
|
Void |
SetSFBMenuCtlClassID(
AEECLSID param
) [DEPRECATED] Set the class ID of SFBMenuCtl to the specified value.
|
Void |
SetSFBTextCtlClassID(
AEECLSID param
) [DEPRECATED] Set the class ID of SFBTextCtl to the specified value.
|
Void |
SetScrollDirection(
DirectionEnum param
) Set the scroll direction to the specified value.
|
Void |
SetScrollInterval(
UInt32 param
) Set the scroll-interval to the specified value. [milliseconds]
|
Void |
SetScrollStep(
SInt16 param
) Set the scroll-step to the specified value. [pixels]
|
SFCError |
SetText(
SFXPathConstRef path
, UInt16 id
) Set the text to the specified value.
|
SFCError |
SetText(
SFXWideStringConstRef param
) Set the text to the specified value.
|
Void |
SetTextColor(
SFXRGBColorConstRef param
) Set the color of text to the specified value.
|
Void |
SetVerticalAlign(
VerticalEnum param
) Set the vertical alignment to the specified value.
|
Void |
SetWaitInterval(
UInt32 param
) Set the waiting time to start the scroll to the specified value. [milliseconds]
|
Void |
StartScroll( Void ) Start to scroll the text.
|
Void |
StopScroll( Void ) Stop to scroll the text.
|
Void |
ClearHandler( Void )
(inherits from SFYResponder)
Unregister all handlers from this responder.
|
Void |
ClearTracer( Void )
(inherits from SFYResponder)
Unregister all dispatching rules from the tracer of this responder.
|
SFCError |
Distribute(
SFXEventConstRef event
, BoolPtr result = null
)
(inherits from SFYResponder)
Distribute the specified event.
|
SFXRGBColorConstRef |
GetBackgroundColor( Void )
(inherits from SFYWidget)
Get the background color.
|
SFYResponderSmp |
GetChildBack( Void )
(inherits from SFYResponder)
Get the backmost child responder of this responder,
which matches the specified search condition.
|
SFYResponderSmp |
GetChildBack(
Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Get the backmost child responder of this responder,
which matches the specified search condition.
|
SFYResponderSmp |
GetChildBack(
UInt32 id
)
(inherits from SFYResponder)
Get the backmost child responder of this responder,
which matches the specified search condition.
|
SFYResponderSmp |
GetChildBack(
UInt32 id
, Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Get the backmost child responder of this responder,
which matches the specified search condition.
|
SFYResponderSmp |
GetChildBackward(
SInt32 index
)
(inherits from SFYResponder)
Get the child responder of this responder at the specified position from the back side,
which matches the specified search condition.
|
SFYResponderSmp |
GetChildBackward(
SInt32 index
, Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Get the child responder of this responder at the specified position from the back side,
which matches the specified search condition.
|
SFYResponderSmp |
GetChildBackward(
SInt32 index
, UInt32 id
)
(inherits from SFYResponder)
Get the child responder of this responder at the specified position from the back side,
which matches the specified search condition.
|
SFYResponderSmp |
GetChildBackward(
SInt32 index
, UInt32 id
, Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Get the child responder of this responder at the specified position from the back side,
which matches the specified search condition.
|
SInt32 |
GetChildCount( Void )
(inherits from SFYResponder)
Get the number of child responders of this responder,
which match the specified search condition.
|
SInt32 |
GetChildCount(
Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Get the number of child responders of this responder,
which match the specified search condition.
|
SInt32 |
GetChildCount(
UInt32 id
)
(inherits from SFYResponder)
Get the number of child responders of this responder,
which match the specified search condition.
|
SInt32 |
GetChildCount(
UInt32 id
, Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Get the number of child responders of this responder,
which match the specified search condition.
|
SFYResponderSmp |
GetChildForward(
SInt32 index
)
(inherits from SFYResponder)
Get the child responder of this responder at the specified position from the front side,
which matches the specified search condition.
|
SFYResponderSmp |
GetChildForward(
SInt32 index
, Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Get the child responder of this responder at the specified position from the front side,
which matches the specified search condition.
|
SFYResponderSmp |
GetChildForward(
SInt32 index
, UInt32 id
)
(inherits from SFYResponder)
Get the child responder of this responder at the specified position from the front side,
which matches the specified search condition.
|
SFYResponderSmp |
GetChildForward(
SInt32 index
, UInt32 id
, Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Get the child responder of this responder at the specified position from the front side,
which matches the specified search condition.
|
SFYResponderSmp |
GetChildFront( Void )
(inherits from SFYResponder)
Get the foremost child responder of this responder,
which matches the specified search condition.
|
SFYResponderSmp |
GetChildFront(
Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Get the foremost child responder of this responder,
which matches the specified search condition.
|
SFYResponderSmp |
GetChildFront(
UInt32 id
)
(inherits from SFYResponder)
Get the foremost child responder of this responder,
which matches the specified search condition.
|
SFYResponderSmp |
GetChildFront(
UInt32 id
, Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Get the foremost child responder of this responder,
which matches the specified search condition.
|
SFYDistributerPtr |
GetDistributer( Void )
(inherits from SFYResponder)
Get the distributer bound with this responder.
|
SFYResponderSmp |
GetFrame( Void )
(inherits from SFYResponder)
Get the frame which has been attached to this responder.
|
SFXRectangle |
GetGlobalBound( Void )
(inherits from SFYResponder)
Get the globle region of this responder.
|
UInt32 |
GetID( Void )
(inherits from SFYResponder)
Get the ID of this responder instance.
|
SFXRectangle |
GetLocalBound( Void )
(inherits from SFYResponder)
Get the local region of this responder.
|
SInt32 |
GetNthBackward( Void )
(inherits from SFYResponder)
Get the position counted from the back side of this responder among a group of sibling responders,
which match the specified search condition.
|
SInt32 |
GetNthBackward(
Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Get the position counted from the back side of this responder among a group of sibling responders,
which match the specified search condition.
|
SInt32 |
GetNthBackward(
UInt32 id
)
(inherits from SFYResponder)
Get the position counted from the back side of this responder among a group of sibling responders,
which match the specified search condition.
|
SInt32 |
GetNthBackward(
UInt32 id
, Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Get the position counted from the back side of this responder among a group of sibling responders,
which match the specified search condition.
|
SInt32 |
GetNthForward( Void )
(inherits from SFYResponder)
Get the position counted from the front side of this responder among a group of sibling responders,
which match the specified search condition.
|
SInt32 |
GetNthForward(
Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Get the position counted from the front side of this responder among a group of sibling responders,
which match the specified search condition.
|
SInt32 |
GetNthForward(
UInt32 id
)
(inherits from SFYResponder)
Get the position counted from the front side of this responder among a group of sibling responders,
which match the specified search condition.
|
SInt32 |
GetNthForward(
UInt32 id
, Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Get the position counted from the front side of this responder among a group of sibling responders,
which match the specified search condition.
|
SFYResponderSmp |
GetParent( Void )
(inherits from SFYResponder)
Get the parent responder of this responder.
|
Bool |
GetPropertyTransparent( Void )
(inherits from SFYResponder)
Get the transparency attribute of this responder.
|
SFXRectangleConstRef |
GetRealBound( Void )
(inherits from SFYResponder)
Get the real region of this responder.
|
VoidPtr |
GetReference( Void )
(inherits from SFYResponder)
Get the reference of this responder.
|
SFYRendererPtr |
GetRenderer( Void )
(inherits from SFYResponder)
Get the renderer bound with this responder.
|
SFYResponderSmp |
GetRoot( Void )
(inherits from SFYResponder)
Get the root responder.
|
Bool |
GetStateActive(
Bool inherit = false
)
(inherits from SFYResponder)
Get the active state of this responder.
|
Bool |
GetStateEnable(
Bool inherit = false
)
(inherits from SFYResponder)
Get the enable state of this responder.
|
Bool |
GetStateFocus(
Bool inherit = false
)
(inherits from SFYResponder)
Get the focus state of this responder.
|
Bool |
GetStateValid(
Bool inherit = false
)
(inherits from SFYResponder)
Get the valid state of this responder.
|
Bool |
GetStateVisible(
Bool inherit = false
)
(inherits from SFYResponder)
Get the visible state of this responder.
|
SFXRectangle |
GetSuitableBound( Void )
(inherits from SFYResponder)
Get the suitable region of this responder.
|
SFXRectangle |
GetSuitableBound(
SFXRectangleConstRef rectangle
)
(inherits from SFYResponder)
Get the suitable region of this responder.
|
SFXRectangle |
GetSuitableBound(
SFXRectangleConstRef param
, HorizontalEnum horizontal
, VerticalEnum vertical
)
(inherits from SFYResponder)
Get the suitable region of this responder.
|
SFXMargin |
GetSuitableMargin( Void )
(inherits from SFYResponder)
Get the suitable frame margin region of this responder.
|
SFCType |
GetType( Void )
(inherits from SFYResponder)
Get the type of this responder class.
|
SFXRectangleConstRef |
GetVirtualBound( Void )
(inherits from SFYResponder)
Get the virtual region of this responder.
|
Bool |
HasFrame( Void )
(inherits from SFYResponder)
Check whether or not this responder is a content-responder.
|
Void |
Initialize( Void )
(inherits from SFYResponder)
Initialize this responder.
|
Bool |
IsBack( Void )
(inherits from SFYResponder)
Check whether or not this responder is the backmost responder among a group of the sibling responders
which match the specified search condition.
|
Bool |
IsBack(
Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Check whether or not this responder is the backmost responder among a group of the sibling responders
which match the specified search condition.
|
Bool |
IsBack(
UInt32 id
)
(inherits from SFYResponder)
Check whether or not this responder is the backmost responder among a group of the sibling responders
which match the specified search condition.
|
Bool |
IsBack(
UInt32 id
, Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Check whether or not this responder is the backmost responder among a group of the sibling responders
which match the specified search condition.
|
Bool |
IsFrame( Void )
(inherits from SFYResponder)
Check whether or not this responder is an attachment-frame.
|
Bool |
IsFront( Void )
(inherits from SFYResponder)
Check whether or not this responder is the foremost responder among a group of the sibling responders
which match the specified search condition.
|
Bool |
IsFront(
Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Check whether or not this responder is the foremost responder among a group of the sibling responders
which match the specified search condition.
|
Bool |
IsFront(
UInt32 id
)
(inherits from SFYResponder)
Check whether or not this responder is the foremost responder among a group of the sibling responders
which match the specified search condition.
|
Bool |
IsFront(
UInt32 id
, Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Check whether or not this responder is the foremost responder among a group of the sibling responders
which match the specified search condition.
|
Bool |
IsNthBackward(
SInt32 index
)
(inherits from SFYResponder)
Check whether or not this responder is at the specified position from the back side among a group of the sibling responders
which match the specified search condition.
|
Bool |
IsNthBackward(
SInt32 index
, Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Check whether or not this responder is at the specified position from the back side among a group of the sibling responders
which match the specified search condition.
|
Bool |
IsNthBackward(
SInt32 index
, UInt32 id
)
(inherits from SFYResponder)
Check whether or not this responder is at the specified position from the back side among a group of the sibling responders
which match the specified search condition.
|
Bool |
IsNthBackward(
SInt32 index
, UInt32 id
, Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Check whether or not this responder is at the specified position from the back side among a group of the sibling responders
which match the specified search condition.
|
Bool |
IsNthForward(
SInt32 index
)
(inherits from SFYResponder)
Check whether or not this responder is at the specified position from the front side among a group of the sibling responders
which match the specified search condition.
|
Bool |
IsNthForward(
SInt32 index
, Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Check whether or not this responder is at the specified position from the front side among a group of the sibling responders
which match the specified search condition.
|
Bool |
IsNthForward(
SInt32 index
, UInt32 id
)
(inherits from SFYResponder)
Check whether or not this responder is at the specified position from the front side among a group of the sibling responders
which match the specified search condition.
|
Bool |
IsNthForward(
SInt32 index
, UInt32 id
, Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Check whether or not this responder is at the specified position from the front side among a group of the sibling responders
which match the specified search condition.
|
Bool |
IsRoot( Void )
(inherits from SFYResponder)
Check whether or not this responder is the root responder.
|
SFCError |
Recover( Void )
(inherits from SFYResponder)
Recover the intersection region between this responder and the responder space by using the saved bitmap to restore the device bitmap.
|
SFCError |
RegisterHandler(
SFXEventRangeConstRef range
, SFYHandler::RuleRecConstRef rule
)
(inherits from SFYResponder)
Register specified handlers into this responder.
|
SFCError |
RegisterHandler(
SFXEventRangeConstRef range
, SFYHandler::HandlerSPP spp
, VoidPtr reference
)
(inherits from SFYResponder)
Register specified handlers into this responder.
|
SFCError |
RegisterHandler(
SFXEventRangeConstPtr range
, SFYHandler::RuleRecConstPtr rule
, SInt32 length
)
(inherits from SFYResponder)
Register specified handlers into this responder.
|
SFCError |
RegisterHandler(
SFXEventRangeConstPtr range
, SFYHandler::HandlerSPPConstPtr spp
, VoidPtrConstPtr reference
, SInt32 length
)
(inherits from SFYResponder)
Register specified handlers into this responder.
|
SFCError |
RegisterTracer(
SFXEventRangeConstRef range
, SFYTracer::RuleRecConstRef rule
)
(inherits from SFYResponder)
Register specified dispatching rules into the tracer of this responder.
|
SFCError |
RegisterTracer(
SFXEventRangeConstRef range
, SFYTracer::OrderEnum order
, SFYTracer::StateEnum state
, Bool overload
)
(inherits from SFYResponder)
Register specified dispatching rules into the tracer of this responder.
|
SFCError |
RegisterTracer(
SFXEventRangeConstPtr range
, SFYTracer::RuleRecConstPtr rule
, SInt32 length
)
(inherits from SFYResponder)
Register specified dispatching rules into the tracer of this responder.
|
SFCError |
RegisterTracer(
SFXEventRangeConstPtr range
, SFYTracer::OrderEnumConstPtr order
, SFYTracer::StateEnumConstPtr state
, BoolConstPtr overload
, SInt32 length
)
(inherits from SFYResponder)
Register specified dispatching rules into the tracer of this responder.
|
SFCError |
Render(
Bool force = false
)
(inherits from SFYResponder)
Boot up the renderer for redrawing this responder and its descendant responders.
|
Void |
SetBackgroundColor(
SFXRGBColorConstRef param
)
(inherits from SFYWidget)
Set the background color to the specified value.
|
Void |
SetDistributer(
SFYDistributerPtr param
)
(inherits from SFYResponder)
Bind this responder with the specified distributer.
|
SFCError |
SetFrame(
SFYResponderSmpConstRef param
)
(inherits from SFYResponder)
Attach the specified frame to this frame.
|
Void |
SetID(
UInt32 param
)
(inherits from SFYResponder)
Set the ID value of this responder to the specified value.
|
SFCError |
SetParent(
SFYResponderSmpConstRef param
)
(inherits from SFYResponder)
Set the parent responder of this responder to the specified responder.
|
Void |
SetProperty(
Bool transparent
)
(inherits from SFYResponder)
Set the property of this responder to the specified value.
|
Void |
SetPropertyTransparent(
Bool param
)
(inherits from SFYResponder)
Set the transparency attribute of this responder to the specified value.
|
Void |
SetRealBound(
SFXRectangleConstRef param
)
(inherits from SFYResponder)
Set the real region of this responder to the specified region.
|
Void |
SetReference(
VoidPtr param
)
(inherits from SFYResponder)
Set the reference value of this responder to the specified value.
|
Void |
SetRenderer(
SFYRendererPtr param
)
(inherits from SFYResponder)
Bind this responder with the specified renderer.
|
Void |
SetState(
Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Set all states of this responder to specified values together.
|
Void |
SetStateActive(
Bool param
)
(inherits from SFYResponder)
Set the active state of this responder to the specified value.
|
Void |
SetStateEnable(
Bool param
)
(inherits from SFYResponder)
Set the enable state of this responder to the specified value.
|
Void |
SetStateFocus(
Bool param
)
(inherits from SFYResponder)
Set the focus state of this responder to the specified value.
|
Void |
SetStateVisible(
Bool param
)
(inherits from SFYResponder)
Set the visible state of this responder to the specified value.
|
Void |
SetVirtualBound(
SFXRectangleConstRef param
)
(inherits from SFYResponder)
Set the virtual region of this responder to the specified value.
|
SFCError |
Snapshot(
SFBBitmapSmpConstRef bitmap
)
(inherits from SFYResponder)
Get a snapshot image of the intersection region between this responder and the responder space by using the saved bitmap.
|
Void |
Terminate( Void )
(inherits from SFYResponder)
Terminate this responder.
|
Void |
ToBack( Void )
(inherits from SFYResponder)
Move this responder to the backmost position among a group of the sibling responders
which match the specified search condition.
|
Void |
ToBack(
Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Move this responder to the backmost position among a group of the sibling responders
which match the specified search condition.
|
Void |
ToBack(
UInt32 id
)
(inherits from SFYResponder)
Move this responder to the backmost position among a group of the sibling responders
which match the specified search condition.
|
Void |
ToBack(
UInt32 id
, Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Move this responder to the backmost position among a group of the sibling responders
which match the specified search condition.
|
Void |
ToFront( Void )
(inherits from SFYResponder)
Move this responder to the foremost position among a group of the sibling responders
which match the specified search condition.
|
Void |
ToFront(
Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Move this responder to the foremost position among a group of the sibling responders
which match the specified search condition.
|
Void |
ToFront(
UInt32 id
)
(inherits from SFYResponder)
Move this responder to the foremost position among a group of the sibling responders
which match the specified search condition.
|
Void |
ToFront(
UInt32 id
, Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Move this responder to the foremost position among a group of the sibling responders
which match the specified search condition.
|
Void |
ToNthBackward(
SInt32 index
)
(inherits from SFYResponder)
Move this responder to the specified position from the back side among a group of the sibling responders
which match the specified search condition.
|
Void |
ToNthBackward(
SInt32 index
, Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Move this responder to the specified position from the back side among a group of the sibling responders
which match the specified search condition.
|
Void |
ToNthBackward(
SInt32 index
, UInt32 id
)
(inherits from SFYResponder)
Move this responder to the specified position from the back side among a group of the sibling responders
which match the specified search condition.
|
Void |
ToNthBackward(
SInt32 index
, UInt32 id
, Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Move this responder to the specified position from the back side among a group of the sibling responders
which match the specified search condition.
|
Void |
ToNthForward(
SInt32 index
)
(inherits from SFYResponder)
Move this responder to the specified position from the front side among a group of the sibling responders
which match the specified search condition.
|
Void |
ToNthForward(
SInt32 index
, Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Move this responder to the specified position from the front side among a group of the sibling responders
which match the specified search condition.
|
Void |
ToNthForward(
SInt32 index
, UInt32 id
)
(inherits from SFYResponder)
Move this responder to the specified position from the front side among a group of the sibling responders
which match the specified search condition.
|
Void |
ToNthForward(
SInt32 index
, UInt32 id
, Bool visible
, Bool active
, Bool enable
, Bool focus
)
(inherits from SFYResponder)
Move this responder to the specified position from the front side among a group of the sibling responders
which match the specified search condition.
|
Void |
UnregisterHandler(
SFXEventRangeConstRef range
, SFYHandler::RuleRecConstRef rule
)
(inherits from SFYResponder)
Unregister the handler from this responder which matches the specified condition.
|
Void |
UnregisterHandler(
SFXEventRangeConstRef range
, SFYHandler::HandlerSPP spp
, VoidPtr reference
)
(inherits from SFYResponder)
Unregister the handler from this responder which matches the specified condition.
|
Void |
UnregisterHandler(
SFXEventRangeConstPtr range
, SFYHandler::RuleRecConstPtr rule
, SInt32 length
)
(inherits from SFYResponder)
Unregister the handler from this responder which matches the specified condition.
|
Void |
UnregisterHandler(
SFXEventRangeConstPtr range
, SFYHandler::HandlerSPPConstPtr spp
, VoidPtrConstPtr reference
, SInt32 length
)
(inherits from SFYResponder)
Unregister the handler from this responder which matches the specified condition.
|
Void |
UnregisterTracer(
SFXEventRangeConstRef range
)
(inherits from SFYResponder)
Unregister the dispatching rule from the tracer of this responder which matches the specified condition.
|
Void |
UnregisterTracer(
SFXEventRangeConstPtr range
, SInt32 length
)
(inherits from SFYResponder)
Unregister the dispatching rule from the tracer of this responder which matches the specified condition.
|
T const & |
static_catch(
Void
)
(inherits from static_exception)
Get the current exception.
|
Protected Functions | |
---|---|
SFYSingleTextWidgetSmpConstRef |
GetWidget( Void ) Get the widget which is contained internally for drawing a single text.
|
Void |
HandleBoundOptimize(
SFXRectanglePtr rectangle
)
This function will be called when the (SFEVT_RESPONDER_BOUND, SFP16_BOUND_OPTIMIZE) event is received.
[Calculate the suitable rectangle size of this responder within the specified hint rectangle.]
|
Void |
HandleBoundReal( Void )
This function will be called when the (SFEVT_RESPONDER_BOUND, SFP16_BOUND_REAL) event is received.
[Perform the processing when the real region is changed.]
|
Void |
HandleBoundRequest(
SFXRectanglePtr rectangle
)
This function will be called when the (SFEVT_RESPONDER_BOUND, SFP16_BOUND_REQUEST) event is received.
[Calculate the suitable rectangle size of this responder.]
|
Void |
HandleBoundVirtual( Void )
This function will be called when the (SFEVT_RESPONDER_BOUND, SFP16_BOUND_VIRTUAL) event is received.
[Perform the processing when the virtual region is changed.]
|
static SFYResponderSmp |
Factory(
SFYResponderPtr responder
, SFCErrorPtr exception = null
)
(inherits from SFYResponder)
This function is used to implement the NewInstance function.
|
SFYResponderSmp |
GetThis( Void )
(inherits from SFYResponder)
Get the smart pointer of this responder.
|
Void |
HandleBoundGlobal(
SFXRectangleConstRef rectangle
)
(inherits from SFYWidget)
This function will be called when the global region is changed.
|
Void |
HandleRenderRequest(
SFXGraphicsPtr graphics
)
(inherits from SFYWidget)
This function will be called when the (SFEVT_RESPONDER_RENDER, SFP16_RENDER_REQUEST) event is received.
[Draw this responder.]
|
Void |
Invalidate( Void )
(inherits from SFYResponder)
Register the specified redraw region of this responder.
|
Void |
Invalidate(
SFXRectangleConstRef param
)
(inherits from SFYResponder)
Register the specified redraw region of this responder.
|
Void |
InvokeBackward(
SFXEventConstRef event
, Bool overload
, BoolPtr result = null
)
(inherits from SFYResponder)
Call the handlers for the specified event from the end of the handler list registered into this responder.
|
Void |
InvokeForward(
SFXEventConstRef event
, Bool overload
, BoolPtr result = null
)
(inherits from SFYResponder)
Call the handlers for the specified event from the head of the handler list registered into this responder.
|
Void |
SetType(
SFCType param
)
(inherits from SFYResponder)
Set the Type value of this responder to the specified 4-character value.
|
Void |
static_throw(
static_exception< T > const & param
)
(inherits from static_exception)
Set an exception.
|
Void |
static_throw(
T const & param
)
(inherits from static_exception)
Set an exception.
|
Bool |
static_try(
Void
)
(inherits from static_exception)
Confirm whether or not the exception is retained.
|
Types |
---|
CodeEnum Constant that represents the SFYSingleEditWidget class.
|
DefaultEnum Constants that represent the default value for various parameters.
|
DirectionEnum Constants that represent the scroll direction.
|
HorizontalEnum Constants that represent the horizontal alignment.
|
VerticalEnum Constants that represent the vertical alignment.
|
[ protected, explicit ] SFYSingleEditWidget(Void);
This constructor performs the initializations as follows:
SFYResponder::SetType | SFYSingleEditWidget::CodeEnum | SFYResponder::SetPropertyTransparent | SFYSingleEditWidget::SetInputMode | SFYSingleEditWidget::SetMaximumLength | SFYSingleEditWidget::SetPasswordMode | SFYSingleEditWidget::GetWidget | SFYResponder::SetParent | SFYResponder::SetState | SFYSingleEditWidget::SetText | SFYSingleEditWidget::SetFont | SFYSingleEditWidget::SetTextColor | SFYSingleEditWidget::SetHorizontalAlign | SFYSingleEditWidget::SetScrollDirection | SFYSingleEditWidget::SetScrollInterval | SFYSingleEditWidget::SetScrollStep | SFYSingleEditWidget::SetVerticalAlign | SFYSingleEditWidget::SetWaitInterval | SFYSingleTextWidget::NewInstance | SFYSingleTextWidget::HorizontalEnum | SFYSingleTextWidget::VerticalEnum | SFYSingleTextWidget::DirectionEnum | SFYSingleTextWidget::DefaultEnum | SFYSingleTextWidget | SFXRGBColor | Type | Attribute | State
[ protected, virtual ] virtual ~SFYSingleEditWidget(Void);
This destructor does nothing.
[ public ] SFCError Edit(Void);
[ public, const ] AEEFont GetFont(Void);
This function gets the font.
[ public, const ] SFXSizeConstRef GetFontSize(Void);
This function gets the size of one character of the current font(the ' ' character is used).
[ public, const ] HorizontalEnum GetHorizontalAlign(Void);
Value of the horizontal alignment.
[ public, const ] AEETextInputMode GetInputMode(Void);
Text input mode.
[ public, const ] UInt16 GetMaximumLength(Void);
[ public, const ] Bool GetPasswordMode(Void);
[ public, const ] AEECLSID GetSFBMenuCtlClassID(Void);
DEPRECATED | |
---|---|
This API will be discontinued in SophiaFramework UNIVERSE 6.0. It is recommended to get the class ID by calling the SFXBaseEditor::GetSFBMenuCtlClassID function of the text input control editor, which is gotten by calling the SFYApplication::GetEditor function. |
[ public, const ] AEECLSID GetSFBTextCtlClassID(Void);
DEPRECATED | |
---|---|
This API will be discontinued in SophiaFramework UNIVERSE 6.0. It is recommended to get the class ID by calling the SFXBaseEditor::GetSFBTextCtlClassID function of the text input control editor, which is gotten by calling the SFYApplication::GetEditor function. |
[ public, const ] DirectionEnum GetScrollDirection(Void);
Scroll direction set with the SFYSingleEditWidget::SetScrollDirection function.
[ public, const ] UInt32 GetScrollInterval(Void);
Scroll-interval set with the SFYSingleEditWidget::SetScrollInterval function. [milliseconds]
[ public, const ] SInt16 GetScrollStep(Void);
Scroll-step set with the SFYSingleEditWidget::SetScrollStep function. [pixels]
[ public, const ] SFXWideStringConstRef GetText(Void);
[ public, const ] SFXRGBColorConstRef GetTextColor(Void);
[ public, const ] SFXSizeConstRef GetTextSize(Void);
This function gets the size of the text when it will be drawn with the current font.
[ public, const ] VerticalEnum GetVerticalAlign(Void);
Value of the vertical alignment.
[ public, const ] UInt32 GetWaitInterval(Void);
Waiting time to start the scroll set with the SFYSingleEditWidget::SetWaitInterval function. [milliseconds]
[ protected, const ] SFYSingleTextWidgetSmpConstRef GetWidget(Void);
This function gets the instance of the SFYSingleTextWidget class, which is contained as a child responder internally for drawing a single text.
The drawing of the single text is delegated to the SFYSingleTextWidget class.
[ protected, virtual, const ] Void HandleBoundOptimize( SFXRectanglePtr rectangle // hint region and calculated region );
This function will be called when the region event [SFXEvent(SFEVT_RESPONDER_BOUND, SFP16_BOUND_OPTIMIZE, rectangle)] is received.
This function calculates the suitable rectangle size of this responder within the specified hint rectangle[i.e., rectangle element (P32 parameter) of the region event].
The suitable rectangle size is stored into the size element of the rectangle argument as a result of calculation. It is recommended not to change the origin of the rectangle argument in this function.
Region event[(SFEVT_RESPONDER_BOUND, SFP16_BOUND_OPTIMIZE) event] | |
---|---|
If the rectangle argument of the hint region is specified, the SFYResponder::GetSuitableBound function will send the region event [SFXEvent(SFEVT_RESPONDER_BOUND, SFP16_BOUND_OPTIMIZE, rectangle)] to this responder. Then, the SFYWidget::HandleBoundOptimize virtual function will be called. The rectangle element (P32 parameter) of the region event is set to the hint region as an initial value. |
Internal implementation of the SFYSingleEditWidget::HandleBoundOptimize function is as follows:
SFYSingleTextWidgetSmp _widget; /*protected virtual */Void SFYSingleEditWidget::HandleBoundOptimize(SFXRectanglePtr rectangle) const { rectangle->SetSize(_widget->GetSuitableBound(*rectangle).GetSize()); return; }// SFYSingleEditWidget::HandleBoundOptimize //
SFYResponder::GetSuitableBound | SFYSingleTextWidget::HandleBoundOptimize | SFYSingleTextWidget | SFXEvent | Region Event[SFEVT_RESPONDER_BOUND] | Handler for the Region Event[XANDLER_DECLARE_VOIDBOUND]
[ protected, virtual ] Void HandleBoundReal(Void);
This function will be called when the (SFEVT_RESPONDER_BOUND, SFP16_BOUND_REAL) event is received.
In case you want to perform your own processing when the real region is updated, override this function.
The default implementation is to equalize the virtual region with the real region.
About the virtual region | |
---|---|
In this class, it is recommended to equalize the virtual region with the real region for the intuitive text alignment or scroll. For instance, though all the text is not displayed, the text will not start to scroll even if the SFYSingleTextWidget::StartScroll function is called when the following relation stands up. [Width of virtual region] ≧ [Width of text] > [Width of real region]
|
Sending the (SFEVT_RESPONDER_BOUND, SFP16_BOUND_REAL) event | |
---|---|
The (SFEVT_RESPONDER_BOUND, SFP16_BOUND_REAL) event will occur when the real region is changed by calling the SFYResponder::SetRealBound function. |
Processing when the real region is changed | |
---|---|
Other than overriding this virtual function, there is another method to define and implement the handler for the region event[XANDLER_DECLARE_VOIDBOUND], and register it into the responder. In the processing when the real region is updated, this virtual function is executed first, and next the handlers for the region event are executed in the registered order. In almost all cases, the method to override this virtual function is adopted since defining, implementing and registering the handler for the region event can be omitted. |
Internal implementation of the SFYSingleEditWidget::HandleBoundReal function is as follows:
/*protected virtual */Void SFYSingleEditWidget::HandleBoundReal(Void) { SetVirtualBound(SFXRectangle(SFXGrid::ZeroInstance(), GetRealBound().GetSize())); return; }// SFYSingleEditWidget::HandleBoundReal //
SFYResponder::SetRealBound | SFYSingleTextWidget::HandleBoundReal | Region Event[SFEVT_RESPONDER_BOUND] | Handler for the Region Event[XANDLER_DECLARE_VOIDBOUND] | Real Region | Virtual Region | Local Region
[ protected, virtual, const ] Void HandleBoundRequest( SFXRectanglePtr rectangle // calculated region );
This function will be called when the region event [SFXEvent(SFEVT_RESPONDER_BOUND, SFP16_BOUND_REQUEST, rectangle)] is received.
This function calculates the suitable rectangle size of this responder.
The suitable rectangle size is stored into the size element of the rectangle argument as a result of calculation. It is recommended not to change the origin element of the rectangle argument within this function.
Region event[(SFEVT_RESPONDER_BOUND, SFP16_BOUND_REQUEST) event] | |||||
---|---|---|---|---|---|
If the rectangle argument of the hint region is not specified, the SFYResponder::GetSuitableBound function will send the region event [SFXEvent(SFEVT_RESPONDER_BOUND, SFP16_BOUND_REQUEST, rectangle)] to this responder. Then, the SFYWidget::HandleBoundRequest virtual function will be called. The rectangle element (P32 parameter) of the region event is set to the real region as an initial value.
|
Internal implementation of the SFYSingleEditWidget::HandleBoundRequest function is as follows:
SFYSingleTextWidgetSmp _widget; /*protected virtual */Void SFYSingleEditWidget::HandleBoundRequest(SFXRectanglePtr rectangle) const { rectangle->SetSize(_widget->GetSuitableBound().GetSize()); return; }// SFYSingleEditWidget::HandleBoundRequest //
SFYResponder::GetSuitableBound | SFYSingleTextWidget::HandleBoundRequest | SFYSingleTextWidget | SFXEvent | Real Region Region Event[SFEVT_RESPONDER_BOUND] | Handler for the Region Event[XANDLER_DECLARE_VOIDBOUND]
[ protected, virtual ] Void HandleBoundVirtual(Void);
This function will be called when the (SFEVT_RESPONDER_BOUND, SFP16_BOUND_VIRTUAL) event is received.
In case you want to perform your own processing when the virtual region is changed, override this virtual function.
The default implementation is to equalize the real region with the new local region and relocate this responder to fit into the new virtual region.
About the virtual region | |
---|---|
In this class, it is recommended to equalize the virtual region with the real region for the intuitive text alignment or scroll. For instance, though all the text is not displayed, the text will not start to scroll even if the SFYSingleTextWidget::StartScroll function is called when the following relation stands up. [Width of virtual region] ≧ [Width of text] > [Width of real region]
|
Sending the (SFEVT_RESPONDER_BOUND, SFP16_BOUND_VIRTUAL) event | |
---|---|
The (SFEVT_RESPONDER_BOUND, SFP16_BOUND_VIRTUAL) event will occur when the virtual region is changed by calling the SFYResponder::SetRealBound or SFYResponder::SetVirtualBound function. |
Another method when the virtual region is changed | |
---|---|
Other than overriding this virtual function, it is possible to define and implement the handler for region event[XANDLER_DECLARE_VOIDBOUND], and register it into the responder. In the processing when the virtual region is updated, this virtual function is executed first, and next the handlers for region event are executed in the registered order. In almost all cases, the method to override this virtual function is adopted since defining, implementing and registering the handler for region event can be omitted. |
Internal implementation of the SFYSingleEditWidget::HandleBoundVirtual function is as follows:
SFYSingleTextWidgetSmp _widget; /*protected virtual */Void SFYSingleEditWidget::HandleBoundVirtual(Void) { Relocate(); return; }// SFYSingleEditWidget::HandleBoundVirtual // /*private */Void SFYSingleEditWidget::Relocate(Void) { _widget->SetRealBound(GetLocalBound()); return; }// SFYSingleEditWidget::Relocate //
SFYSingleEditWidget::SetText | SFYResponder::SetRealBound | SFYResponder::SetVirtualBound | SFYSingleTextWidget | Region Event[SFEVT_RESPONDER_BOUND] | Handler for the Region Event[XANDLER_DECLARE_VOIDBOUND] | Virtual Region | Real Region | Local Region
[ public, static ] SFYSingleEditWidgetSmp NewInstance( SFCErrorPtr exception = null // error value );
Return the error value generated inside the function.
This function creates a new instance of this responder class.
If succeeds, a not null pointer will be returned, and the "exception" argument is SFERR_NO_ERROR. If fails such as insufficient memory, a null pointer will be returned, and the "exception" argument holds the error value.
The code to create a new instance of this responder class is as follows:
SFYSingleEditWidgetSmp _singleeditwidget;
SFCError error;
if ((_singleeditwidget = SFYSingleEditWidget::NewInstance(&error)) != null) {
...
}
Default: AEE_FONT_NORMAL
[ public ] Void SetHorizontalAlign( HorizontalEnum param // value to set );
This function sets the horizontal alignment to the specified value.
Default: SFYSingleTextWidget::DEFAULT_HORIZONTAL
For the value of SFYSingleTextWidget::DEFAULT_HORIZONTAL, refer to SFYSingleTextWidget::HorizontalEnum.
SFYSingleEditWidget::GetHorizontalAlign | SFYSingleEditWidget::HorizontalEnum | SFYSingleTextWidget::HorizontalEnum
[ public ] Void SetInputMode( AEETextInputMode param // text input mode );
This function sets the text input mode for the text input control of the standard BREW to the specified value. For more derail, refer to ITEXTCTL_SetInputMode() and AEETextInputMode of the BREW reference.
Default: AEE_TM_CURRENT(currently active input mode).
SFYSingleEditWidget::GetInputMode | SFXEditProperty::SetInputMode | BREW API ITEXTCTL_SetInputMode | BREW API AEETextInputMode
[ public ] SFCError SetMaximumLength( UInt16 param // maximum number of characters for text input );
This function sets the maximum number of characters for the text input control of the standard BREW to the specified value. For more derail, refer to ITEXTCTL_SetMaxSize() of the BREW reference.
Default: SINT16_MAXIMUM - 1.
SFYSingleEditWidget::GetMaximumLength | SFXEditProperty::SetMaximumLength | BREW API ITEXTCTL_SetMaxSize
[ public ] SFCError SetPasswordMode( Bool param // value to set(If password mode, true; Otherwise, false) );
If "true" is specified as an argument, TP_PASSWORD is set to the property of the text input control of the standard BREW. At this time, every input character is displayed as "*". And the actual input string is managed in the buffer. For more derail, refer to ITEXTCTL_SetProperties() and AEE ITextCtl Properties of the BREW reference.
Default: false
SFYSingleEditWidget::GetPasswordMode | SFXEditProperty::SetPasswordMode | BREW API ITEXTCTL_SetProperties | BREW API AEE ITextCtl Properties
DEPRECATED | |
---|---|
This API will be discontinued in SophiaFramework UNIVERSE 6.0. It is recommended to set the class ID by calling the SFXBaseEditor::SetSFBMenuCtlClassID function of the text input control editor, which is gotten by calling the SFYApplication::GetEditor function. |
DEPRECATED | |
---|---|
This API will be discontinued in SophiaFramework UNIVERSE 6.0. It is recommended to set the class ID by calling the SFXBaseEditor::SetSFBTextCtlClassID function of the text input control editor, which is gotten by calling the SFYApplication::GetEditor function. |
[ public ] Void SetScrollDirection( DirectionEnum param // value to set );
This function sets the scroll direction to the specified value.
Default: SFYSingleTextWidget::DEFAULT_DIRECTION
For the value of SFYSingleTextWidget::DEFAULT_DIRECTION, refer to SFYSingleTextWidget::DirectionEnum.
SFYSingleEditWidget::GetScrollDirection | SFYSingleEditWidget::DirectionEnum | SFYSingleTextWidget::DirectionEnum
Default: SFYSingleTextWidget::DEFAULT_SCROLL [milliseconds]
For the value of SFYSingleTextWidget::DEFAULT_SCROLL, refer to SFYSingleTextWidget::DefaultEnum.
SFYSingleEditWidget::GetScrollInterval | SFYSingleEditWidget::DefaultEnum | SFYSingleTextWidget::DefaultEnum
This function sets the number of pixels of each scroll. If "-1"(this is default value) is set, the scroll-step will be set to the width of the " " character of the currently used font.
Default: SFYSingleTextWidget::DEFAULT_STEP [pixels]
For the value of SFYSingleTextWidget::DEFAULT_STEP, refer to SFYSingleTextWidget::DefaultEnum.
SFYSingleEditWidget::GetScrollStep | SFYSingleEditWidget::DefaultEnum | SFYSingleTextWidget::DefaultEnum
[ public ] SFCError SetText( SFXPathConstRef path // path of resource file UInt16 id // resource ID );
[ public ] SFCError SetText( SFXWideStringConstRef param // text );
This function sets the text to be displayed to the specified value.
The value of string is set directly in the argument, or read from the resource file.
SFYSingleEditWidget::GetText | SFYSingleEditWidget::SetHorizontalAlign | SFYSingleEditWidget::SetVerticalAlign SFYSingleEditWidget::SetTextColor | SFYSingleEditWidget::SetFont
[ public ] Void SetTextColor( SFXRGBColorConstRef param // value to set );
Default: SFXRGBColor(0x00, 0x00, 0x00, 0x00)[black color]
In the "inactive" state, the text will be drawn in the color of which each RGB value is subtracted 0x44 from the color set with this function if the brightness of this color is greater than 0x7F. Otherwise it will be drawn in the color of which each RGB value is added 0x44 on the color set with this function.
The brightness of color can be obtained by calling the SFXRGBColor::GetBrightness function.
SFYSingleEditWidget::GetTextColor | SFXRGBColor::GetBrightness | SFXRGBColor | State
[ public ] Void SetVerticalAlign( VerticalEnum param // value to set );
This function sets the vertical alignment to the specified value.
Default: SFYSingleTextWidget::DEFAULT_VERTICAL
For the value of SFYSingleTextWidget::DEFAULT_VERTICAL, refer to SFYSingleTextWidget::VerticalEnum.
SFYSingleEditWidget::GetVerticalAlign | SFYSingleEditWidget::VerticalEnum | SFYSingleTextWidget::VerticalEnum
Default: SFYSingleTextWidget::DEFAULT_WAIT [milliseconds]
For the value of SFYSingleTextWidget::DEFAULT_WAIT, refer to SFYSingleTextWidget::DefaultEnum.
SFYSingleEditWidget::GetWaitInterval | SFYSingleEditWidget::DefaultEnum | SFYSingleTextWidget::DefaultEnum
[ public ] Void StartScroll(Void);
If the width of the text is greater than that of the virtual region, the text will start to scroll.
Otherwise, the text will not scroll.
Though the SFEVT_APP_SUSPEND event and the SFEVT_APP_RESUME event will be automatically handled, the behaviour of this function is not defined when called between the SFEVT_APP_SUSPEND event and the SFEVT_APP_RESUME event.
[ public ] Void StopScroll(Void);
enum CodeEnum { CODE_TYPE = four_char_code('+', 's', 'e', 'd') }; SFMTYPEDEFTYPE(CodeEnum)
enum DefaultEnum { DEFAULT_WAIT = SFYSingleTextWidget::DEFAULT_WAIT, // waiting time to start the scroll [milliseconds] DEFAULT_SCROLL = SFYSingleTextWidget::DEFAULT_SCROLL, // scroll-interval [milliseconds] DEFAULT_STEP = SFYSingleTextWidget::DEFAULT_STEP // scroll-step [pixels] }; SFMTYPEDEFTYPE(DefaultEnum)
enum DirectionEnum { DIRECTION_LEFT = SFYSingleTextWidget::DIRECTION_LEFT, // scroll left DIRECTION_RIGHT = SFYSingleTextWidget::DIRECTION_RIGHT , // scroll right DEFAULT_DIRECTION = SFYSingleTextWidget::DEFAULT_DIRECTION // Default: scroll left }; SFMTYPEDEFTYPE(DirectionEnum)
enum HorizontalEnum { HORIZONTAL_LEFT = SFYSingleTextWidget::HORIZONTAL_LEFT, // left-aligned HORIZONTAL_CENTER = SFYSingleTextWidget::HORIZONTAL_CENTER, // center-aligned HORIZONTAL_RIGHT = SFYSingleTextWidget::HORIZONTAL_RIGHT, // right-aligned DEFAULT_HORIZONTAL = SFYSingleTextWidget::DEFAULT_HORIZONTAL // default: center-aligned }; SFMTYPEDEFTYPE(HorizontalEnum)
enum VerticalEnum { VERTICAL_TOP = SFYSingleTextWidget::VERTICAL_TOP, // top-aligned VERTICAL_MIDDLE = SFYSingleTextWidget::VERTICAL_MIDDLE, // center-aligned VERTICAL_BOTTOM = SFYSingleTextWidget::VERTICAL_BOTTOM, // bottom-aligned DEFAULT_VERTICAL = SFYSingleTextWidget::DEFAULT_VERTICAL // default: center-aligned }; SFMTYPEDEFTYPE(VerticalEnum)
Copyright(c) 2002 - 2024 Sophia Cradle Incorporated All Rights Reserved. |