From 6a5ad2cd8ce34ce8f4d3c879fc9329b966108ba8 Mon Sep 17 00:00:00 2001 From: Nishi Date: Tue, 28 Apr 2026 18:46:51 +0000 Subject: [PATCH] oops --- include/Mw/LowLevel/Haiku.h | 64 +++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 include/Mw/LowLevel/Haiku.h diff --git a/include/Mw/LowLevel/Haiku.h b/include/Mw/LowLevel/Haiku.h new file mode 100644 index 0000000..d6ed9af --- /dev/null +++ b/include/Mw/LowLevel/Haiku.h @@ -0,0 +1,64 @@ +/*! + * @file Mw/LowLevel/Haiku.h + * @brief Haiku Backend + * @warning This is used internally + */ +#ifndef __MW_LOWLEVEL_HAIKU_H__ +#define __MW_LOWLEVEL_HAIKU_H__ + +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +class MwApplication : public BApplication { + private: + void ReadyToRun(); + + public: + BWindow* window; + int ready; + BLocker* locker; + + MwApplication(BRect rc, MwLL handle); + ~MwApplication(); + + void Pulse(); +}; + +class MwView : public BView { + public: + MwView(MwApplication* app, BRect rc, uint32 resizing, uint32 flags); +}; +#else +typedef void MwApplication; +typedef void MwView; +#endif + +struct _MwLLHaiku { + struct _MwLLCommon common; + + MwLL parent; + MwApplication* app; + MwView* view; +}; + +struct _MwLLHaikuColor { + struct _MwLLCommonColor common; +}; + +struct _MwLLHaikuPixmap { + struct _MwLLCommonPixmap common; +}; + +MWDECL int MwLLHaikuCallInit(void); + +#ifdef __cplusplus +} +#endif + +#endif