diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-04-01 08:39:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-01 08:39:18 +0200 |
| commit | f88f6074479c627529559f690bf836960d5a6378 (patch) | |
| tree | a1acef0bd6286f03197c0e1839e8d41ac5e5538f /dev/modules/CoreGfx/CoreAccess.h | |
| parent | 6849e75f2e95e88b43e2f8804abf1b862e3981cb (diff) | |
| parent | 2a7a9825fd275d6d999b94614fe87c1d705c7f8f (diff) | |
Merge pull request #4 from amlel-el-mahrouss/dev
pr/general: mostly minor patches.
Diffstat (limited to 'dev/modules/CoreGfx/CoreAccess.h')
| -rw-r--r-- | dev/modules/CoreGfx/CoreAccess.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev/modules/CoreGfx/CoreAccess.h b/dev/modules/CoreGfx/CoreAccess.h new file mode 100644 index 00000000..adc9ed33 --- /dev/null +++ b/dev/modules/CoreGfx/CoreAccess.h @@ -0,0 +1,41 @@ +/* ------------------------------------------- + + Copyright Amlal El Mahrouss. + +------------------------------------------- */ + +#ifndef GFX_MGR_ACCESSIBILITY_H +#define GFX_MGR_ACCESSIBILITY_H + +#include <NewKit/NewKit.h> +#include <KernelKit/KPC.h> +#include <modules/CoreGfx/CoreGfx.h> +#include <modules/CoreGfx/MathGfx.h> +#include <ArchKit/ArchKit.h> + +namespace FB +{ + using namespace Kernel; + + /// @brief common User interface class. + class FBAccessibilty final + { + explicit FBAccessibilty() = default; + ~FBAccessibilty() = default; + + public: + NE_COPY_DELETE(FBAccessibilty); + + static Int64 Width() noexcept + { + return kHandoverHeader->f_GOP.f_Width; + } + + static Int64 Height() noexcept + { + return kHandoverHeader->f_GOP.f_Height; + } + }; +} // namespace FB + +#endif // !GFX_MGR_ACCESSIBILITY_H_ |
