![]() ![]() ![]()
|
BREW C++ Class Library & GUI Framework & XML Middleware : SophiaFramework 4.1 |
The SFXEvent class encapsulates the event type(= event code of AEEEvent type) and two event parameters(P16 value and P32 value), which are passed to the event handler.
| Constructor/Destructor |
|---|
|
SFXEvent( Void ) Constructor of SFXEvent class.
|
|
SFXEvent(
SFXEventConstRef param
) Constructor of SFXEvent class.
|
|
SFXEvent(
AEEEvent type
, UInt16 p16
, UInt32 p32
) Constructor of SFXEvent class.
|
| Public Functions | |
|---|---|
| Bool |
Equals(
SFXEventConstRef param
) Equals( AEEEvent type , UInt16 p16 , UInt32 p32 ) Check whether this event equals a specified event or not.
|
| Bool |
EqualsTypeP16(
SFXEventConstRef param
) EqualsTypeP16( AEEEvent type , UInt16 p16 ) Check whether the event type and the 16-bit parameter matches with specified values or not.
|
| UInt16 |
GetP16( Void ) Get the 16-bit parameter.
|
| UInt32 |
GetP32( Void ) Get the 32-bit parameter.
|
| AEEEvent |
GetType( Void ) Get the event type.
|
| static SFXEventConstRef |
NoneInstance( Void ) Return an instance that represents SFEVT_NONE.
|
| Void |
Set(
SFXEventConstRef param
) Set( AEEEvent type , UInt16 p16 , UInt32 p32 ) Set specified values to this event.
|
| Void |
SetP16(
UInt16 param
) Set the 16-bit parameter.
|
| Void |
SetP32(
UInt32 param
) Set the 32-bit parameter.
|
| Void |
SetType(
AEEEvent param
) Set the event type.
|
| Void |
SetTypeP16(
AEEEvent type
, UInt16 p16
) Set the event type and the 16-bit parameter.
|
| SFXEventRef |
operator=(
SFXEventConstRef param
) Assign a specified event.
|
| SFXEvent::AtomRec * |
atomic_cast(
SFXEvent * param
) Convert SFXEvent into SFXEvent::AtomRec.
|
| SFXEvent::AtomRec const * |
atomic_cast(
SFXEvent const * param
) Convert SFXEvent into SFXEvent::AtomRec.
|
| Bool |
operator==(
SFXEventConstRef left
, SFXEventConstRef right
) Check the "==" relation.
|
| Bool |
operator!=(
SFXEventConstRef left
, SFXEventConstRef right
) Check the "!=" relation.
|
| Types |
|---|
|
AtomRec
The SFXEvent::AtomRec structure represents an event.
|
| Global Functions | |
|---|---|
| SFXEvent::AtomRec * |
atomic_cast(
SFXEvent * param
) Convert SFXEvent into SFXEvent::AtomRec.
|
| SFXEvent::AtomRec const * |
atomic_cast(
SFXEvent const * param
) Convert SFXEvent into SFXEvent::AtomRec.
|
| Bool |
operator==(
SFXEventConstRef left
, SFXEventConstRef right
) Check the "==" relation.
|
| Bool |
operator!=(
SFXEventConstRef left
, SFXEventConstRef right
) Check the "!=" relation.
|
[ public, explicit ] SFXEvent(Void);
[ public ]
SFXEvent(
SFXEventConstRef param // SFXEvent to copy
);
[ public, explicit ]
SFXEvent(
AEEEvent type // event type
UInt16 p16 // 16-bit parameter
UInt32 p32 // 32-bit parameter
);
[ public, const ] Bool Equals( SFXEventConstRef param // SFXEvent to be compared );
[ public, const ] Bool Equals( AEEEvent type // event type UInt16 p16 // 16-bit event parameter UInt32 p32 // 32-bit event parameter );
[ public, const ] Bool EqualsTypeP16( SFXEventConstRef param // event to be compared );
[ public, const ] Bool EqualsTypeP16( AEEEvent type // event type to be compared UInt16 p16 // 16-bit parameter to be compared );
SFXEvent::GetP16 | SFXEvent::SetP16 | SFXEvent::GetType | SFXEvent::SetType
[ public, const ] UInt16 GetP16(Void);
[ public, const ] UInt32 GetP32(Void);
[ public, const ] AEEEvent GetType(Void);
[ public, static ] SFXEventConstRef NoneInstance(Void);
The SFXEvent::NoneInstance function is the same as the constructor of SFXEvent(SFEVT_NONE, 0, 0), but the SFXEvent::NoneInstance function is much faster.
[ public ] Void Set( SFXEventConstRef param // SFXEvent instance to copy );
[ public ] Void Set( AEEEvent type // event type UInt16 p16 // 16-bit parameter UInt32 p32 // 32-bit parameter );
SFXEvent::SFXEvent | SFXEvent::SetP16 | SFXEvent::SetP32 | SFXEvent::SetType
[ public ] Void SetTypeP16( AEEEvent type // event type to set UInt16 p16 // 16-bit parameter to set );
SFXEvent::EqualsTypeP16 | SFXEvent::SetType | SFXEvent::SetP16
[ public, friend ]
SFXEvent::AtomRec * atomic_cast(
SFXEvent * param // event to cast
);
[ public, friend ]
SFXEvent::AtomRec const * atomic_cast(
SFXEvent const * param // event to cast
);
[ public ] SFXEventRef operator=( SFXEventConstRef param // event to assign );
[ public, friend ] Bool operator==( SFXEventConstRef left // event to be compared SFXEventConstRef right // event to compare with );
[ public, friend ] Bool operator!=( SFXEventConstRef left // event to be compared SFXEventConstRef right // event to compare with );
[ public ]
struct AtomRec {
AEEEvent type; // event type
UInt16 p16; // 16-bit parameter
UInt32 p32; // 32-bit parameter
};
|
Copyright (C) 2002 - 2009 Sophia Cradle, Inc. All Rights Reserved. |
![]() ![]() ![]()
|