21 lines
504 B
C
21 lines
504 B
C
// widgetWrapBox.h -- Flow/wrap layout container
|
|
//
|
|
// Lays out children left-to-right, wrapping to the next row when
|
|
// the available width is exceeded.
|
|
|
|
#ifndef WIDGET_WRAPBOX_H
|
|
#define WIDGET_WRAPBOX_H
|
|
|
|
#include "dvxWidget.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 // WIDGET_WRAPBOX_H
|