Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_Event< kEventClassWindow, kEventWindowDrawContent > Class Template Reference

Inheritance diagram for CP_Event< kEventClassWindow, kEventWindowDrawContent >:

CP_Event_Base CP_Event_Imp CP_NoCopy List of all members.

Public Member Functions

virtual UInt32 GetClass () const
virtual UInt32 GetKind () const
GdkEvent * GetGdkEvent ()
Constructor / Destructor
 CP_Event (CP_Event_Base &inEvent)
 Constructor.

Protected Member Functions

void CopyImpFields (const CP_Event_Imp &inEventImp)

Protected Attributes

OSStatus fStatus
UInt32 fMessage
UInt32 fWhen
OSWindow fWindow
CP_Point fWhere
UInt32 fParam1
SInt32 fParam2

template<>
class CP_Event< kEventClassWindow, kEventWindowDrawContent >


Member Function Documentation

CP_Event< kEventClassWindow, kEventWindowDrawContent >::CP_Event CP_Event_Base inEvent  ) 
 

Carbon Event handler for the kEventWindowDrawContent event.

Extracts the following fields:

  • none

Parameters:
inEvent The base event that contains the Carbon Event information for this event.
Exceptions:
none 
Returns:
void

OSStatus CP_Event_Base::GetStatus  )  [inherited]
 

Returns the status of the event. This will be the status returned to the underlying OS.

Exceptions:
none 
Returns:
OSStatus The OSStatus code returned to the OS.

void CP_Event_Base::SetStatus OSStatus  inStatus  )  [inherited]
 

Sets the status of the event. This will be the status returned to the underlying OS.

Parameters:
inStatus The status thats going to be returned to the underlying OS.
Exceptions:
none 
Returns:
void

UInt32 CP_Event_Imp::GetClass  )  const [virtual, inherited]
 

Return the event class for this CarbonEvent.

Returns:
UInt32 The event class for this event.

virtual UInt32 CP_Event_Imp::GetClass  )  const [virtual, inherited]
 

UInt32 CP_Event_Imp::GetKind  )  const [virtual, inherited]
 

Return the event kind for this CarbonEvent.

Returns:
UInt32 The event kind for this event.

virtual UInt32 CP_Event_Imp::GetKind  )  const [virtual, inherited]
 

GdkEvent* CP_Event_Imp::GetGdkEvent  )  [inherited]
 

void CP_Event_Imp::CopyImpFields const CP_Event_Imp inEventImp  )  [protected, inherited]
 

Copyies the CP_Event_Imp fields for this class.

Parameters:
inEventImp The CP_Event_Imp fields to copy.
Exceptions:
none 
Returns:
void

void CP_Event_Imp::CopyImpFields const CP_Event_Imp inEventImp  )  [protected, inherited]
 

void CP_Event_Imp::CopyImpFields const CP_Event_Imp inEventImp  )  [protected, inherited]
 

CP_Event_Imp::operator EventRef &  )  [inherited]
 

operator EventRef for returning the EventRef for this event.

Returns:
EventRef Returns a reference to the EventRef for this event.

EventRef CP_Event_Imp::GetEventRef  )  [inherited]
 

Returns the EventRef for this event.

Returns:
EventRef Returns a reference to the EventRef for this event.

CP_Event_Imp::operator EventHandlerCallRef &  )  [inherited]
 

operator EventHanlerCallRef for returning the EventHandlerCallRef for this event.

Returns:
EventHandlerCallRef Returns a reference to the EventHandlerCallRef for this event.

EventHandlerCallRef CP_Event_Imp::GetEventHandlerCallRef  )  [inherited]
 

Returns the EventHandlerCallRef for this event.

Returns:
EventHandlerCallRef Returns a reference to the EventHandlerCallRef for this event.

void CP_Event_Imp::StoreExceptionInfo EventRef  inEvent,
const std::exception &  inEx
throw () [static, inherited]
 

Not yet implemented.

Parameters:
inEvent Not yet implemented.
inHandlerCallRef Not yet implemented.
Exceptions:
none 

void CP_Event_Imp::RethrowException EventRef  inEvent,
OSStatus  inStatus
[static, inherited]
 

Not yet implemented.

Parameters:
inEvent Not yet implemented.
inStatus Not yet implemented.
Exceptions:
none 

OSStatus CP_Event_Imp::GetParameter EventParamName  inName,
EventParamType  inType,
UInt32  inBufferSize,
void *  outData
[inherited]
 

Generic method to return a parameter from this CarbonEvent. There are many template version that can be used to retrieve specific types, and are prefererred over calling this directly.

This will return a CP_paramErr if the passed in buffer is NULL.

Parameters:
inName Name of the parameter to get.
inType Type of the parameter to get.
inBufferSize Size of the buffer to hold the returned result in.
outData Buffer to hold the returned result in.
Exceptions:
none 
Returns:
OSStatus Result code from the CarbonEvent Manager.

OSStatus CP_Event_Imp::GetParameter EventParamName  inName,
HICommand *  outValue
[inherited]
 

Method to return an HICommand parameter

Parameters:
inName Name of the parameter to get.
outValue Buffer to hold the returned HICommand
Exceptions:
none 
Returns:
OSStatus Result code from the CarbonEvent Manager.

template<class T>
OSStatus CP_Event_Imp::GetParameter EventParamName  inName,
EventParamType  inType,
T *  outValue
[inherited]
 

Template method for getting a parameter out of the CarbonEvent. This method is used by the specific parametter getters to return a specific type of parameter from this event.

Parameters:
inName EventParamName of the parameter to return.
inType EventParamType of the parameter to return.
Returns:
OSStatus CarbonEvent Manager result of the operation.

void CP_Event_Imp::Retain  )  [inherited]
 

Retain this event. Calls on the CarbonEvent Manager to perform the retain.

Exceptions:
none 
Returns:
void

void CP_Event_Imp::Release  )  [inherited]
 

Release this event. Calls on the CarbonEvent Manager to perform the release.

Exceptions:
none 
Returns:
void

void CP_Event_Imp::Send EventTargetRef  inTarget,
OptionBits  inOptionBits = 0
[inherited]
 

Sends the event to the passed in target reference.

Parameters:
inTarget Event target to send the event to.
inOptionBits Options to be sent for the event.
Exceptions:
none 
Returns:
void

OSStatus CP_Event_Imp::Send EventTargetRef  inTarget,
const std::nothrow_t &  ,
OptionBits  inOptionBits = 0
throw () [inherited]
 

Sends the event to the passed in target reference.

Parameters:
inTarget Event target to send the event to.
nothrow 
inOptionBits Options to be sent for the event.
Exceptions:
none 
Returns:
void

void CP_Event_Imp::Send HWND  inTarget  )  [inherited]
 

Sends the event.

Returns:
void

void CP_Event_Imp::Set EventRef  inEvent,
EventHandlerCallRef  inHandlerCallRef
[inherited]
 

Sets the event reference information for this event, and then calls Retain().

Parameters:
inEvent MacOS CarbonEvent EventRef for this event.
inHandlerCallRef MacOS CarbonEvent EventHandlerCallRef for this event.
Exceptions:
none 
Returns:
void

void CP_Event_Imp::ToWinMSG MSG &  msg  )  [inherited]
 

Return a Windows MSG structure from the fields of our class.

Parameters:
outMsg Windows MSG structure to hold the returns result in.
Exceptions:
none 
Returns:
void

void CP_Event_Imp::FromWinMSG MSG &  msg  )  [inherited]
 

Fill in the fields for this event from the passed in Windows MSG structure.

Parameters:
inMsg Windows MSG structure containing information about the current event.
Exceptions:
none 
Returns:
void

UInt32 CP_Event_Imp::GetWParam  )  [inherited]
 

SInt32 CP_Event_Imp::GetLParam  )  [inherited]
 

OSWindow CP_Event_Imp::GetOSWindow  )  [inherited]
 

void CP_Event_Imp::SetWParam UInt32  inWParam  )  [inherited]
 

void CP_Event_Imp::SetLParam SInt32  inLParam  )  [inherited]
 

void CP_Event_Imp::SetOSWindow OSWindow  inWindow  )  [inherited]
 


Member Data Documentation

OSStatus CP_Event_Base::fStatus [protected, inherited]
 

UInt32 CP_Event_Imp::fMessage [protected, inherited]
 

UInt32 CP_Event_Imp::fWhen [protected, inherited]
 

Message for the event.

OSWindow CP_Event_Imp::fWindow [protected, inherited]
 

Time the event occurred at.

Reimplemented in CP_Event< kEventClassMouse, kEventMouseMoved >.

CP_Point CP_Event_Imp::fWhere [protected, inherited]
 

Window the event occurred in

UInt32 CP_Event_Imp::fParam1 [protected, inherited]
 

Mouse location for this event.

SInt32 CP_Event_Imp::fParam2 [protected, inherited]
 

wParam for this event.


The documentation for this class was generated from the following files:
Generated on Sat Sep 17 20:01:38 2005 for CPLAT by  doxygen 1.4.0