This commit is contained in:
parent
f02a4d3f4b
commit
6a5ad2cd8c
1 changed files with 64 additions and 0 deletions
64
include/Mw/LowLevel/Haiku.h
Normal file
64
include/Mw/LowLevel/Haiku.h
Normal file
|
|
@ -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 <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/LowLevel.h>
|
||||
|
||||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue