SophiaFramework UNIVERSE 5.3 |
#include <SFZRadiobuttonControl.h.hpp>
class SFZRadiobuttonControl : public SFYRadiobuttonControl;
SFMTYPEDEFRESPONDER(SFZRadiobuttonControl)
How to use
Radio button control(SFZRadiobuttonControl) will receive the result event [SFXEvent(SFEVT_RESPONDER_RESULT, SFP16_RESULT_OK, SFYControl::GetCurrentValue())] if the operation key set with the SFYButtonControl::SetOperateKey function is released after pressed.
Note | |
---|---|
This result event will occur in the SFYRadiobuttonControl::HandleOperateKeyRelease function. |
If there are more characters than can be displayed in the text region of a radio button control, this control will start to scroll automatically when it is in the focused state.
By grouping more than one radio button control, exclusive choice is automatically implemented.
Structure of the radio button control
In the default implementation, the radio button control is drawn as below depending on the state.
Figure 370. Expanded figure of the radio button control[In the "active" or "enable" state, when not pressed]
Default value of the transparency attribute | |
---|---|
Since the transparency attribute of this class is set to "true" by default, the background will not be filled in the color set with the SFYWidget::SetBackgroundColor function unless this transparency attribute is set to "false". |
Radio Button Control [SFZRadiobuttonControl] | State | SFYControl | SFYButtonControl | SFYCheckboxControl | SFYRadiobuttonControl | SFYSingleTextWidget
Constructor/Destructor |
---|
SFZRadiobuttonControl( Void ) Constructor of the SFZRadiobuttonControl class.
|
~SFZRadiobuttonControl( Void ) Destructor of the SFZRadiobuttonControl class.
|
Public Functions | |
---|---|
AEEFont |
GetFont( Void ) Get the font.
|
HorizontalEnum |
GetHorizontalAlign( Void ) Get the horizontal alignment.
|
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.
|
VerticalEnum |
GetVerticalAlign( Void ) Get the vertical alignment.
|
UInt32 |
GetWaitInterval( Void ) Get the waiting time to start to scroll. [milliseconds]
|
static SFZRadiobuttonControlSmp |
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 |
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.
|
SFXBevelColorConstRef |
GetButtonColor( Void )
(inherits from SFYButtonControl)
Get the bevel color of bevel region within this button.
|
SFXRGBColorConstRef |
GetCheckmarkColor( Void )
(inherits from SFYCheckboxControl)
Get the color of check mark of this check box control.
|
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.
|
SInt32 |
GetCurrentValue( Void )
(inherits from SFYControl)
Get the current value of this control.
|
SFYDistributerPtr |
GetDistributer( Void )
(inherits from SFYResponder)
Get the distributer bound with this responder.
|
SFXBevelColorConstRef |
GetFocusColor( Void )
(inherits from SFYButtonControl)
Get the bevel color of frame margin of this button control in the "focus" state.
|
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 |
GetMaximumValue( Void )
(inherits from SFYControl)
Get the maximum value of this control.
|
SInt32 |
GetMinimumValue( Void )
(inherits from SFYControl)
Get the minimum value of this control.
|
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.
|
AVKType |
GetOperateKey( Void )
(inherits from SFYButtonControl)
Get the operation key of the button control.
|
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.
|
SFXRGBColorConstRef |
GetShadowColor( Void )
(inherits from SFYButtonControl)
Get the shadow color of this button control.
|
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 |
GetStatePress( Void )
(inherits from SFYButtonControl)
Get the value of flag indicating whether or not this button is pressed.
|
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.
|
Void |
Group(
SFYRadiobuttonControlSmpConstRef param
)
(inherits from SFYRadiobuttonControl)
Register this radio button control into the specified group.
|
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 |
SetButtonColor(
SFXBevelColorConstRef param
)
(inherits from SFYButtonControl)
Set the bevel color of bevel region within this button to the specified value.
|
Void |
SetCheckmarkColor(
SFXRGBColorConstRef param
)
(inherits from SFYCheckboxControl)
Set the color of the check mark to the specified value.
|
Void |
SetCurrentValue(
SInt32 param
)
(inherits from SFYControl)
Set the current value of this control to the specified value.
|
Void |
SetDistributer(
SFYDistributerPtr param
)
(inherits from SFYResponder)
Bind this responder with the specified distributer.
|
Void |
SetFocusColor(
SFXBevelColorConstRef param
)
(inherits from SFYButtonControl)
Set the bevel color of frame margin of this button control in the "focus" state to the specified value.
|
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.
|
Void |
SetMaximumValue(
SInt32 param
)
(inherits from SFYControl)
Set the maximum value of the control to the specified value.
|
Void |
SetMinimumValue(
SInt32 param
)
(inherits from SFYControl)
Set the minimum value of the control to the specified value.
|
Void |
SetOperateKey(
AVKType param
)
(inherits from SFYButtonControl)
Set the operation key of this button control 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 |
SetShadowColor(
SFXRGBColorConstRef param
)
(inherits from SFYButtonControl)
Set the shadow color of this button control to the specified value.
|
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 |
SetStatePress(
Bool param
)
(inherits from SFYButtonControl)
Set the flag indicating whether or not this button is pressed 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 |
Ungroup( Void )
(inherits from SFYRadiobuttonControl)
Unregister this radio button from the group.
|
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 | |
---|---|
SFXRectangleConstRef |
GetButtonBound( Void ) Get the button region of this radio button control.
|
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 |
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.]
|
Void |
HandleOperateKey( Void ) This function will be called when the SFEVT_KEY event of the operation key is received.
|
Void |
HandleRenderRequest(
SFXGraphicsPtr graphics
)
This function will be called when the (SFEVT_RESPONDER_RENDER, SFP16_RENDER_REQUEST) event is received.
[Draw this responder.]
|
Void |
DrawButton(
SFXGraphicsPtr graphics
, SFXRectangleConstRef rectangle
)
(inherits from SFYButtonControl)
Draw the bevel region of this button control.
|
Void |
DrawButton13(
SFXGraphicsPtr graphics
, SFXGridConstRef grid
)
(inherits from SFYRadiobuttonControl)
Draw the 13x13 pixel button of this radio button.
|
Void |
DrawButton27(
SFXGraphicsPtr graphics
, SFXGridConstRef grid
)
(inherits from SFYRadiobuttonControl)
Draw the 27x27 pixel button of this radio button.
|
Void |
DrawCheckmark05(
SFXGraphicsPtr graphics
, SFXGridConstRef grid
)
(inherits from SFYRadiobuttonControl)
Draw the 5x5 pixel check mark of this radio button.
|
Void |
DrawCheckmark09(
SFXGraphicsPtr graphics
, SFXGridConstRef grid
)
(inherits from SFYCheckboxControl)
Draw the 9x9 pixel check mark of this check box control.
|
Void |
DrawCheckmark11(
SFXGraphicsPtr graphics
, SFXGridConstRef grid
)
(inherits from SFYRadiobuttonControl)
Draw the 11x11 pixel check mark of this radio button.
|
Void |
DrawCheckmark21(
SFXGraphicsPtr graphics
, SFXGridConstRef grid
)
(inherits from SFYCheckboxControl)
Draw the 21x21 pixel check mark of this check box control.
|
SFXRectangle |
DrawShadow(
SFXGraphicsPtr graphics
, SFXRectangleConstRef rectangle
)
(inherits from SFYButtonControl)
Draw the shadow region of this button control.
|
SFXGrid |
DrawShadow14(
SFXGraphicsPtr graphics
, SFXGridConstRef grid
)
(inherits from SFYRadiobuttonControl)
Draw the 14x14 pixel shadow of this radio button control.
|
SFXGrid |
DrawShadow28(
SFXGraphicsPtr graphics
, SFXGridConstRef grid
)
(inherits from SFYRadiobuttonControl)
Draw the 28x28 pixel shadow of this radio button control.
|
static SFYResponderSmp |
Factory(
SFYResponderPtr responder
, SFCErrorPtr exception = null
)
(inherits from SFYResponder)
This function is used to implement the NewInstance function.
|
static SFXMarginConstRef |
GetButtonMargin( Void )
(inherits from SFYButtonControl)
Get the margin region of this button control.
|
static SFXGridConstRef |
GetPressOffset( Void )
(inherits from SFYButtonControl)
Get the press offset of this button control.
|
static SFXMarginConstRef |
GetShadowMargin( Void )
(inherits from SFYButtonControl)
Get the margin of shadow region of this button control.
|
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 |
HandleBoundReal( Void )
(inherits from SFYControl)
This function will be called when the real region is changed.
|
Void |
HandleOperateKeyPress( Void )
(inherits from SFYButtonControl)
This function will be called when the SFEVT_KEY_PRESS event of the operation key is received.
|
Void |
HandleOperateKeyRelease( Void )
(inherits from SFYRadiobuttonControl)
This function will be called when the SFEVT_KEY_RELEASE event of the operation key is received.
|
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 SFZRadiobuttonControl 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 ] SFZRadiobuttonControl(Void);
This constructor performs the initializations as follows:
Table 233. Event handler
Event | Content of the handler |
---|---|
State event[SFEVT_RESPONDER_STATE] which will occur when this responder becomes focused | Start to scroll the text. |
State event[SFEVT_RESPONDER_STATE] which will occur when this responder becomes unfocused | Stop to scroll the text. |
Note | |
---|---|
In a responder inheriting from SFZRadiobuttonControl, the corresponding handler will be called when one of the above events occurs. |
SFYResponder::SetType | SFZRadiobuttonControl::CodeEnum | SFYResponder::SetParent | SFYResponder::SetState | SFZRadiobuttonControl::SetText | SFZRadiobuttonControl::SetFont | SFZRadiobuttonControl::SetTextColor | SFZRadiobuttonControl::SetHorizontalAlign | SFZRadiobuttonControl::SetVerticalAlign | SFZRadiobuttonControl::SetScrollDirection | SFZRadiobuttonControl::SetScrollInterval | SFZRadiobuttonControl::SetScrollStep | SFZRadiobuttonControl::SetWaitInterval | SFZRadiobuttonControl::HorizontalEnum | SFZRadiobuttonControl::VerticalEnum | SFZRadiobuttonControl::DirectionEnum | SFZRadiobuttonControl::DefaultEnum | SFYSingleTextWidget::NewInstance | SFYSingleTextWidget | SFXRGBColor | Type | State | Event | State Event[SFEVT_RESPONDER_STATE]
[ protected, virtual ] virtual ~SFZRadiobuttonControl(Void);
This destructor does nothing.
[ protected, const ] SFXRectangleConstRef GetButtonBound(Void);
This function gets the button region of this radio button control.
Note | |
---|---|
The radio button control consists of the button part and the text part. |
[ public, const ] AEEFont GetFont(Void);
This function gets the font.
[ public, const ] HorizontalEnum GetHorizontalAlign(Void);
This function gets the horizontal alignment.
[ public, const ] DirectionEnum GetScrollDirection(Void);
This function gets the scroll direction.
[ public, const ] UInt32 GetScrollInterval(Void);
This function gets the scroll-interval. [milliseconds]
[ public, const ] SInt16 GetScrollStep(Void);
This function gets the scroll-step. [pixels]
[ public, const ] SFXWideStringConstRef GetText(Void);
This function gets the text.
[ public, const ] SFXRGBColorConstRef GetTextColor(Void);
This function gets the color of text.
[ public, const ] VerticalEnum GetVerticalAlign(Void);
This function gets the vertical alignment.
[ public, const ] UInt32 GetWaitInterval(Void);
This function gets the waiting time to start to scroll. [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. |
Reference: SFYSingleTextWidget::HandleBoundOptimize
Internal implementation of the SFZRadiobuttonControl::HandleBoundOptimize function is as follows:
SFYSingleTextWidgetSmp _widget; SFXRectangle _bound; /*protected virtual */Void SFZRadiobuttonControl::HandleBoundOptimize(SFXRectanglePtr rectangle) const { SFXSize size; SInt16 width; width = _bound.GetWidth() + _widget->GetFontSize().GetWidth() / 2; rectangle->Deflate(width, 0, 0, 0); size.Set(_widget->GetSuitableBound(*rectangle).GetSize()); rectangle->Inflate(width, 0, 0, 0); if (!size.IsEmpty()) { size.AddWidth(width); if (size.GetHeight() < _bound.GetHeight()) { size.SetHeight(_bound.GetHeight()); } } else { size.Set(_bound.GetSize()); } if (rectangle->GetWidth() > size.GetWidth()) { rectangle->SetWidth(size.GetWidth()); } if (rectangle->GetHeight() > size.GetHeight()) { rectangle->SetHeight(size.GetHeight()); } return; }// SFZRadiobuttonControl::HandleBoundOptimize //
SFYResponder::GetSuitableBound | SFZRadiobuttonControl::SetText | SFZRadiobuttonControl::SetFont | SFYSingleTextWidget::HandleBoundOptimize | SFXEvent | Region Event[SFEVT_RESPONDER_BOUND] | Handler for the Region Event[XANDLER_DECLARE_VOIDBOUND]
[ 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 SFZRadiobuttonControl::HandleBoundRequest function is as follows:
SFYSingleTextWidgetSmp _widget; SFXRectangle _bound; /*protected virtual */Void SFZRadiobuttonControl::HandleBoundRequest(SFXRectanglePtr rectangle) const { SFXSize size; size.Set(_widget->GetSuitableBound().GetSize()); if (!size.IsEmpty()) { size.AddWidth(_bound.GetWidth() + _widget->GetFontSize().GetWidth() / 2); if (size.GetHeight() < _bound.GetHeight()) { size.SetHeight(_bound.GetHeight()); } } else { size.Set(_bound.GetSize()); } rectangle->SetSize(size); return; }// SFZRadiobuttonControl::HandleBoundRequest //
SFYResponder::GetSuitableBound | 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 SFZRadiobuttonControl::HandleBoundVirtual function is as follows:
SFYSingleTextWidgetSmp _widget; SFXRectangle _bound; /*protected virtual */Void SFZRadiobuttonControl::HandleBoundVirtual(Void) { Relocate(); return; }// SFZRadiobuttonControl::HandleBoundVirtual // /*private */Void SFZRadiobuttonControl::Relocate(Void) { static SFXSize::AtomRecConst style[] = { {14, 14}, {28, 28} }; SFXRectangle lx; SFXRectangle widget; SFXSize font; SInt32 r0; SInt16 size; SInt16 offset; font.Set(_widget->GetFontSize()); for (r0 = 0; r0 < static_cast<SInt32>(lengthof(style)) - 1; ++r0) { if (font.GetHeight() < style[r0 + 1].height) { break; } } lx.Set(GetLocalBound()); _bound.Set(lx.GetOrigin(), style[r0]); widget.Set(lx.GetOrigin(), _widget->GetSuitableBound().GetSize()); widget.SnapLeft(_bound.GetRight() + font.GetWidth() / 2); if (widget.GetRight() > lx.GetRight()) { widget.SetRight(lx.GetRight()); } size = _bound.GetWidth(); if (!widget.IsEmpty()) { size += font.GetWidth() / 2 + widget.GetWidth(); } offset = 0; switch (_widget->GetHorizontalAlign()) { case SFYSingleTextWidget::HORIZONTAL_LEFT: offset += 0; break; case SFYSingleTextWidget::HORIZONTAL_RIGHT: offset += lx.GetWidth() - size; break; case SFYSingleTextWidget::HORIZONTAL_CENTER: default: offset += (lx.GetWidth() - size) / 2; break; } _bound.AddX(offset); widget.AddX(offset); size = ((_bound.GetHeight() > widget.GetHeight()) ? (_bound.GetHeight()) : (widget.GetHeight())); offset = 0; switch (_widget->GetVerticalAlign()) { case SFYSingleTextWidget::VERTICAL_TOP: offset += 0; break; case SFYSingleTextWidget::VERTICAL_BOTTOM: offset += lx.GetHeight() - size; break; case SFYSingleTextWidget::VERTICAL_MIDDLE: default: offset += (lx.GetHeight() - size) / 2; break; } _bound.AddY(offset + (size - _bound.GetHeight()) / 2); widget.AddY(offset + (size - widget.GetHeight()) / 2); _widget->SetRealBound(widget); return; }// SFZRadiobuttonControl::Relocate //
SFYResponder::SetRealBound | SFYResponder::SetVirtualBound | Region Event[SFEVT_RESPONDER_BOUND] | Handler for the Region Event[XANDLER_DECLARE_VOIDBOUND] | Virtual Region | Real Region | Local Region
[ protected, virtual ] Void HandleOperateKey(Void);
This function will be called when the SFEVT_KEY event(key event[SFEVT_KEY]) of the operaion key set with the SFYButtonControl::SetOperateKey function is received.
In case you want to perform your own processing, override this function.
In the default implementation, the postion of the text scrolling is initialized.
Internal implementation of the SFZRadiobuttonControl::HandleOperateKey function is as follows:
SFYSingleTextWidgetSmp _widget; /*protected virtual */Void SFZRadiobuttonControl::HandleOperateKey(Void) { _widget->StopScroll(); _widget->StartScroll(); return; }// SFZRadiobuttonControl::HandleOperateKey //
[ protected, virtual, const ] Void HandleRenderRequest( SFXGraphicsPtr graphics // graphic object );
This function will be called when the (SFEVT_RESPONDER_RENDER, SFP16_RENDER_REQUEST) event is received.
In case you want to perform your own drawing of this responder, override this function.
The default implementation is to draw this responder.
The method to darw a responder | |
---|---|
In addition to overriding this virtual function, it is possible to define and implement the handler for drawing event(drawing handler)[XANDLER_DECLARE_VOIDRENDER], and register it into the responder. Then, the overridden virtual function will be called first, and next the drawing handlers registered into the responder will be booted up in the registered order. In almost all cases, the method to override this function is used to draw the responder since there is no need to declare and register the drawing handler. |
Procedure of drawing a responder | |
---|---|
The drawing handler will be booted up when the drawing event(SFEVT_RESPONDER_RENDER) occurs. And then the drawing handler draw the responder actually. The drawing event will be sent to only the responders including the region to be redrawn out of the redraw regions registered into the renderer using the SFYResponder::InvokeBackward function after the SFYResponder::Render function boots up the renderer. Here, the SFYResponder::Render function will be called at the following situations:
If calling the SFYResponder::Render function with specifying "true" as an argument, the drawing event will be sent to all the responders to be actually displayed on the screen which are located below the responder in the responder tree, regardless of the registration of redraw region. |
Internal implementation of the SFZRadiobuttonControl::HandleRenderRequest function is as follows:
SFXRectangle _bound; /*protected virtual */Void SFZRadiobuttonControl::HandleRenderRequest(SFXGraphicsPtr graphics) const { SFXGrid grid; if (_bound.GetHeight() >= 28) { grid.Set(DrawShadow28(graphics, _bound.GetOrigin())); DrawButton27(graphics, grid); grid.Add(8, 8); DrawCheckmark11(graphics, grid); } else if (_bound.GetHeight() >= 14) { grid.Set(DrawShadow14(graphics, _bound.GetOrigin())); DrawButton13(graphics, grid); grid.Add(4, 4); DrawCheckmark05(graphics, grid); } return; }// SFZRadiobuttonControl::HandleRenderRequest //
SFYButtonControl::DrawButton | SFYButtonControl::DrawShadow | SFYCheckboxControl::SetCheckmarkColor | SFYButtonControl::SetButtonColor | SFYButtonControl::SetFocusColor | SFYButtonControl::SetShadowColor | SFYButtonControl::SetOperateKey | SFYRadiobuttonControl::DrawButton13 | SFYRadiobuttonControl::DrawButton27 | SFYRadiobuttonControl::DrawShadow14 | SFYRadiobuttonControl::DrawShadow28 | SFYRadiobuttonControl::DrawCheckmark05 | SFYRadiobuttonControl::DrawCheckmark11 | SFZRadiobuttonControl::SetText | SFZRadiobuttonControl::SetHorizontalAlign | SFZRadiobuttonControl::SetVerticalAlign | SFZRadiobuttonControl::SetFont | SFZRadiobuttonControl::SetTextColor | SFYSingleTextWidget | SFYSingleTextWidget::HandleRenderRequest | SFYResponder::Invalidate | SFYResponder::Render | SFYResponder::InvokeBackward | Drawing Event[SFEVT_RESPONDER_RENDER] | Handler for the Drawing Event[XANDLER_DECLARE_VOIDRENDER] | Rendering | State
[ public, static ] SFZRadiobuttonControlSmp 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:
SFZRadiobuttonControlSmp _radiobutton;
SFCError error;
if ((_radiobutton = SFZRadiobuttonControl::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.
SFZRadiobuttonControl::GetHorizontalAlign | SFZRadiobuttonControl::HorizontalEnum | SFYSingleTextWidget::HorizontalEnum
[ public ] Void SetScrollDirection( DirectionEnum param // value to set );
This function sets the scroll direction to the specified value.
Default: SFZRadiobuttonControl::DEFAULT_DIRECTION
For the value of SFZRadiobuttonControl::DEFAULT_DIRECTION, refer to SFZRadiobuttonControl::DirectionEnum.
Default: SFZRadiobuttonControl::DEFAULT_SCROLL [milliseconds]
For the value of SFZRadiobuttonControl::DEFAULT_SCROLL, refer to SFZRadiobuttonControl::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: SFZRadiobuttonControl::DEFAULT_STEP [pixels]
For the value of SFZRadiobuttonControl::DEFAULT_STEP, refer to SFZRadiobuttonControl::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.
SFZRadiobuttonControl::GetText | SFZRadiobuttonControl::SetHorizontalAlign | SFZRadiobuttonControl::SetVerticalAlign | SFZRadiobuttonControl::SetTextColor | SFZRadiobuttonControl::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.
[ 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.
SFZRadiobuttonControl::GetVerticalAlign | SFZRadiobuttonControl::VerticalEnum | SFYSingleTextWidget::VerticalEnum
Default: SFZRadiobuttonControl::DEFAULT_SCROLL [milliseconds]
For the value of SFZRadiobuttonControl::DEFAULT_SCROLL, refer to SFZRadiobuttonControl::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('c', 'r', 'd', 'o') }; SFMTYPEDEFTYPE(CodeEnum)
enum DefaultEnum { DEFAULT_WAIT = SFYTextWidget::DEFAULT_WAIT, // waiting time until the scrolling start DEFAULT_SCROLL = SFYTextWidget::DEFAULT_SCROLL, // moving time of the scrolling DEFAULT_STEP = SFYTextWidget::DEFAULT_STEP // moving amount of the scrolling }; SFMTYPEDEFTYPE(DefaultEnum)
enum DirectionEnum { DIRECTION_LEFT = SFYTextWidget::DIRECTION_LEFT, // scroll left DIRECTION_RIGHT = SFYTextWidget::DIRECTION_RIGHT, // scroll right DEFAULT_DIRECTION = SFYTextWidget::DEFAULT_DIRECTION // default value }; 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. |