Simplify NativeDisplay interface

This commit is contained in:
Ken Van Hoeylandt 2025-08-15 17:10:23 +02:00
parent e1bd49cbc0
commit 7de3b871c6
2 changed files with 3 additions and 5 deletions

View File

@ -47,9 +47,8 @@ public:
// region NativedDisplay
bool supportsNativeDisplay() const final { return true; }
std::shared_ptr<tt::hal::display::NativeDisplay> getNativeDisplay() final;
/** @return a NativeDisplay if this device supports it */
std::shared_ptr<tt::hal::display::NativeDisplay> _Nullable getNativeDisplay() final;
// endregion
};

View File

@ -43,8 +43,7 @@ public:
virtual bool startLvgl() { return false; }
virtual bool stopLvgl() { return false; }
virtual bool supportsNativeDisplay() const { return false; }
virtual std::shared_ptr<NativeDisplay> getNativeDisplay() { return nullptr; }
virtual std::shared_ptr<NativeDisplay> _Nullable getNativeDisplay() { return nullptr; }
};
} // namespace tt::hal::display