who can tell me something about the difference between IModule and IWindow | developer.brewmp.com who can tell me something about the difference between IModule and IWindow | developer.brewmp.com

Developer

who can tell me something about the difference between IModule and IWindow

Forums:

these days I have do some native develop, I want to develop some specifically components that inherit IModule interface,but when we discussed,someone said that we can use IWindow interface.

who can tell me something about the difference between IModule and IWindow,and their merits & demerits

What is iwindow? Never heard of it, and cannot see it in the api specs..
/kUfa

What is iwindow? Never heard of it, and cannot see it in the api specs..
/kUfa

just like the usage in the Brew Example_MediaPlayer,
IWindow is the struct that define event interface table,current active interface will be drew bace its own IWindow struct
just like define:
typedef struct _IWindow IWindow;
QINTERFACE(IWindow)
{
// Enables/Disables the window. Window controls will not process
// events if the window is disabled.
void (*Enable)(IWindow * po, boolean bEnable);
// Redraws the window if enabled
void (*Redraw)(IWindow * po);
// Handles the events routed to the window
boolean (*HandleEvent)(IWindow * po, AEEEvent eCode, uint16 wParam, uint32 dwParam);
// Releases the window resources
void (*Delete)(IWindow * po);
;

just like the usage in the Brew Example_MediaPlayer,
IWindow is the struct that define event interface table,current active interface will be drew bace its own IWindow struct
just like define:
typedef struct _IWindow IWindow;
QINTERFACE(IWindow)
{
// Enables/Disables the window. Window controls will not process
// events if the window is disabled.
void (*Enable)(IWindow * po, boolean bEnable);
// Redraws the window if enabled
void (*Redraw)(IWindow * po);
// Handles the events routed to the window
boolean (*HandleEvent)(IWindow * po, AEEEvent eCode, uint16 wParam, uint32 dwParam);
// Releases the window resources
void (*Delete)(IWindow * po);
;

ok thx for the info, i ll have a look at it!
/kUfa

ok thx for the info, i ll have a look at it!
/kUfa

:) thank u

:) thank u