Screen.h
Screen.h
CPP1/* Copyright Statement:2 *3 * (C) 2021-2024 Cubios Inc. All rights reserved.4 */56#ifndef WASMLIBS_CPP_SCREEN_H_7#define WASMLIBS_CPP_SCREEN_H_8#include <memory>9#include <vector>10#include "native.h"11//#include "GuiObjects.h"12#include <string>1314#include "Scene.h"15#include "SceneObject.h"1617namespace Cubios18{19class Screen20{21public:22 Screen(uint8_t id);23 void SetOrientation(TOPOLOGY_orientation_mode_t mode);24 uint8_t Position() const;25 TOPOLOGY_orientation_t Direction() const;26 uint8_t OppositeFace() const;27 uint8_t Face() const;28 inline uint8_t ID() const { return this->displayId; }29 inline uint32_t Angle() const {return this->angle;}3031 SceneObject* Add(SceneObject* obj);32 SceneObject* AddCopy(SceneObject* obj);3334 void Begin(TOPOLOGY_orientation_mode_t mode = Cubios::ORIENTATION_MODE_MENU,bool autorotation = false);35 void End();3637 inline bool IsAutorotation() {return this->enableAR;}3839private:40 void present();4142private:43 uint8_t displayId;44 TOPOLOGY_orientation_mode_t orientationMode;45 uint32_t angle;46 uint32_t position;47 TOPOLOGY_place_t place;48 std::vector<SceneObject*> objects;49 std::vector<SceneObject*> copies;5051 bool inBegin;52 bool enableAR;53};5455}56#endif /* WASMLIBS_CPP_SCREEN_H_ */5758
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.