Set dimensions, position & alignment separately

This commit is contained in:
2022-05-19 23:31:53 +02:00
parent 9a6ae2c6d9
commit 3934e4777f
6 changed files with 106 additions and 31 deletions

View File

@ -11,7 +11,7 @@
constexpr const char* FT_LOGO_PATH = "resources/Fasttube_Logo-white.bmp";
constexpr const char* AVENIR_FONT_PATH = "resources/Avenir-Book.ttf";
class AMI : public View {
class AMI final : public View {
public:
AMI(SDL_Renderer* renderer);
@ -20,5 +20,8 @@ public:
private:
TTF_Font* avenir;
std::vector<std::unique_ptr<Widget>> widgets;
std::vector<Widget*> widgets;
ImageWidget ft_logo;
TextWidget choose;
};