From f3d931aa7cfaf96baef8383b59a8938779541ee7 Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Thu, 15 Aug 2024 18:35:34 +0200 Subject: [IMP] Moved source code into dev/ folder. Signed-off-by: Amlal EL Mahrouss --- dev/Kernel/Modules/CoreCG/Accessibility.hxx | 49 +++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 dev/Kernel/Modules/CoreCG/Accessibility.hxx (limited to 'dev/Kernel/Modules/CoreCG/Accessibility.hxx') diff --git a/dev/Kernel/Modules/CoreCG/Accessibility.hxx b/dev/Kernel/Modules/CoreCG/Accessibility.hxx new file mode 100644 index 00000000..743b81ee --- /dev/null +++ b/dev/Kernel/Modules/CoreCG/Accessibility.hxx @@ -0,0 +1,49 @@ +/* ------------------------------------------- + + Copyright ZKA Technologies. + +------------------------------------------- */ + +#ifndef __CORECG_ACCESS_HXX__ +#define __CORECG_ACCESS_HXX__ + +#include +#include +#include +#include +#include + +namespace Kernel +{ + inline Bool cKTSyncCall = false; + + inline float cDeviceWidthAlert = 150; + inline float cDeviceHeightAlert = 141; + + /// @brief common user interface class. + class UIAccessibilty final + { + explicit UIAccessibilty() = default; + + public: + NEWOS_COPY_DELETE(UIAccessibilty); + + static UIAccessibilty& The() + { + static UIAccessibilty the; + return the; + } + + Int64 Width() noexcept + { + return kHandoverHeader->f_GOP.f_Width; + } + + Int64 Height() noexcept + { + return kHandoverHeader->f_GOP.f_Height; + } + }; +} // namespace Kernel + +#endif // !__CORECG_ACCESS_HXX__ -- cgit v1.2.3