2015-11-17 10:49:23 -06:00
|
|
|
// 17 november 2015
|
|
|
|
// TODO versioning macros?
|
2015-11-17 18:18:55 -06:00
|
|
|
#include <AppKit.h>
|
2015-11-17 10:49:23 -06:00
|
|
|
#include <InterfaceKit.h>
|
2015-11-18 14:47:15 -06:00
|
|
|
#include <GroupLayout.h>
|
2015-11-17 19:01:01 -06:00
|
|
|
#include "../ui.h"
|
2015-11-17 10:49:23 -06:00
|
|
|
#include "../ui_haiku.hpp"
|
|
|
|
#include "../common/uipriv.h"
|
2015-11-17 11:51:51 -06:00
|
|
|
|
2015-11-19 11:41:58 -06:00
|
|
|
// alloc.cpp
|
2015-11-17 11:51:51 -06:00
|
|
|
extern void initAlloc(void);
|
|
|
|
extern void uninitAlloc(void);
|
2015-11-19 11:41:58 -06:00
|
|
|
|
|
|
|
// singlechild.cpp
|
|
|
|
extern struct singleChild *newSingleChild(uiControl *c, uiControl *parent, void (*attach)(void *, BLayoutItem *), void *attachTo);
|
|
|
|
extern void singleChildRemove(struct singleChild *s);
|
|
|
|
extern void singleChildDestroy(struct singleChild *s);
|
|
|
|
extern BLayoutItem *singleChildLayoutItem(struct singleChild *s);
|
|
|
|
extern void singleChildUpdateState(struct singleChild *s);
|
|
|
|
extern void singleChildSetMargined(struct singleChild *s, float inset);
|
2015-11-20 10:45:04 -06:00
|
|
|
|
|
|
|
// TODO make this public?
|
|
|
|
#define mControlField "libui_uiControl"
|
|
|
|
// TODO write helper functions?
|