This commit is contained in:
parent
1eb0b0154b
commit
c998c61655
4 changed files with 231 additions and 15 deletions
|
|
@ -33,14 +33,21 @@ class MwView : public BView {
|
|||
public:
|
||||
MwLL handle;
|
||||
BLocker* locker;
|
||||
uint32 buttons;
|
||||
|
||||
MwView(MwLL handle, BRect rc, uint32 resizingMode, uint32 flags);
|
||||
~MwView();
|
||||
|
||||
void MessageReceived(BMessage* message);
|
||||
void PostMessage(BMessage* message);
|
||||
void PostMessage(uint32 command);
|
||||
void Invalidate();
|
||||
|
||||
void AttachedToWindow();
|
||||
void Draw(BRect updateRect);
|
||||
void MouseDown(BPoint point);
|
||||
void MouseUp(BPoint point);
|
||||
void MouseMoved(BPoint point, uint32 transit, const BMessage* message);
|
||||
|
||||
void SetColor(MwLLColor color);
|
||||
};
|
||||
|
|
@ -51,9 +58,12 @@ class MwWindow : public BWindow {
|
|||
|
||||
void MessageReceived(BMessage* message);
|
||||
};
|
||||
|
||||
typedef BBitmap MwBBitmap;
|
||||
#else
|
||||
typedef void MwApplication;
|
||||
typedef void MwView;
|
||||
typedef void MwBBitmap;
|
||||
#endif
|
||||
|
||||
typedef union _MwLLHaikuEvent MwLLHaikuEvent;
|
||||
|
|
@ -63,11 +73,17 @@ enum BAPP_MW_WHAT {
|
|||
};
|
||||
|
||||
enum BVIEW_MW_WHAT {
|
||||
BVIEW_MW_RESIZE = 0,
|
||||
BVIEW_MW_DESTROY = 0,
|
||||
BVIEW_MW_DETACH,
|
||||
BVIEW_MW_RESIZE,
|
||||
BVIEW_MW_MOVE,
|
||||
BVIEW_MW_SHOW,
|
||||
BVIEW_MW_HIDE,
|
||||
BVIEW_MW_SET_COLOR,
|
||||
BVIEW_MW_POLYGON,
|
||||
BVIEW_MW_BITMAP
|
||||
BVIEW_MW_LINE,
|
||||
BVIEW_MW_BITMAP,
|
||||
BVIEW_MW_RENDER
|
||||
};
|
||||
|
||||
enum BWIN_MW_WHAT {
|
||||
|
|
@ -75,11 +91,21 @@ enum BWIN_MW_WHAT {
|
|||
};
|
||||
|
||||
enum MwLLHAIKU_EVENT {
|
||||
MwLLHAIKU_EVENT_DRAW = 0
|
||||
MwLLHAIKU_EVENT_DRAW = 0,
|
||||
MwLLHAIKU_EVENT_MOUSEDOWN,
|
||||
MwLLHAIKU_EVENT_MOUSEUP,
|
||||
MwLLHAIKU_EVENT_MOUSEMOVED
|
||||
};
|
||||
|
||||
struct _MwLLHaikuEventMouse {
|
||||
int type;
|
||||
MwPoint point;
|
||||
int button;
|
||||
};
|
||||
|
||||
union _MwLLHaikuEvent {
|
||||
int type;
|
||||
int type;
|
||||
struct _MwLLHaikuEventMouse mouse;
|
||||
};
|
||||
|
||||
struct _MwLLHaiku {
|
||||
|
|
@ -105,7 +131,7 @@ struct _MwLLHaikuColor {
|
|||
struct _MwLLHaikuPixmap {
|
||||
struct _MwLLCommonPixmap common;
|
||||
|
||||
BBitmap* bitmap;
|
||||
MwBBitmap* bitmap;
|
||||
};
|
||||
|
||||
MWDECL int MwLLHaikuCallInit(void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue