mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-28 00:38:40 -04:00
31 lines
915 B
C++
31 lines
915 B
C++
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include "Label.hpp"
|
|
#include "Image.hpp"
|
|
#include "ListItem.hpp"
|
|
|
|
namespace gui
|
|
{
|
|
class BaseThreadItem : public ListItem
|
|
{
|
|
|
|
protected:
|
|
gui::Label *contact = nullptr;
|
|
gui::Label *numberImportance = nullptr;
|
|
gui::Label *timestamp = nullptr;
|
|
gui::Label *preview = nullptr;
|
|
|
|
virtual void onDimensionChangedTop(const BoundingBox &oldDim, const BoundingBox &newDim);
|
|
virtual void onDimensionChangedBottom(const BoundingBox &oldDim, const BoundingBox &newDim);
|
|
|
|
void displayNumberImportance(long int importance);
|
|
|
|
public:
|
|
BaseThreadItem();
|
|
bool onDimensionChanged(const BoundingBox &oldDim, const BoundingBox &newDim) override;
|
|
};
|
|
} // namespace gui
|