mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-30 00:41:54 -05:00
Created first version of onBoarding application. Added welcome window, configuration start window and adopted language window. Small Icon GUI refactor. AppManager language copy removed.
42 lines
1.2 KiB
C++
42 lines
1.2 KiB
C++
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include <list>
|
|
|
|
#include "Rect.hpp"
|
|
#include "../core/DrawCommand.hpp"
|
|
#include "../core/PixMap.hpp"
|
|
#include "utf8/UTF8.hpp"
|
|
|
|
namespace gui
|
|
{
|
|
|
|
/// image element on screen, it will automatically set it's size to fit space of selected image
|
|
class Image : public Rect
|
|
{
|
|
protected:
|
|
/// internal representation of the image
|
|
ImageMap *imageMap = nullptr;
|
|
|
|
public:
|
|
Image();
|
|
/// create new Image element and resize it to size needed by selected Image
|
|
Image(const UTF8 &);
|
|
Image(Item *parent, const UTF8 &imageName);
|
|
/// Create new Image element on position x,y w&h will be *ignored*
|
|
Image(Item *parent, uint32_t x, uint32_t y, uint32_t w, uint32_t h, const UTF8 = UTF8{""});
|
|
Image(Item *parent, uint32_t x, uint32_t y, const UTF8 imgName = UTF8{""})
|
|
: Image(parent, x, y, 0u, 0u, imgName)
|
|
{}
|
|
|
|
bool set(int id);
|
|
void set(const UTF8 &name);
|
|
|
|
void buildDrawListImplementation(std::list<Command> &commands) override;
|
|
void accept(GuiVisitor &visitor) override;
|
|
};
|
|
|
|
} /* namespace gui */
|