SophiaFramework UNIVERSE 5.3 |
Constructor/Destructor |
---|
SFRFrame(
SFRResponderPtr parent
)
Constructor of the SFRFrame class.
|
~SFRFrame( Void ) Destructor of the SFRFrame class.
|
Public Functions | |
---|---|
SFXRGBColorConstRef |
GetColor(
ColorType index
) Get the color.
|
Void |
SetColor(
ColorType index
, SFXRGBColorConstRef color
) Set the color
|
Protected Functions | |
---|---|
static SFXRectangle |
AdjustBound(
SFXRectangleConstRef rect
) Adjust the coordinate of region.
|
Void |
ContentHandler(
SFXGraphicsPtr g
) [Handler] Redraw the content region.
|
SFRResponderPtr |
GetResponder( Void ) Get the responder.
|
SFCError |
MakeHandler( Void ) Redraw the content region of responder.
|
Types |
---|
ColorEnum
Constant that represents a specific part.
|
[ protected ] SFRFrame( SFRResponderPtr parent // parent responder );
[ protected, virtual ] ~SFRFrame(Void);
[ protected, static ] SFXRectangle AdjustBound( SFXRectangleConstRef rect // the coordinate of region to adjust );
When the width or height of coordinate of region is less than "0", adjust it to "1".
[ protected ] Void ContentHandler( SFXGraphicsPtr g // SFXGraphics instance );
The SFRFrame::ContentHandler function fills the content region of responder with white space.
Details : Basic Structure and Processing
[ public, const ] SFXRGBColorConstRef GetColor( ColorType index // palette index );
Specify the palette index of SFRFrame::ColorEnum type.
The behavior is not defined when the specified palette index is invalid.
[ protected, const ] SFRResponderPtr GetResponder(Void);
[ protected ] SFCError MakeHandler(Void);
The SFRFrame::MakeHandler function internally registers the SFRFrame::ContentHandler handler function with the event pair of SREVT_RESPONDER_RENDER and SRP16_RENDER_CONTENT.
[ public ] Void SetColor( ColorType index // palette index SFXRGBColorConstRef color // color );
Specify the palette index of SFRFrame::ColorEnum type.
Specity the color.
The behavior is not defined when the specified palette index is invalid.
enum ColorEnum { COLOR_CONTENT_BASE = 0, // inside the content region };
SFRFrame::ColorEnum is used to set or get the color of specific part of SFRFrameFrame object.
Copyright(c) 2002 - 2024 Sophia Cradle Incorporated All Rights Reserved. |