diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-03-13 06:44:04 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-03-13 06:44:04 +0100 |
| commit | b430026b7656173f78f62dfdab13fa705b2cc718 (patch) | |
| tree | 7dda6e2deea004449204754fc4fd7b27900c1dda /dev/Usr/LibCF/Core.h | |
| parent | 9dbdbaabf24281eecdacd02dc82eb1828f4057a0 (diff) | |
TQ-23: Patch source code and leaving it for now.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Usr/LibCF/Core.h')
| -rw-r--r-- | dev/Usr/LibCF/Core.h | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/dev/Usr/LibCF/Core.h b/dev/Usr/LibCF/Core.h deleted file mode 100644 index acebe996..00000000 --- a/dev/Usr/LibCF/Core.h +++ /dev/null @@ -1,74 +0,0 @@ - -/* ------------------------------------------- - - Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved. - -------------------------------------------- */ - -#pragma once - -#include <LibSCI/SCI.h> - -namespace LibCF -{ - class CFString; - class CFGUID; - class CFProperty; - class CFObject; - class CFRef; - class CFFont; - struct CFPoint; - struct CFRect; - struct CFColor; - -#ifndef __LP64__ - typedef SInt32 CFInteger; - typedef float CFReal; -#else - typedef SInt64 CFInteger; - typedef double CFReal; -#endif - - typedef SInt32 CFInteger32; - typedef SInt64 CFInteger64; - - typedef char CFChar8; - typedef char16_t CFChar16; - - struct CFPoint - { - CFInteger64 x_1{0UL}; - CFInteger64 y_1{0UL}; - - CFInteger64 x_2{0UL}; - CFInteger64 y_2{0UL}; - CFReal ang{0UL}; - - operator bool(); - - /// @brief Check if point is within the current CFPoint. - /// @param point the current point to check. - /// @retval true if point is within this point. - /// @retval validations failed. - bool isWithin(CFPoint& point); - }; - - struct CFColor final - { - CFInteger64 r, g, b, a{0}; - }; - - struct CFRect final - { - CFInteger64 x{0UL}; - CFInteger64 y{0UL}; - - CFInteger64 width{0UL}; - CFInteger64 height{0UL}; - - operator bool(); - - BOOL sizeMatches(CFRect& rect) noexcept; - BOOL positionMatches(CFRect& rect) noexcept; - }; -} // namespace LibCF
\ No newline at end of file |
