SophiaFramework UNIVERSE 5.3 |
Constructor/Destructor |
---|
SFRFrameFrame(
SFRResponderPtr parent
)
Constructor of the SFRFrameFrame class.
|
~SFRFrameFrame( Void ) Destructor of the SFRFrameFrame class.
|
Public Functions | |
---|---|
SFXRGBColorConstRef |
GetColor(
ColorType index
) Get the color.
|
static SFXMargin |
GetMargin( Void )
Get the margin between base and content region (in pixels).
|
Void |
SetColor(
ColorType index
, SFXRGBColorConstRef color
) Set the color
|
Protected Functions | |
---|---|
static SFXRectangle |
AdjustBound(
SFXRectangleConstRef rect
) Adjust the coordinate of region.
|
Void |
BaseHandler(
SFXGraphicsPtr g
) [Handler] Redraw the base region of responder.
|
SFCError |
MakeHandler( Void ) Redraw the base region of responder.
|
SFXRectangle |
AdjustBound(
SFXRectangleConstRef rect
, AEEFont font
)
(inherits from SFRTitleFrame)
Adjust the coordinate of region.
|
Void |
ContentHandler(
SFXGraphicsPtr g
)
(inherits from SFRFrame)
[Handler] Redraw the content region.
|
SFRResponderPtr |
GetResponder( Void )
(inherits from SFRFrame)
Get the responder.
|
Types |
---|
ColorEnum
Constant that represents a specific part.
|
[ protected ] SFRFrameFrame( SFRResponderPtr parent // parent responder );
[ protected, virtual ] ~SFRFrameFrame(Void);
[ protected, static ] SFXRectangle AdjustBound( SFXRectangleConstRef rect // the coordinate of region to adjust );
[ protected ] Void BaseHandler( SFXGraphicsPtr g // SFXGraphics instance );
The SFRFrameFrame::BaseHandler function paints over parts of responder with a frame defined by the SFRFrameFrame::ColorEnum.
Each color of parts depends upon the Behaviour status of responder like the following table:
Parts | Status of Behaviour | Targeted | Enable and Not-Focused | Not-Enable |
---|---|---|---|
COLOR_FRAME: four inner-edges of base region | purple defined by SFXRGBColor(0x66, 0x66, 0xFF, 0x00) | black defined by SFXRGBColor(0x00, 0x00, 0x00, 0x00) | gray defined by SFXRGBColor(0x44, 0x44, 0x44, 0x00) |
COLOR_TARGET: bottom and right outer-edges of base region | black defined by SFXRGBColor(0x00, 0x00, 0x00, 0x00) | black defined by SFXRGBColor(0x00, 0x00, 0x00, 0x00) | gray defined by SFXRGBColor(0x44, 0x44, 0x44, 0x00) |
Reference: Behaviour
[ public, const ] SFXRGBColorConstRef GetColor( ColorType index // palette index );
Specify the palette index of SFRFrameFrame::ColorEnum type.
The behavior is not defined when the specified palette index is invalid.
[ public, static ] SFXMargin GetMargin(Void);
[ protected ] SFCError MakeHandler(Void);
[ public ] Void SetColor( ColorType index // palette index SFXRGBColorConstRef color // color );
Specify the palette index of SFRFrameFrame::ColorEnum type.
Specity the color.
The behavior is not defined when the specified palette index is invalid.
enum ColorEnum { COLOR_FRAME = 0, // four inner-edges of base region COLOR_TARGET // bottom and right outer-edges of base region };
SFRFrameFrame::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. |