Files
openglplayground/LinearLayout.hh
2015-03-09 01:11:13 +01:00

28 lines
607 B
C++

#ifndef __OPENGLPLAYGROUND_LINEARLAYOUT_HH__
#define __OPENGLPLAYGROUND_LINEARLAYOUT_HH__
#include "View.hh"
static const int DIR_VERTICAL = 0;
static const int DIR_HORIZONTAL = 0;
class LinearLayout : public View {
public:
LinearLayout(int direction = DIR_VERTICAL, int width = WRAP_CONTENT, int height = WRAP_CONTENT, std::string name = "");
LinearLayout(LinearLayout const& copy) = delete;
LinearLayout& operator=(LinearLayout const& copy) = delete;
~LinearLayout();
void setChildPadding(int pad);
protected:
void layout() override;
int direction_;
int padChildren_;
};
#endif