WIP: GUI Toolkit
This commit is contained in:
27
LinearLayout.hh
Normal file
27
LinearLayout.hh
Normal file
@@ -0,0 +1,27 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user