Files
MuditaOS/module-apps/application-desktop/widgets/DesktopInputWidget.hpp
Tomasz Sobkowiak 0d7bae0a55 [EGD-3109] Use more appropriate type instead of raw types
Position and Length used instead of raw ones
2021-05-05 09:12:29 +02:00

34 lines
916 B
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 "Application.hpp"
#include <AppWindow.hpp>
#include "Text.hpp"
#include "Image.hpp"
#include "ListItem.hpp"
#include <BoxLayout.hpp>
namespace gui
{
// class DesktopInputWidget : public ListItem
class DesktopInputWidget : public HBox
{
app::Application *application = nullptr;
HBox *body = nullptr;
gui::Image *replyImage = nullptr;
public:
gui::Text *inputText = nullptr;
DesktopInputWidget(app::Application *application, Item *parent, uint32_t x, uint32_t y, uint32_t w, uint32_t h);
~DesktopInputWidget() override = default;
auto handleRequestResize(const Item *, Length request_w, Length request_h) -> Size override;
};
} /* namespace gui */