PrevNextUpHome SophiaFramework UNIVERSE 5.3
SFYContainer
Abstract class which represents a container.
#include <SFYContainer.h.hpp>
class SFYContainer : public SFYWidget;
SFMTYPEDEFCLASS(SFYContainer)

Inheritance diagram

 Inheritance diagram of SFYContainerClass

Collaboration diagram

 Collaboration diagram of SFYContainerClass

Description

How to use

SFYContainer is the abstract base class to define and implement a user-defined container.

For instance, containers such as SFZContainer, SFZWindow, or SFZDialog are implemented by inheriting from SFYContainer.

[Note] Note
Container is the responder designed to be placed in a control or another container(container/window /dialog ) with functions to move the focus, scroll its virtual region, and handle the key events for scrolling.

SFYContainer provides functions to handle the key events for moving the focus among responders in the container and scrolling up and down the virtual region larger than the real region. At this time, scrolling is performed in cooperation with moving the focus.

When controls and/or containers are placed in the container, the focus can be moved among the child responders of the container using the scroll key set with SFYContainer::SetScrollDownKey / SFYContainer::SetScrollUpKey / SFYContainer::SetPageDownKey / SFYContainer::SetPageUpKey / SFYContainer::SetSnapDownKey / SFYContainer::SetSnapUpKey functions.

Events and their handlers

In SFYContainer, the following handlers(virtual functions) are registered for the key event[SFEVT_KEY] for scrolling,

In a container inheriting from SFYContainer, the following handlers(virtual functions) will be booted up first when the event is received.

Table 206. Events and their Handlers

Event Handler(Virtual function) Default behaviour Override
SFEVT_KEY event of the ScrollUp key set with SFYContainer::SetScrollUpKey SFYContainer::HandleScrollUpKey Scroll up the virtual region *1 Optional
SFEVT_KEY event of the ScrollDown key set with SFYContainer::SetScrollDownKey SFYContainer::HandleScrollDownKey Scroll down the virtual region *2 Optional
SFEVT_KEY event of the PageUp key set with SFYContainer::SetPageUpKey SFYContainer::HandlePageUpKey Scroll up the virtual region by 1 page *3 Optional
SFEVT_KEY event of the PageDown key set with SFYContainer::SetPageDownKey SFYContainer::HandlePageDownKey Scroll down the virtual region by 1 page *4 Optional
SFEVT_KEY event of the SnapUp key set with SFYContainer::SetSnapUpKey SFYContainer::HandleSnapUpKey Scroll up the virtual region to the top *5 Optional
SFEVT_KEY event of the SnapDown key set with SFYContainer::SetSnapDownKey SFYContainer::HandleSnapDownKey Scroll down the virtual region to the bottom *6 Optional
(SFEVT_RESPONDER_BOUND, SFP16_BOUND_REQUEST) event SFYWidget::HandleBoundRequest - Recommended
(SFEVT_RESPONDER_BOUND, SFP16_BOUND_OPTIMIZE) event SFYWidget::HandleBoundOptimize - Recommended
(SFEVT_RESPONDER_BOUND, SFP16_BOUND_REAL) event SFYWidget::HandleBoundReal - Optional
(SFEVT_RESPONDER_BOUND, SFP16_BOUND_VIRTUAL) event SFYWidget::HandleBoundVirtual - Optional
(SFEVT_RESPONDER_BOUND, SFP16_BOUND_GLOBAL) event SFYWidget::HandleBoundGlobal - Optional
(SFEVT_RESPONDER_RENDER, SFP16_RENDER_REQUEST) event SFYWidget::HandleRenderRequest - Optional

* "-" in the default behaviour column represents that nothing is implemented.

[Note] NOTE

*1. Execute the SFYContainer::ScrollUp function.

*2. Execute the SFYContainer::ScrollDown function.

*3. Execute the SFYContainer::PageUp function.

*4. Execute the SFYContainer::PageDown function.

*5. Execute the SFYContainer::SnapUp function.

*6. Execute the SFYContainer::SnapDown function.

The minimum code necessary to make a user-defined container is as follows:

Example 862. Declaration

SFMTYPEDEFRESPONDER(USRContainer)
class USRContainer: public SFYContainer {
    SFMSEALRESPONDER(USRContainer)
    SFMRESPONDERINSTANTIATETHREE(USRContainer, SFYContainer, SFYWidget, SFYResponder)
public:

    // define responder type
    // small alphabet and symbol must not be used since they are reserved for SophiaFramework UNIVERSE
    enum CodeEnum {
        CODE_TYPE = four_char_code('U', 'N', 'T', 'N')
    };
    SFMTYPEDEFTYPE(CodeEnum)

public:
    static USRContainerSmp NewInstance(SFCErrorPtr exception = null);
protected:
    explicit USRContainer(Void) static_throws;
    virtual ~USRContainer(Void);

    // virtual functions defined in the parent class and recommended to be implemented
    virtual Void HandleBoundRequest(SFXRectanglePtr rectangle) const;
    virtual Void HandleBoundOptimize(SFXRectanglePtr rectangle) const;
    virtual Void HandleBoundReal(Void);
    virtual Void HandleBoundVirtual(Void);
    virtual Void HandleRenderRequest(SFXGraphicsPtr graphics) const;
};

Example 863. Implementation

// constructor
USRContainer::USRContainer(Void) static_throws
{
    if (static_try()) {

        // set the responder type
 SetType(CODE_TYPE);

        // here describe the initialization
    }
}

// destructor
USRContainer::~USRContainer(Void)
{
    // here describe the finalization
}

// function to create instance managed by smart pointer
USRContainerSmp USRContainer::NewInstance(SFCErrorPtr exception)
{
    return static_pointer_cast<USRContainer>(Factory(::new USRContainer, exception));
}

Void USRContainer::HandleBoundRequest(SFXRectanglePtr rectangle) const
{
    // calculate the suitable container size
    // set the rectangle argument to the calculated suitable container size
    // for the rectangle argument, it is recommended to set only its size and not to change its origin in this function
    return;
}

Void USRContainer::HandleBoundOptimize(SFXRectanglePtr rectangle) const
{
    // calculate the suitable container size within rectangular region given by the rectangle argument
    // set the rectangle argument to the calculated suitable container size
    // for the rectangle argument, it is recommended to set only its size and not to change its origin in this function
    return;
}

Void USRContainer::HandleBoundReal(Void)
{
    // here describe the size recalculation if necessary when the real region is changed
    return;
}

Void USRContainer::HandleBoundVirtual(Void)
{
    // here describe the size recalculation if necessary when the virtual region is changed
    return;
}

Void USRContainer::HandleRenderRequest(SFXGraphicsPtr graphics) const
{
    // draw container
    return;
}

Reference

Abstract Class that Represents a Container[SFYContainer] | SFZContainer | SFZWindow | SFZDialog | SFZMessageDialog | SFZQuestionDialog | SFZTabPage | Virtual Region | Real Region | Local Region | SFYContainer::SetScrollDownKey | SFYContainer::SetScrollUpKey | SFYContainer::SetPageDownKey | SFYContainer::SetPageUpKey | SFYContainer::SetSnapDownKey | SFYContainer::SetSnapUpKey | Key Event[SFEVT_KEY] | Region Event[SFEVT_RESPONDER_BOUND] | Drawing Event[SFEVT_RESPONDER_RENDER]

Member

Constructor/Destructor
SFYContainer( Void )
Constructor of the SFYContainer class.
~SFYContainer( Void )
Destructor of the SFYContainer class.
Public Functions
AVKType GetPageDownKey( Void )
Get the PageDown key to scroll down the virtual region of this responder by one page.
AVKType GetPageUpKey( Void )
Get the PageUp key to scroll up the virtual region of this responder by one page.
AVKType GetScrollDownKey( Void )
Get the ScrollDown key to scroll down the virtual region of this responder.
Bool GetScrollRepeat( Void )
Get the value of repeat-scroll flag.
SInt16 GetScrollStep( Void )
Get the scroll-step. [pixels]
AVKType GetScrollUpKey( Void )
Get the ScrollUp key to scroll up the virtual region of this responder.
AVKType GetSnapDownKey( Void )
Get the SnapDown key to scroll down the virtual region of this responder to the bottom.
AVKType GetSnapUpKey( Void )
Get the SnapUp key to scroll up the virtual region of this responder to the top.
Bool PageDown( Void )
Scroll down a page of the virtual region.
Bool PageUp( Void )
Scroll up a page of the virtual region.
Bool ScrollDown( Void )
Scroll down the virtual region.
Bool ScrollUp( Void )
Scroll up the virtual region.
Void SetPageDownKey( AVKType param )
Set the PageDown key to scroll down the virtual region of this responder by one page to the specified value.
Void SetPageUpKey( AVKType param )
Set the PageUp key to scroll up the virtual region of this responder by one page to the specified value.
Void SetScrollDownKey( AVKType param )
Set the ScrollDown key to scroll down the virtual region of this responder to the specified value.
Void SetScrollRepeat( Bool param )
Set the repeat-scroll flag to the specified value.
Void SetScrollStep( SInt16 param )
Set the scroll-step to the specified value. [pixels]
Void SetScrollUpKey( AVKType param )
Set the ScrollUp key to scroll up the virtual region of this responder to the specified value.
Void SetSnapDownKey( AVKType param )
Set the SnapDown key to scroll down the virtual region of this responder to the bottom to the specified value.
Void SetSnapUpKey( AVKType param )
Set the SnapUp key to scroll up the virtual region of this responder to the top to the specified value.
Bool SnapDown( Void )
Scroll down to the bottom of the virtual region.
Bool SnapUp( Void )
Scroll up to the top of the virtual region.
Void ClearHandler( Void ) (inherits from SFYResponder)
Unregister all handlers from this responder.
Void ClearTracer( Void ) (inherits from SFYResponder)
Unregister all dispatching rules from the tracer of this responder.
SFCError Distribute( SFXEventConstRef event , BoolPtr result = null ) (inherits from SFYResponder)
Distribute the specified event.
SFXRGBColorConstRef GetBackgroundColor( Void ) (inherits from SFYWidget)
Get the background color.
SFYResponderSmp GetChildBack( Void ) (inherits from SFYResponder)
Get the backmost child responder of this responder, which matches the specified search condition.
SFYResponderSmp GetChildBack( Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the backmost child responder of this responder, which matches the specified search condition.
SFYResponderSmp GetChildBack( UInt32 id ) (inherits from SFYResponder)
Get the backmost child responder of this responder, which matches the specified search condition.
SFYResponderSmp GetChildBack( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the backmost child responder of this responder, which matches the specified search condition.
SFYResponderSmp GetChildBackward( SInt32 index ) (inherits from SFYResponder)
Get the child responder of this responder at the specified position from the back side, which matches the specified search condition.
SFYResponderSmp GetChildBackward( SInt32 index , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the child responder of this responder at the specified position from the back side, which matches the specified search condition.
SFYResponderSmp GetChildBackward( SInt32 index , UInt32 id ) (inherits from SFYResponder)
Get the child responder of this responder at the specified position from the back side, which matches the specified search condition.
SFYResponderSmp GetChildBackward( SInt32 index , UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the child responder of this responder at the specified position from the back side, which matches the specified search condition.
SInt32 GetChildCount( Void ) (inherits from SFYResponder)
Get the number of child responders of this responder, which match the specified search condition.
SInt32 GetChildCount( Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the number of child responders of this responder, which match the specified search condition.
SInt32 GetChildCount( UInt32 id ) (inherits from SFYResponder)
Get the number of child responders of this responder, which match the specified search condition.
SInt32 GetChildCount( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the number of child responders of this responder, which match the specified search condition.
SFYResponderSmp GetChildForward( SInt32 index ) (inherits from SFYResponder)
Get the child responder of this responder at the specified position from the front side, which matches the specified search condition.
SFYResponderSmp GetChildForward( SInt32 index , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the child responder of this responder at the specified position from the front side, which matches the specified search condition.
SFYResponderSmp GetChildForward( SInt32 index , UInt32 id ) (inherits from SFYResponder)
Get the child responder of this responder at the specified position from the front side, which matches the specified search condition.
SFYResponderSmp GetChildForward( SInt32 index , UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the child responder of this responder at the specified position from the front side, which matches the specified search condition.
SFYResponderSmp GetChildFront( Void ) (inherits from SFYResponder)
Get the foremost child responder of this responder, which matches the specified search condition.
SFYResponderSmp GetChildFront( Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the foremost child responder of this responder, which matches the specified search condition.
SFYResponderSmp GetChildFront( UInt32 id ) (inherits from SFYResponder)
Get the foremost child responder of this responder, which matches the specified search condition.
SFYResponderSmp GetChildFront( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the foremost child responder of this responder, which matches the specified search condition.
SFYDistributerPtr GetDistributer( Void ) (inherits from SFYResponder)
Get the distributer bound with this responder.
SFYResponderSmp GetFrame( Void ) (inherits from SFYResponder)
Get the frame which has been attached to this responder.
SFXRectangle GetGlobalBound( Void ) (inherits from SFYResponder)
Get the globle region of this responder.
UInt32 GetID( Void ) (inherits from SFYResponder)
Get the ID of this responder instance.
SFXRectangle GetLocalBound( Void ) (inherits from SFYResponder)
Get the local region of this responder.
SInt32 GetNthBackward( Void ) (inherits from SFYResponder)
Get the position counted from the back side of this responder among a group of sibling responders, which match the specified search condition.
SInt32 GetNthBackward( Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the position counted from the back side of this responder among a group of sibling responders, which match the specified search condition.
SInt32 GetNthBackward( UInt32 id ) (inherits from SFYResponder)
Get the position counted from the back side of this responder among a group of sibling responders, which match the specified search condition.
SInt32 GetNthBackward( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the position counted from the back side of this responder among a group of sibling responders, which match the specified search condition.
SInt32 GetNthForward( Void ) (inherits from SFYResponder)
Get the position counted from the front side of this responder among a group of sibling responders, which match the specified search condition.
SInt32 GetNthForward( Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the position counted from the front side of this responder among a group of sibling responders, which match the specified search condition.
SInt32 GetNthForward( UInt32 id ) (inherits from SFYResponder)
Get the position counted from the front side of this responder among a group of sibling responders, which match the specified search condition.
SInt32 GetNthForward( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the position counted from the front side of this responder among a group of sibling responders, which match the specified search condition.
SFYResponderSmp GetParent( Void ) (inherits from SFYResponder)
Get the parent responder of this responder.
Bool GetPropertyTransparent( Void ) (inherits from SFYResponder)
Get the transparency attribute of this responder.
SFXRectangleConstRef GetRealBound( Void ) (inherits from SFYResponder)
Get the real region of this responder.
VoidPtr GetReference( Void ) (inherits from SFYResponder)
Get the reference of this responder.
SFYRendererPtr GetRenderer( Void ) (inherits from SFYResponder)
Get the renderer bound with this responder.
SFYResponderSmp GetRoot( Void ) (inherits from SFYResponder)
Get the root responder.
Bool GetStateActive( Bool inherit = false ) (inherits from SFYResponder)
Get the active state of this responder.
Bool GetStateEnable( Bool inherit = false ) (inherits from SFYResponder)
Get the enable state of this responder.
Bool GetStateFocus( Bool inherit = false ) (inherits from SFYResponder)
Get the focus state of this responder.
Bool GetStateValid( Bool inherit = false ) (inherits from SFYResponder)
Get the valid state of this responder.
Bool GetStateVisible( Bool inherit = false ) (inherits from SFYResponder)
Get the visible state of this responder.
SFXRectangle GetSuitableBound( Void ) (inherits from SFYResponder)
Get the suitable region of this responder.
SFXRectangle GetSuitableBound( SFXRectangleConstRef rectangle ) (inherits from SFYResponder)
Get the suitable region of this responder.
SFXRectangle GetSuitableBound( SFXRectangleConstRef param , HorizontalEnum horizontal , VerticalEnum vertical ) (inherits from SFYResponder)
Get the suitable region of this responder.
SFXMargin GetSuitableMargin( Void ) (inherits from SFYResponder)
Get the suitable frame margin region of this responder.
SFCType GetType( Void ) (inherits from SFYResponder)
Get the type of this responder class.
SFXRectangleConstRef GetVirtualBound( Void ) (inherits from SFYResponder)
Get the virtual region of this responder.
Bool HasFrame( Void ) (inherits from SFYResponder)
Check whether or not this responder is a content-responder.
Void Initialize( Void ) (inherits from SFYResponder)
Initialize this responder.
Bool IsBack( Void ) (inherits from SFYResponder)
Check whether or not this responder is the backmost responder among a group of the sibling responders which match the specified search condition.
Bool IsBack( Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Check whether or not this responder is the backmost responder among a group of the sibling responders which match the specified search condition.
Bool IsBack( UInt32 id ) (inherits from SFYResponder)
Check whether or not this responder is the backmost responder among a group of the sibling responders which match the specified search condition.
Bool IsBack( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Check whether or not this responder is the backmost responder among a group of the sibling responders which match the specified search condition.
Bool IsFrame( Void ) (inherits from SFYResponder)
Check whether or not this responder is an attachment-frame.
Bool IsFront( Void ) (inherits from SFYResponder)
Check whether or not this responder is the foremost responder among a group of the sibling responders which match the specified search condition.
Bool IsFront( Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Check whether or not this responder is the foremost responder among a group of the sibling responders which match the specified search condition.
Bool IsFront( UInt32 id ) (inherits from SFYResponder)
Check whether or not this responder is the foremost responder among a group of the sibling responders which match the specified search condition.
Bool IsFront( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Check whether or not this responder is the foremost responder among a group of the sibling responders which match the specified search condition.
Bool IsNthBackward( SInt32 index ) (inherits from SFYResponder)
Check whether or not this responder is at the specified position from the back side among a group of the sibling responders which match the specified search condition.
Bool IsNthBackward( SInt32 index , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Check whether or not this responder is at the specified position from the back side among a group of the sibling responders which match the specified search condition.
Bool IsNthBackward( SInt32 index , UInt32 id ) (inherits from SFYResponder)
Check whether or not this responder is at the specified position from the back side among a group of the sibling responders which match the specified search condition.
Bool IsNthBackward( SInt32 index , UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Check whether or not this responder is at the specified position from the back side among a group of the sibling responders which match the specified search condition.
Bool IsNthForward( SInt32 index ) (inherits from SFYResponder)
Check whether or not this responder is at the specified position from the front side among a group of the sibling responders which match the specified search condition.
Bool IsNthForward( SInt32 index , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Check whether or not this responder is at the specified position from the front side among a group of the sibling responders which match the specified search condition.
Bool IsNthForward( SInt32 index , UInt32 id ) (inherits from SFYResponder)
Check whether or not this responder is at the specified position from the front side among a group of the sibling responders which match the specified search condition.
Bool IsNthForward( SInt32 index , UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Check whether or not this responder is at the specified position from the front side among a group of the sibling responders which match the specified search condition.
Bool IsRoot( Void ) (inherits from SFYResponder)
Check whether or not this responder is the root responder.
SFCError Recover( Void ) (inherits from SFYResponder)
Recover the intersection region between this responder and the responder space by using the saved bitmap to restore the device bitmap.
SFCError RegisterHandler( SFXEventRangeConstRef range , SFYHandler::RuleRecConstRef rule ) (inherits from SFYResponder)
Register specified handlers into this responder.
SFCError RegisterHandler( SFXEventRangeConstRef range , SFYHandler::HandlerSPP spp , VoidPtr reference ) (inherits from SFYResponder)
Register specified handlers into this responder.
SFCError RegisterHandler( SFXEventRangeConstPtr range , SFYHandler::RuleRecConstPtr rule , SInt32 length ) (inherits from SFYResponder)
Register specified handlers into this responder.
SFCError RegisterHandler( SFXEventRangeConstPtr range , SFYHandler::HandlerSPPConstPtr spp , VoidPtrConstPtr reference , SInt32 length ) (inherits from SFYResponder)
Register specified handlers into this responder.
SFCError RegisterTracer( SFXEventRangeConstRef range , SFYTracer::RuleRecConstRef rule ) (inherits from SFYResponder)
Register specified dispatching rules into the tracer of this responder.
SFCError RegisterTracer( SFXEventRangeConstRef range , SFYTracer::OrderEnum order , SFYTracer::StateEnum state , Bool overload ) (inherits from SFYResponder)
Register specified dispatching rules into the tracer of this responder.
SFCError RegisterTracer( SFXEventRangeConstPtr range , SFYTracer::RuleRecConstPtr rule , SInt32 length ) (inherits from SFYResponder)
Register specified dispatching rules into the tracer of this responder.
SFCError RegisterTracer( SFXEventRangeConstPtr range , SFYTracer::OrderEnumConstPtr order , SFYTracer::StateEnumConstPtr state , BoolConstPtr overload , SInt32 length ) (inherits from SFYResponder)
Register specified dispatching rules into the tracer of this responder.
SFCError Render( Bool force = false ) (inherits from SFYResponder)
Boot up the renderer for redrawing this responder and its descendant responders.
Void SetBackgroundColor( SFXRGBColorConstRef param ) (inherits from SFYWidget)
Set the background color to the specified value.
Void SetDistributer( SFYDistributerPtr param ) (inherits from SFYResponder)
Bind this responder with the specified distributer.
SFCError SetFrame( SFYResponderSmpConstRef param ) (inherits from SFYResponder)
Attach the specified frame to this frame.
Void SetID( UInt32 param ) (inherits from SFYResponder)
Set the ID value of this responder to the specified value.
SFCError SetParent( SFYResponderSmpConstRef param ) (inherits from SFYResponder)
Set the parent responder of this responder to the specified responder.
Void SetProperty( Bool transparent ) (inherits from SFYResponder)
Set the property of this responder to the specified value.
Void SetPropertyTransparent( Bool param ) (inherits from SFYResponder)
Set the transparency attribute of this responder to the specified value.
Void SetRealBound( SFXRectangleConstRef param ) (inherits from SFYResponder)
Set the real region of this responder to the specified region.
Void SetReference( VoidPtr param ) (inherits from SFYResponder)
Set the reference value of this responder to the specified value.
Void SetRenderer( SFYRendererPtr param ) (inherits from SFYResponder)
Bind this responder with the specified renderer.
Void SetState( Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Set all states of this responder to specified values together.
Void SetStateActive( Bool param ) (inherits from SFYResponder)
Set the active state of this responder to the specified value.
Void SetStateEnable( Bool param ) (inherits from SFYResponder)
Set the enable state of this responder to the specified value.
Void SetStateFocus( Bool param ) (inherits from SFYResponder)
Set the focus state of this responder to the specified value.
Void SetStateVisible( Bool param ) (inherits from SFYResponder)
Set the visible state of this responder to the specified value.
Void SetVirtualBound( SFXRectangleConstRef param ) (inherits from SFYResponder)
Set the virtual region of this responder to the specified value.
SFCError Snapshot( SFBBitmapSmpConstRef bitmap ) (inherits from SFYResponder)
Get a snapshot image of the intersection region between this responder and the responder space by using the saved bitmap.
Void Terminate( Void ) (inherits from SFYResponder)
Terminate this responder.
Void ToBack( Void ) (inherits from SFYResponder)
Move this responder to the backmost position among a group of the sibling responders which match the specified search condition.
Void ToBack( Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Move this responder to the backmost position among a group of the sibling responders which match the specified search condition.
Void ToBack( UInt32 id ) (inherits from SFYResponder)
Move this responder to the backmost position among a group of the sibling responders which match the specified search condition.
Void ToBack( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Move this responder to the backmost position among a group of the sibling responders which match the specified search condition.
Void ToFront( Void ) (inherits from SFYResponder)
Move this responder to the foremost position among a group of the sibling responders which match the specified search condition.
Void ToFront( Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Move this responder to the foremost position among a group of the sibling responders which match the specified search condition.
Void ToFront( UInt32 id ) (inherits from SFYResponder)
Move this responder to the foremost position among a group of the sibling responders which match the specified search condition.
Void ToFront( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Move this responder to the foremost position among a group of the sibling responders which match the specified search condition.
Void ToNthBackward( SInt32 index ) (inherits from SFYResponder)
Move this responder to the specified position from the back side among a group of the sibling responders which match the specified search condition.
Void ToNthBackward( SInt32 index , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Move this responder to the specified position from the back side among a group of the sibling responders which match the specified search condition.
Void ToNthBackward( SInt32 index , UInt32 id ) (inherits from SFYResponder)
Move this responder to the specified position from the back side among a group of the sibling responders which match the specified search condition.
Void ToNthBackward( SInt32 index , UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Move this responder to the specified position from the back side among a group of the sibling responders which match the specified search condition.
Void ToNthForward( SInt32 index ) (inherits from SFYResponder)
Move this responder to the specified position from the front side among a group of the sibling responders which match the specified search condition.
Void ToNthForward( SInt32 index , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Move this responder to the specified position from the front side among a group of the sibling responders which match the specified search condition.
Void ToNthForward( SInt32 index , UInt32 id ) (inherits from SFYResponder)
Move this responder to the specified position from the front side among a group of the sibling responders which match the specified search condition.
Void ToNthForward( SInt32 index , UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Move this responder to the specified position from the front side among a group of the sibling responders which match the specified search condition.
Void UnregisterHandler( SFXEventRangeConstRef range , SFYHandler::RuleRecConstRef rule ) (inherits from SFYResponder)
Unregister the handler from this responder which matches the specified condition.
Void UnregisterHandler( SFXEventRangeConstRef range , SFYHandler::HandlerSPP spp , VoidPtr reference ) (inherits from SFYResponder)
Unregister the handler from this responder which matches the specified condition.
Void UnregisterHandler( SFXEventRangeConstPtr range , SFYHandler::RuleRecConstPtr rule , SInt32 length ) (inherits from SFYResponder)
Unregister the handler from this responder which matches the specified condition.
Void UnregisterHandler( SFXEventRangeConstPtr range , SFYHandler::HandlerSPPConstPtr spp , VoidPtrConstPtr reference , SInt32 length ) (inherits from SFYResponder)
Unregister the handler from this responder which matches the specified condition.
Void UnregisterTracer( SFXEventRangeConstRef range ) (inherits from SFYResponder)
Unregister the dispatching rule from the tracer of this responder which matches the specified condition.
Void UnregisterTracer( SFXEventRangeConstPtr range , SInt32 length ) (inherits from SFYResponder)
Unregister the dispatching rule from the tracer of this responder which matches the specified condition.
T const & static_catch( Void ) (inherits from static_exception)
Get the current exception.
Protected Functions
Bool HandlePageDownKey( Void )
This function will be called when the SFEVT_KEY event of the PageDown key is received.
Bool HandlePageUpKey( Void )
This function will be called when the SFEVT_KEY event of the PageUp key is received.
Bool HandleScrollDownKey( Void )
This function will be called when the SFEVT_KEY event of the ScrollDown key is received.
Bool HandleScrollUpKey( Void )
This function will be called when the SFEVT_KEY event of the ScrollUp key is received.
Bool HandleSnapDownKey( Void )
This function will be called when the SFEVT_KEY event of the SnapDown key is received.
Bool HandleSnapUpKey( Void )
This function will be called when the SFEVT_KEY event of the SnapUp key is received.
static
SFYResponderSmp
Factory( SFYResponderPtr responder , SFCErrorPtr exception = null ) (inherits from SFYResponder)
This function is used to implement the NewInstance function.
SFYResponderSmp GetThis( Void ) (inherits from SFYResponder)
Get the smart pointer of this responder.
Void HandleBoundGlobal( SFXRectangleConstRef rectangle ) (inherits from SFYWidget)
This function will be called when the global region is changed.
Void 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 SFYWidget)
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 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 SFYContainer class.
DefaultEnum
Constant that represents the default scroll-step[pixel unit].
HorizontalEnum (inherits from SFYResponder)
Constants that represent the horizontal alignment.
VerticalEnum (inherits from SFYResponder)
Constants that represent the vertical alignment.

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

Description

This constructor performs the initializations as follows:

  1. Set the type of this responder to ".ntn".
  2. Set the scroll-step of this responder to SFYContainer::DEFAULT_STEP [pixels].
  3. Set the repeat-scroll flag of this responder to "false".
  4. Set the ScrollUp key of this responder to AVK_UP.
  5. Set the ScrollDown key of this responder to AVK_DOWN.
  6. Set the PageUp key of this responder to AVK_TXPGUP.
  7. Set the PageDown key of this responder to AVK_TXPGDOWN.
  8. Set the SnapUp key of this responder to AVK_TXHOME.
  9. Set the SnapDown key of this responder to AVK_TXEND.
  10. Register the event handlers in the table below into this responder.

Table 207. Event handler

Event Content of the handler
SFEVT_KEY event of the ScrollUp key set with SFYContainer::SetScrollUpKey Call the SFYContainer::HandleScrollUpKey function.
SFEVT_KEY event of the ScrollDown key set with SFYContainer::SetScrollDownKey Call the SFYContainer::HandleScrollDownKey function.
SFEVT_KEY event of the PageUp key set with SFYContainer::SetPageUpKey Call the SFYContainer::HandlePageUpKey function.
SFEVT_KEY event of the PageDown key set with SFYContainer::SetPageDownKey Call the SFYContainer::HandlePageDownKey function.
SFEVT_KEY event of the SnapUp key set with SFYContainer::SetSnapUpKey Call the SFYContainer::HandleSnapUpKey function.
SFEVT_KEY event of the SnapDown key set with SFYContainer::SetSnapDownKey Call the SFYContainer::HandleSnapDownKey function.
[Note] Note
In a responder inheriting from SFYContainer, the corresponding handler will be called when one of the above events occurs.

Reference

SFYResponder::SetType | SFYContainer::CodeEnum | SFYContainer::SetScrollStep | SFYContainer::DefaultEnum | SFYContainer::SetScrollRepeat | SFYContainer::SetScrollUpKey | SFYContainer::HandleScrollUpKey | SFYContainer::SetScrollDownKey | SFYContainer::HandleScrollDownKey | SFYContainer::SetPageUpKey | SFYContainer::HandlePageUpKey | SFYContainer::SetPageDownKey | SFYContainer::HandlePageDownKey | SFYContainer::SetSnapUpKey | SFYContainer::HandleSnapUpKey | SFYContainer::SetSnapDownKey | SFYContainer::HandleSnapDownKey | SFXEvent | Type | Event | Key Event[SFEVT_KEY]


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

Description

This destructor does nothing.


SFYContainer::GetPageDownKey
Get the PageDown key to scroll down the virtual region of this responder by one page.
[ public, const ]
AVKType GetPageDownKey(Void);

Reference

SFYContainer::SetPageDownKey


SFYContainer::GetPageUpKey
Get the PageUp key to scroll up the virtual region of this responder by one page.
[ public, const ]
AVKType GetPageUpKey(Void);

Reference

SFYContainer::SetPageUpKey


SFYContainer::GetScrollDownKey
Get the ScrollDown key to scroll down the virtual region of this responder.
[ public, const ]
AVKType GetScrollDownKey(Void);

Reference

SFYContainer::SetScrollDownKey | SFYContainer::SetScrollStep


SFYContainer::GetScrollRepeat
Get the value of repeat-scroll flag.
[ public, const ]
Bool GetScrollRepeat(Void);

Return value

  • If "true" is set to the repeat-scroll flag: true
  • Otherwise: false

Description

When "true" is set to the repeat-scroll flag, the focus will jump to the top or bottom if the user tries to move the focus which is at the bottom or top respectively.

Reference

SFYContainer::SetScrollRepeat


SFYContainer::GetScrollStep
Get the scroll-step. [pixels]
[ public, const ]
SInt16 GetScrollStep(Void);

Reference

SFYContainer::GetScrollDownKey | SFYContainer::SetScrollStep


SFYContainer::GetScrollUpKey
Get the ScrollUp key to scroll up the virtual region of this responder.
[ public, const ]
AVKType GetScrollUpKey(Void);

Reference

SFYContainer::SetScrollUpKey | SFYContainer::SetScrollStep


SFYContainer::GetSnapDownKey
Get the SnapDown key to scroll down the virtual region of this responder to the bottom.
[ public, const ]
AVKType GetSnapDownKey(Void);

Reference

SFYContainer::SetSnapDownKey


SFYContainer::GetSnapUpKey
Get the SnapUp key to scroll up the virtual region of this responder to the top.
[ public, const ]
AVKType GetSnapUpKey(Void);

Reference

SFYContainer::SetSnapUpKey


SFYContainer::HandlePageDownKey
This function will be called when the SFEVT_KEY event of the PageDown key is received.
[ protected, virtual ]
Bool HandlePageDownKey(Void);

Description

This function will be called when the SFEVT_KEY event(key event[SFEVT_KEY]) of the PageDown key set with the SFYContainer::SetPageDownKey function is received.

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

The default implementation is to scroll down a page of the virtual region by calling the SFYContainer::PageDown function.

Internal Implementation

Internal implementation of the SFYContainer::HandlePageDownKey function is as follows:

/*protected virtual */Bool SFYContainer::HandlePageDownKey(Void)
{
    return PageDown();
}// SFYContainer::HandlePageDownKey //

Reference

SFYContainer::SetPageDownKey | SFYContainer::PageDown | Key Event[SFEVT_KEY]


SFYContainer::HandlePageUpKey
This function will be called when the SFEVT_KEY event of the PageUp key is received.
[ protected, virtual ]
Bool HandlePageUpKey(Void);

Description

This function will be called when the SFEVT_KEY event(key event[SFEVT_KEY]) of the PageUp key set with the SFYContainer::SetPageUpKey function is received.

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

The default implementation is to scroll up a page of the virtual region by calling the SFYContainer::PageUp function.

Internal Implementation

Internal implementation of the SFYContainer::HandlePageUpKey function is as follows:

/*protected virtual */Bool SFYContainer::HandlePageUpKey(Void)
{
    return PageUp();
}// SFYContainer::HandlePageUpKey //

Reference

SFYContainer::SetPageDownKey | SFYContainer::PageUp | Key Event[SFEVT_KEY]


SFYContainer::HandleScrollDownKey
This function will be called when the SFEVT_KEY event of the ScrollDown key is received.
[ protected, virtual ]
Bool HandleScrollDownKey(Void);

Description

This function will be called when the SFEVT_KEY event(key event[SFEVT_KEY]) of the ScrollDown key set with the SFYContainer::SetScrollDownKey function is received.

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

The default implementation is to scroll down the virtual region by calling the SFYContainer::ScrollDown function.

Internal Implementation

Internal implementation of the SFYContainer::HandleScrollDownKey function is as follows:

/*protected virtual */Bool SFYContainer::HandleScrollDownKey(Void)
{
    return ScrollDown();
}// SFYContainer::HandleScrollDownKey //

Reference

SFYContainer::SetScrollDownKey | SFYContainer::ScrollDown | Key Event[SFEVT_KEY]


SFYContainer::HandleScrollUpKey
This function will be called when the SFEVT_KEY event of the ScrollUp key is received.
[ protected, virtual ]
Bool HandleScrollUpKey(Void);

Description

This function will be called when the SFEVT_KEY event(key event[SFEVT_KEY]) of the ScrollUp key set with the SFYContainer::SetScrollUpKey function is received.

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

The default implementation is to scroll up the virtual region by calling the SFYContainer::ScrollUp function.

Internal Implementation

Internal implementation of the SFYContainer::HandleScrollUpKey function is as follows:

/*protected virtual */Bool SFYContainer::HandleScrollUpKey(Void)
{
    return ScrollUp();
}// SFYContainer::HandleScrollUpKey //

Reference

SFYContainer::SetScrollUpKey | SFYContainer::ScrollUp | Key Event[SFEVT_KEY]


SFYContainer::HandleSnapDownKey
This function will be called when the SFEVT_KEY event of the SnapDown key is received.
[ protected, virtual ]
Bool HandleSnapDownKey(Void);

Description

This function will be called when the SFEVT_KEY event(key event[SFEVT_KEY]) of the SnapDown key set with the SFYContainer::SetSnapDownKey function is received.

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

The default implementation is to scroll up to the top of the virtual region by calling the SFYContainer::SnapDown function.

Internal Implementation

Internal implementation of the SFYContainer::HandleSnapDownKey function is as follows:

/*protected virtual */Bool SFYContainer::HandleSnapDownKey(Void)
{
    return SnapDown();
}// SFYContainer::HandleSnapDownKey //

Reference

SFYContainer::SetSnapDownKey | SFYContainer::SnapDown | Key Event[SFEVT_KEY]


SFYContainer::HandleSnapUpKey
This function will be called when the SFEVT_KEY event of the SnapUp key is received.
[ protected, virtual ]
Bool HandleSnapUpKey(Void);

Description

This function will be called when the SFEVT_KEY event(key event[SFEVT_KEY]) of the SnapUp key set with the SFYContainer::SetSnapUpKey function is received.

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

The default implementation is to scroll down to the bottom of the virtual region by calling the SFYContainer::SnapUp function.

Internal Implementation

Internal implementation of the SFYContainer::HandleSnapUpKey function is as follows:

/*protected virtual */Bool SFYContainer::HandleSnapUpKey(Void)
{
    return SnapUp();
}// SFYContainer::HandleSnapUpKey //

Reference

SFYContainer::SetSnapUpKey | SFYContainer::SnapUp | Key Event[SFEVT_KEY]


SFYContainer::PageDown
Scroll down a page of the virtual region.
[ public ]
Bool PageDown(Void);

Return value

false.

Description

This function is called in the SFYContainer::HandlePageDownKey function.

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

The default implementation is only to return "false".

Reference

SFYContainer::HandlePageDownKey | SFYContainer::PageUp


SFYContainer::PageUp
Scroll up a page of the virtual region.
[ public ]
Bool PageUp(Void);

Return value

false.

Description

This function is called in the SFYContainer::HandlePageUpKey function.

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

The default implementation is only to return "false".

Reference

SFYContainer::HandlePageUpKey | SFYContainer::PageDown


SFYContainer::ScrollDown
Scroll down the virtual region.
[ public ]
Bool ScrollDown(Void);

Return value

  • If succeeds: true
  • Otherwise: false

Description

This function is called in the SFYContainer::HandleScrollDownKey function.

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

The default implementation is to scroll down the virtual region as below.

  1. If there is the focused responder and the focus can be the next responder, the focus will be moved.
  2. If the focused responder is hidden from the screen, scroll down the virtual region until it can be seen.
  3. If the focus is at the last responder(the focus cannot be moved), scroll down the virtual region by the scroll-step set with the SFYContainer::SetScrollStep function..
  4. If there is no focused responder, the focus is moved to the first "enabled" responder and scroll down the virtual region until it can be seen.
  5. If there is no "enable" responder, scroll down the virtual region by the scroll-step set with the SFYContainer::SetScrollStep function..

Reference

SFYContainer::HandleScrollDownKey | SFYContainer::ScrollUp | SFYContainer::SetScrollStep


SFYContainer::ScrollUp
Scroll up the virtual region.
[ public ]
Bool ScrollUp(Void);

Return value

  • If succeeds: true
  • Otherwise: false

Description

This function is called in the SFYContainer::HandleScrollUpKey function.

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

The default implementation is to scroll up the virtual region as below.

  1. If there is the focused responder and the focus can be the previous responder, the focus will be moved.
  2. If the focused responder is hidden from the screen, scroll up the virtual region until it can be seen.
  3. If the focus is at the first responder(the focus cannot be moved), scroll up the virtual region by the scroll-step set with the SFYContainer::SetScrollStep function.
  4. If there is no focused responder, the focus is moved to the last "enabled" responder and scroll up the virtual region until it can be seen.
  5. If there is no "enable" responder, scroll up the virtual region by the scroll-step set with the SFYContainer::SetScrollStep function.

Reference

SFYContainer::HandleScrollUpKey | SFYContainer::ScrollDown | SFYContainer::SetScrollStep


SFYContainer::SetPageDownKey
Set the PageDown key to scroll down the virtual region of this responder by one page to the specified value.
[ public ]
Void SetPageDownKey(
    AVKType param   // key to set
);

Description

This function sets the PageDown key to scroll down a page of the virtual region of this responder to the specified value.

The SFYContainer::HandlePageDownKey function will be called when this key event occurs.

Default: AVK_TXPGDOWN

Reference

SFYContainer::HandlePageDownKey | SFYContainer::GetPageDownKey


SFYContainer::SetPageUpKey
Set the PageUp key to scroll up the virtual region of this responder by one page to the specified value.
[ public ]
Void SetPageUpKey(
    AVKType param   // key to set
);

Description

This function sets the PageUp key to scroll up a page of the virtual region of this responder to the specified value.

The SFYContainer::HandlePageUpKey function will be called when this key event occurs.

Default: AVK_TXPGUP

Reference

SFYContainer::HandlePageUpKey | SFYContainer::GetPageUpKey


SFYContainer::SetScrollDownKey
Set the ScrollDown key to scroll down the virtual region of this responder to the specified value.
[ public ]
Void SetScrollDownKey(
    AVKType param   // key to set
);

Description

This function sets the ScrollDown key to scroll down the virtual region of this responder to the specified value.

The SFYContainer::HandleScrollDownKey function will be called when this key event occurs.

Default: AVK_DOWN

Reference

SFYContainer::HandleScrollDownKey | SFYContainer::GetScrollDownKey | SFYContainer::SetScrollStep


SFYContainer::SetScrollRepeat
Set the repeat-scroll flag to the specified value.
[ public ]
Void SetScrollRepeat(
    Bool param   // value to set
);

Description

When the repeat-scroll flag is set to"true" , the focus will jump to the top or bottom if the user tries to move the focus which is at the bottom or top respectively.

Reference

SFYContainer::GetScrollRepeat


SFYContainer::SetScrollStep
Set the scroll-step to the specified value. [pixels]
[ public ]
Void SetScrollStep(
    SInt16 param   // scroll-step to set
);

Description

This function sets the scroll-step [pixel unit] to scroll using the SFYContainer::ScrollUp function and the SFYContainer::ScrollUp function to the specified value.

Default: DEFAULT_STEP(20 pixels)

Reference

SFYContainer::GetScrollStep | SFYContainer::DefaultEnum


SFYContainer::SetScrollUpKey
Set the ScrollUp key to scroll up the virtual region of this responder to the specified value.
[ public ]
Void SetScrollUpKey(
    AVKType param   // key to set
);

Description

This function sets the ScrollUp key to scroll up the virtual region of this responder to the specified value.

The SFYContainer::HandleScrollUpKey function will be called when this key event occurs.

Default: AVK_UP

Reference

SFYContainer::HandleScrollUpKey | SFYContainer::GetScrollUpKey | SFYContainer::SetScrollStep


SFYContainer::SetSnapDownKey
Set the SnapDown key to scroll down the virtual region of this responder to the bottom to the specified value.
[ public ]
Void SetSnapDownKey(
    AVKType param   // key to set
);

Description

This function sets the SnapDown key to scroll down to the bottom of the virtual region of this responder to the specified value.

The SFYContainer::HandleSnapDownKey function will be called when this key event occurs.

Default: AVK_TXEND

Reference

SFYContainer::HandleSnapDownKey | SFYContainer::GetSnapDownKey


SFYContainer::SetSnapUpKey
Set the SnapUp key to scroll up the virtual region of this responder to the top to the specified value.
[ public ]
Void SetSnapUpKey(
    AVKType param   // key to set
);

Description

This function sets the SnapUp key to scroll up to the top of the virtual region of this responder to the specified value.

The SFYContainer::HandleSnapUpKey function will be called when this key event occurs.

Default: AVK_TXHOME

Reference

SFYContainer::HandleSnapUpKey | SFYContainer::GetSnapUpKey


SFYContainer::SnapDown
Scroll down to the bottom of the virtual region.
[ public ]
Bool SnapDown(Void);

Return value

false.

Description

This function is called in the SFYContainer::HandleSnapDownKey function.

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

The default implementation is only to return "false".

Reference

SFYContainer::HandleSnapDownKey | SFYContainer::SnapUp


SFYContainer::SnapUp
Scroll up to the top of the virtual region.
[ public ]
Bool SnapUp(Void);

Return value

false.

Description

This function is called in the SFYContainer::HandleSnapUpKey function.

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

The default implementation is only to return "false".

Reference

SFYContainer::HandleSnapUpKey | SFYContainer::SnapDown


SFYContainer::CodeEnum
Constant that represents the SFYContainer class.
enum CodeEnum {
    CODE_TYPE = four_char_code('.', 'n', 't', 'n')
};
SFMTYPEDEFTYPE(CodeEnum)

Reference

SFYResponder::GetType | SFYResponder::SetType


SFYContainer::DefaultEnum
Constant that represents the default scroll-step[pixel unit].
enum DefaultEnum {
    DEFAULT_STEP  = 20  // default scroll-step[pixel unit]
};
SFMTYPEDEFTYPE(DefaultEnum)

Reference

SFYContainer::SetScrollStep