43 lines
1.3 KiB
C++
43 lines
1.3 KiB
C++
/*----------------------------------------------------------------------------
|
|
* Copyright (c) TJD Technologies Co., Ltd. 2025. All rights reserved.
|
|
*
|
|
* Description: TjdUiWatchFaceAdapter.h
|
|
*
|
|
* Author: luziquan@ss-tjd.com
|
|
*
|
|
* Create: 2025-05-17
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
#ifndef TJD_UI_WATCH_FACE_ADAPTER_H
|
|
#define TJD_UI_WATCH_FACE_ADAPTER_H
|
|
|
|
#include "components/ui_transform_group.h"
|
|
#include "components/ui_image_view.h"
|
|
|
|
namespace TJD{
|
|
|
|
class WatchFaceCoverflowItemView : public OHOS::UITransformGroup
|
|
{
|
|
public:
|
|
WatchFaceCoverflowItemView();
|
|
~WatchFaceCoverflowItemView();
|
|
void Resize(int16_t width, int16_t height) override;
|
|
void SetSrc(const char *src) { icon_.SetSrc(src); }
|
|
void SetSrc(const OHOS::ImageInfo *src) { icon_.SetSrc(src); }
|
|
void SetWfId(uint32_t wfId) { wfId_ = wfId; }
|
|
uint32_t GetWfId(void) { return wfId_; }
|
|
void SetName(const std::string &name) { name_ = name; }
|
|
const std::string &GetName(void) { return name_; }
|
|
void SetOperatorFlag(uint8_t flag) { operatorFlag_ = flag; }
|
|
uint8_t GetOperatorFlag(void) { return operatorFlag_; }
|
|
|
|
private:
|
|
OHOS::UIImageView icon_;
|
|
uint32_t wfId_{0};
|
|
std::string name_;
|
|
uint8_t operatorFlag_{0};
|
|
};
|
|
|
|
}
|
|
|
|
#endif |