aboutsummaryrefslogtreecommitdiff
path: root/include/gui/List.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/gui/List.hpp')
-rw-r--r--include/gui/List.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/gui/List.hpp b/include/gui/List.hpp
index 23bf5ea..8c4e1fc 100644
--- a/include/gui/List.hpp
+++ b/include/gui/List.hpp
@@ -12,7 +12,13 @@ namespace gsr {
HORIZONTAL
};
- List(Orientation orientation);
+ enum class Alignment {
+ START,
+ CENTER,
+ END
+ };
+
+ List(Orientation orientation, Alignment content_alignment = Alignment::START);
List(const List&) = delete;
List& operator=(const List&) = delete;
@@ -24,5 +30,6 @@ namespace gsr {
protected:
std::vector<std::unique_ptr<Widget>> widgets;
Orientation orientation;
+ Alignment content_alignment;
};
} \ No newline at end of file