1.11
picture.h
1/*
2 * Copyright (C) 2025 Microchip Technology Inc. All rights reserved.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6#ifndef EGT_PICTURE_H
7#define EGT_PICTURE_H
8
14#include <egt/image.h>
15#include <egt/widget.h>
16#include <string>
17
18namespace egt
19{
20inline namespace v1
21{
22
23class Frame;
24
28class EGT_API Picture final : public Widget
29{
30public:
31
37 explicit Picture(const std::string& uri = {},
38 const AlignFlags& flags = {},
39 const Rect& rect = {}) noexcept;
40
47 explicit Picture(Frame& parent,
48 const std::string& uri = {},
49 const AlignFlags& flags = {},
50 const Rect& rect = {}) noexcept;
51
55 explicit Picture(Serializer::Properties& props) noexcept;
56};
57
58}
59}
60
61#endif
Alignment flags.
Definition widgetflags.h:380
A Frame is a Widget that has children widgets.
Definition frame.h:45
A widget with only an image and related properties.
Definition picture.h:29
Picture(const std::string &uri={}, const AlignFlags &flags={}, const Rect &rect={}) noexcept
Picture(Serializer::Properties &props) noexcept
Picture(Frame &parent, const std::string &uri={}, const AlignFlags &flags={}, const Rect &rect={}) noexcept
std::list< std::tuple< std::string, std::string, Serializer::Attributes > > Properties
Definition serialize.h:47
Base Widget class.
Definition widget.h:53
EGT framework namespace.
Definition animation.h:24