PrevNextUpHome SophiaFramework UNIVERSE 5.3
SFYBevelFrame
Abstract base class of a responder which represents a bevel frame.
#include <SFYBevelFrame.h.hpp>
class SFYBevelFrame : public SFYFlatFrame;
SFMTYPEDEFCLASS(SFYBevelFrame)

Inheritance diagram

 Inheritance diagram of SFYBevelFrameClass

Collaboration diagram

 Collaboration diagram of SFYBevelFrameClass

Description

How to use

SFYBevelFrame is the abstract base class to define and implement a user-defined bevel frame.

Bevel frame is a frame which consists of a shadow region, a flat frame region, and a bevel region as the figure below.

Figure 268. Bevel frame


Bevel frame

The union set of the shadow region(bottom edge and right edge of 1 pixel width), the flat frame region(1 pixel width), and the bevel frame region(1 pixel width) in the figure is the frame margin of bevel frame. [i.e., SFXMargin(2, 2, 3, 3)].

In the SFYBevelFrame class, settings of bevel color(SFXBevelColor) of bevel frame region of 1 pixel width and drawing of this region is done.

Figure 269. Bevel frame: Expanded Figure


Bevel frame: Expanded Figure

The black line is the shadow region, the blue line(default: black) is the flat frame region, and the line of white and gray is the bevel frame region. The union set of these three regions is the frame margin of bevel frame. And the rectangular region surrounded by the frame margin is the content region.

Each width of the shadow region, the flat frame region, and the bevel frame region is 1 pixel.

  1. The shadow region is drawn by calling the SFYPlainFrame::DrawShadow function. (The color of shadow region is set with the SFYPlainFrame::SetShadowColor function.)
  2. The flat frame region is drawn by calling the SFYFlatFrame::DrawFrame function. (The color of flat frame region is set with the SFYFlatFrame::SetFrameColor and SFYFlatFrame::SetFocusColor functions.)
  3. The bevel frame region is drawn by calling the SFYBevelFrame::DrawBevel function. (The color of flat frame region is set with the SFYBevelFrame::SetBevelColor function.)
[Note] How to get a frame margin

The frame margin of frame responder can be obtained by calling the SFYResponder::GetSuitableMargin function.

[Note] Responder with a frame

A window or dialog with a frame can be implemented by calling its SFYResponder::SetFrame function. A real region of a window or dialog is the content region surrounded by the frame margin.

Reference

SFYFrame | SFYPlainFrame | SFYFlatFrame | SFZBevelFrame | SFZTitleBevelFrame | SFXMargin | Real Region | SFYResponder::GetSuitableMargin | Frame

Member

Constructor/Destructor
SFYBevelFrame( Void )
Constructor of the SFYBevelFrame class.
~SFYBevelFrame( Void )
Destructor of the SFYBevelFrame class.
Public Functions
SFXBevelColorConstRef GetBevelColor( Void )
Get the bevel color of bevel frame region.
Bool GetBevelEnable( Void )
Get the value of flag indicating whether or not the bevel frame region is enabled.
Void SetBevelColor( SFXBevelColorConstRef param )
Set the bevel color of bevel frame region to the specified value.
Void SetBevelEnable( Bool param )
Set the flag indicating whether or not the bevel frame region is enable to the specified value.
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.
SFXRGBColorConstRef GetFocusColor( Void ) (inherits from SFYFlatFrame)
Get the color of flat frame region in the "focus" state.
SFYResponderSmp GetFrame( Void ) (inherits from SFYResponder)
Get the frame which has been attached to this responder.
SFXRGBColorConstRef GetFrameColor( Void ) (inherits from SFYFlatFrame)
Get the color of flat frame region in the "unfocus" state.
Bool GetFrameEnable( Void ) (inherits from SFYFlatFrame)
Get the value of flag indicating whether or not the flat frame region is enabled.
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.
SFXRGBColorConstRef GetShadowColor( Void ) (inherits from SFYPlainFrame)
Get the color of shadow region.
Bool GetShadowEnable( Void ) (inherits from SFYPlainFrame)
Get the value of flag indicating whether or not the shadow region is enabled.
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.
Void SetFocusColor( SFXRGBColorConstRef param ) (inherits from SFYFlatFrame)
Set the color of flat frame region in the "focus" state to the specified value.
SFCError SetFrame( SFYResponderSmpConstRef param ) (inherits from SFYResponder)
Attach the specified frame to this frame.
Void SetFrameColor( SFXRGBColorConstRef param ) (inherits from SFYFlatFrame)
Set the color of flat frame region in the "unfocus" state to the specified value.
Void SetFrameEnable( Bool param ) (inherits from SFYFlatFrame)
Set the flag indicating whether or not the flat frame region is enabled to the specified value.
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 SetShadowColor( SFXRGBColorConstRef param ) (inherits from SFYPlainFrame)
Set the color of shadow region to the specified value.
Void SetShadowEnable( Bool param ) (inherits from SFYPlainFrame)
Set the flag indicating whether or not the shadow region is enabled 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 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
SFXRectangle DrawBevel( SFXGraphicsPtr graphics , SFXRectangleConstRef rectangle )
Draw the bevel frame region of bevel frame.
SFXMarginConstRef GetBevelMargin( Void )
Get the margin of bevel frame region.
SFXRectangle DrawFrame( SFXGraphicsPtr graphics , SFXRectangleConstRef rectangle ) (inherits from SFYFlatFrame)
Draw the flat frame region of flat frame.
SFXRectangle DrawShadow( SFXGraphicsPtr graphics , SFXRectangleConstRef rectangle ) (inherits from SFYPlainFrame)
Draw the shadow region of plain frame.
static
SFYResponderSmp
Factory( SFYResponderPtr responder , SFCErrorPtr exception = null ) (inherits from SFYResponder)
This function is used to implement the NewInstance function.
SFXMarginConstRef GetFrameMargin( Void ) (inherits from SFYFlatFrame)
Get the margin of flat frame region.
SFXMarginConstRef GetShadowMargin( Void ) (inherits from SFYPlainFrame)
Get the margin of shadow region.
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 HandleBoundOptimize( SFXRectanglePtr rectangle ) (inherits from SFYWidget)
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 ) (inherits from SFYFrame)
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 ) (inherits from SFYWidget)
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 ) (inherits from SFYWidget)
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 HandleMarginRequest( SFXMarginPtr margin ) (inherits from SFYFrame)
This function will be called when the (SFEVT_RESPONDER_MARGIN, SFP16_MARGIN_REQUEST) event is received. [Calculate the frame margin of this responder.]
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 SFYBevelFrame class.
HorizontalEnum (inherits from SFYResponder)
Constants that represent the horizontal alignment.
VerticalEnum (inherits from SFYResponder)
Constants that represent the vertical alignment.

SFYBevelFrame::SFYBevelFrame
Constructor of the SFYBevelFrame class.
[ protected, explicit ]
SFYBevelFrame(Void);

Description

This constructor performs the initializations as follows:

  1. Set the type of this responder to ".bvl".
  2. Set the bevel color(SFXBevelColor) of bevel frame region of this responder to the value below.
    static SFXBevelColor::AtomRecConst bevel[] = {
          {{{{0x00, 0xFF, 0xFF, 0xFF}}},     // light color
          {{{0x00, 0xEE, 0xEE, 0xEE}}},      // base color
          {{{0x00, 0x99, 0x99, 0x99}}}}      // dark color
    };
    
  3. Set the enable flag of bevel frame region of this responder to "true".

Reference

SFYResponder::SetType | SFYBevelFrame::CodeEnum | SFYBevelFrame::SetBevelColor | SFYBevelFrame::SetBevelEnable | SFXBevelColor | SFXRGBColor Type


SFYBevelFrame::~SFYBevelFrame
Destructor of the SFYBevelFrame class.
[ protected, virtual ]
virtual ~SFYBevelFrame(Void);

Description

This destructor does nothing.


SFYBevelFrame::DrawBevel
Draw the bevel frame region of bevel frame.
[ protected, const ]
SFXRectangle DrawBevel(
    SFXGraphicsPtr graphics          // graphics object
    SFXRectangleConstRef rectangle   // rectangle to draw
);

Return value

The rectangular region obtained by excluding the bevel frame region from the rectangular region specified in the argument.

Description

This function draws the bevel frame region of bevel frame.

In case you want to perform your own processing, override this function.

The default implementation is as below.

This function draws the bevel frame region of bevel frame in the bevel color set with the SFYBevelFrame::SetBevelColor function, and then retruns the rectangular region obtained by excluding the bevel frame region from the rectangular region specified in the argument.

The bevel frame region of bevel frame can be obtained by calling the SFYBevelFrame::GetBevelMargin function.

[Caution] The color of bevel frame region in the "inactive" state

In the "inactive" state, the light color and the dark color of bevel color(SFXBevelColor) is set with the base color of bevel color. Since the bevel frame region is drawn only in the base color, it will be the 2D looking region.

Figure 270. Bevel frame: Expanded Figure


Bevel frame: Expanded Figure

The black line is the shadow region, the blue line(default: black) is the flat frame region, and the line of white and gray is the bevel frame region. The union set of these three regions is the frame margin of bevel frame. And the rectangular region surrounded by the frame margin is the content region.

Each width of the shadow region, the flat frame region, and the bevel frame region is 1 pixel.

  1. The shadow region is drawn by calling the SFYPlainFrame::DrawShadow function. (The color of shadow region is set with the SFYPlainFrame::SetShadowColor function.)
  2. The flat frame region is drawn by calling the SFYFlatFrame::DrawFrame function. (The color of flat frame region is set with the SFYFlatFrame::SetFrameColor and SFYFlatFrame::SetFocusColor functions.)
  3. The bevel frame region is drawn by calling the SFYBevelFrame::DrawBevel function. (The color of flat frame region is set with the SFYBevelFrame::SetBevelColor function.)

Internal Implementation

Internal implementation of the SFYBevelFrame::DrawBevel function is as follows:

/*protected */SFXRectangle SFYBevelFrame::DrawBevel(SFXGraphicsPtr graphics, SFXRectangleConstRef rectangle) const
{
    SFXBevelColor                               bevel;
    SFXRectangle                                result(rectangle);

    if (_bevelEnable) {
        bevel.Set(_color.bevel);
        if (!GetStateActive(true)) {
            bevel.SetLight(bevel.GetBase());
            bevel.SetDark(bevel.GetBase());
        }
        graphics->DrawBevelRectangle(result, bevel);
        result.Deflate(1, 1);
    }
    return result;
}// SFYBevelFrame::DrawBevel //

Reference

SFYBevelFrame::SetBevelColor | SFYBevelFrame::GetBevelMargin | SFXBevelColor | SFXRGBColor | SFXRectangle | State


SFYBevelFrame::GetBevelColor
Get the bevel color of bevel frame region.
[ public, const ]
SFXBevelColorConstRef GetBevelColor(Void);

Return value

Bevel color of bevel frame region.

Description

This function gets the bevel color of bevel frame region.

Reference

SFYBevelFrame::SetBevelColor | SFYBevelFrame::DrawBevel | SFXBevelColor | SFXRGBColor


SFYBevelFrame::GetBevelEnable
Get the value of flag indicating whether or not the bevel frame region is enabled.
[ public, const ]
Bool GetBevelEnable(Void);

Return value

  • If the bevel frame region is enabled: true [default]
  • Otherwise: false

Description

This function gets the value of flag indicating whether or not the bevel frame region is enabled.

Reference

SFYBevelFrame::SetBevelEnable | SFYBevelFrame::GetBevelMargin


SFYBevelFrame::GetBevelMargin
Get the margin of bevel frame region.
[ protected ]
SFXMarginConstRef GetBevelMargin(Void);

Return value

Margin of bevel frame region.

Description

This function gets the margin of bevel frame region.

If the bevel frame region is enabled, SFXMargin(1, 1, 1, 1) [i.e., four edges of the rectangle that the shadow region and the flat frame region is excluded from the bevel frame] will be returned.

Otherwise SFXMargin::EmptyInstance will be returned.

Reference

SFYBevelFrame::DrawBevel | SFXMargin


SFYBevelFrame::SetBevelColor
Set the bevel color of bevel frame region to the specified value.
[ public ]
Void SetBevelColor(
    SFXBevelColorConstRef param   // value to set
);

Description

This function sets the color(SFXBevelColor) of bevel frame region to the specified value.

Default setting is as follows:

static SFXBevelColor::AtomRecConst bevel[] = {
      {{{{0x00, 0xFF, 0xFF, 0xFF}}},     // light color
      {{{0x00, 0xEE, 0xEE, 0xEE}}},      // base color
      {{{0x00, 0x99, 0x99, 0x99}}}}      // dark color
};
[Caution] The color of bevel frame region in the "inactive" state

In the "inactive" state, the light color and the dark color of bevel color(SFXBevelColor) is set with the base color of bevel color. Since the bevel frame region is drawn only in the base color, it will be the 2D looking region.

Reference

SFYBevelFrame::GetBevelColor | SFYBevelFrame::DrawBevel | SFXBevelColor | SFXRGBColor | State


SFYBevelFrame::SetBevelEnable
Set the flag indicating whether or not the bevel frame region is enable to the specified value.
[ public ]
Void SetBevelEnable(
    Bool param   // value to set [true if the bevel frame region is enabled, false otherwise]
);

Description

This function sets the flag indicating whether or not the bevel frame region is enable to the specified value.

Reference

SFYBevelFrame::GetBevelEnable | SFYBevelFrame::GetBevelMargin


SFYBevelFrame::CodeEnum
Constant that represents the SFYBevelFrame class.
enum CodeEnum {
    CODE_TYPE = four_char_code('.', 'b', 'v', 'l')
};
SFMTYPEDEFTYPE(CodeEnum)

Reference

SFYResponder::GetType | SFYResponder::SetType