mcu_hi3321_watch/application/wearable/nativeapp/nativeui/bloodoxygen/include/BloodOxygenView.h
2025-05-26 20:15:20 +08:00

57 lines
1.5 KiB
C++

/*
* Copyright (c) CompanyNameMagicTag 2021-2021. All rights reserved.
* Description: bloodOxygen view
* Author:
* Create: 2021-08-01
*/
#ifndef BLOOD_OXYGEN_VIEW_H
#define BLOOD_OXYGEN_VIEW_H
#include "View.h"
#include "wearable_log.h"
#include "UiConfig.h"
#include "components/ui_label.h"
#include "components/ui_button.h"
#include "components/ui_label_button.h"
#include "components/ui_image_animator.h"
#include "components/ui_circle_progress.h"
#include "components/ui_view_group.h"
#include "BloodOxygenPresenter.h"
#include "BloodBandoffView.h"
namespace OHOS {
class BloodOxygenView : public View<BloodOxygenPresenter> {
public:
BloodOxygenView();
~BloodOxygenView() override;
void OnStart() override;
static BloodOxygenView *GetInstance(void);
UILabel *GetPercent();
UIViewGroup *GetBloodOxygenGroup();
UILabelButton *GetTestButton();
UICircleProgress *GetCircleProgress();
private:
bool InitImageDisplay();
bool SetOnDragListener();
UICircleProgress *CreateAndSetUICircleProgress();
UILabelButton *CreateAndSetUIButton(const char *title);
UIView *CreateAndSetUIView(int16 x, int16 y) const;
BloodBandoffView *bloodbandoff{nullptr};
UIImageView *imageViewMain;
UIImageView *imageViewProgress;
UIImageAnimatorView *imageAnimator;
UILabel *percent;
UIViewGroup *group;
UILabelButton *testButton;
UICircleProgress *circleProgress;
};
}
#endif // 血氧主界面