milsko/include/Mw/LowLevel/Haiku.h

65 lines
1 KiB
C
Raw Normal View History

2026-04-28 18:46:51 +00:00
/*!
* @file Mw/LowLevel/Haiku.h
* @brief Haiku Backend
* @warning This is used internally
*/
#ifndef __MW_LOWLEVEL_HAIKU_H__
#define __MW_LOWLEVEL_HAIKU_H__
#include <Mw/MachDep.h>
#include <Mw/TypeDefs.h>
#include <Mw/LowLevel.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
class MwApplication : public BApplication {
2026-04-28 12:59:25 +00:00
public:
BWindow* window;
BLocker* locker;
2026-04-28 18:46:51 +00:00
2026-04-28 12:59:25 +00:00
MwApplication(BRect rc, MwLL handle);
~MwApplication();
2026-04-28 18:46:51 +00:00
2026-04-28 12:59:25 +00:00
void MessageReceived(BMessage* message);
2026-04-28 18:46:51 +00:00
};
class MwView : public BView {
2026-04-28 12:59:25 +00:00
public:
MwView(BRect rc, uint32 resizing, uint32 flags);
2026-04-28 18:46:51 +00:00
};
#else
typedef void MwApplication;
typedef void MwView;
#endif
2026-04-28 12:59:25 +00:00
enum B_MW_WHAT {
B_MW_DESTROY = 0
};
2026-04-28 18:46:51 +00:00
struct _MwLLHaiku {
struct _MwLLCommon common;
2026-04-28 12:59:25 +00:00
MwLL parent;
2026-04-28 18:46:51 +00:00
MwApplication* app;
2026-04-28 12:59:25 +00:00
MwView* view;
thread_id app_thread;
2026-04-28 18:46:51 +00:00
};
struct _MwLLHaikuColor {
struct _MwLLCommonColor common;
};
struct _MwLLHaikuPixmap {
struct _MwLLCommonPixmap common;
};
2026-04-28 12:59:25 +00:00
MWDECL int MwLLHaikuCallInit(void);
2026-04-28 18:46:51 +00:00
#ifdef __cplusplus
}
#endif
#endif