37 lines
992 B
C++
37 lines
992 B
C++
#ifndef STACK_PANEL_T_H
|
|
#define STACK_PANEL_T_H
|
|
|
|
#include <cstddef>
|
|
|
|
#include "Color_t.hpp"
|
|
#include "PositionalProperties_t.hpp"
|
|
#include <functional>
|
|
|
|
//namespace myink { namespace ui {
|
|
class StackPanel;
|
|
typedef StackPanel * StackPanelPtr;
|
|
|
|
typedef size_t LineWidth;
|
|
typedef size_t Margin;
|
|
typedef size_t Padding;
|
|
using DrawItemCallBack = std::function<PositionalProperties(const PositionalProperties &)>;
|
|
typedef struct DrawItemCallBackList_t
|
|
{
|
|
size_t size;
|
|
DrawItemCallBack * callbacks;
|
|
} DrawItemCallBackList, *DrawItemCallBackListPtr;
|
|
|
|
typedef PositionalProperties (*MoveToNextItem)(const PositionalProperties &, const PositionalProperties & );
|
|
|
|
typedef struct StackPanelStyleProperties_t
|
|
{
|
|
Color background_color;
|
|
LineWidth border_line_width;
|
|
Color border_line_color;
|
|
Margin margin;
|
|
Padding padding;
|
|
} StackPanelStyleProperties, *StackPanelStylePropertiesPtr;
|
|
|
|
//}}
|
|
|
|
#endif |