DVX_GUI/widgets/wrapBox/wrapBox.h

21 lines
474 B
C

// wrapBox.h -- Flow/wrap layout container
//
// Lays out children left-to-right, wrapping to the next row when
// the available width is exceeded.
#ifndef WRAPBOX_H
#define WRAPBOX_H
#include "dvxWgt.h"
typedef struct {
WidgetT *(*create)(WidgetT *parent);
} WrapBoxApiT;
static inline const WrapBoxApiT *dvxWrapBoxApi(void) {
return (const WrapBoxApiT *)wgtGetApi("wrapbox");
}
#define wgtWrapBox(parent) dvxWrapBoxApi()->create(parent)
#endif // WRAPBOX_H