summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/GfxKit/FB.h
diff options
context:
space:
mode:
authorAmlal <amlal@nekernel.org>2025-04-25 13:08:33 +0200
committerAmlal <amlal@nekernel.org>2025-04-25 13:08:33 +0200
commitfb790b07aeba8e22e4190cf3e1834d11ecde6c96 (patch)
tree4cec7d1b321307b1d5935577631dae116a658a37 /dev/kernel/GfxKit/FB.h
parent63a2d92c5dfe976175cda024ec01905d11b43738 (diff)
dev: better .clang-format, ran format command.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/GfxKit/FB.h')
-rw-r--r--dev/kernel/GfxKit/FB.h79
1 files changed, 38 insertions, 41 deletions
diff --git a/dev/kernel/GfxKit/FB.h b/dev/kernel/GfxKit/FB.h
index b01743ff..33895ce6 100644
--- a/dev/kernel/GfxKit/FB.h
+++ b/dev/kernel/GfxKit/FB.h
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2025, Amlal El Mahrouss, all rights reserved.
+ Copyright (C) 2025, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
@@ -9,43 +9,40 @@
#include <modules/CoreGfx/CoreGfx.h>
#include <modules/CoreGfx/TextGfx.h>
-namespace Kernel
-{
- class FBDeviceInterface;
- struct FBDevicePacket;
-
- /// @brief Framebuffer device interface packet.
- /// @details This structure is used to send and receive data from the framebuffer device.
- /// @note The structure is packed to ensure that the data is aligned correctly for the device.
- struct PACKED FBDevicePacket final
- {
- UInt32 fX;
- UInt32 fY;
- UInt32 fWidth;
- UInt32 fHeight;
- UInt32 fColor;
- UInt32 fFlags;
- };
-
- /// @brief Framebuffer device interface.
- /// @details This class is used to send and receive data from the framebuffer device.
- /// @note The class is derived from the IDeviceObject class.
- class FBDeviceInterface NE_DEVICE<FBDevicePacket*>
- {
- public:
- explicit FBDeviceInterface(void (*out)(IDeviceObject* self, FBDevicePacket* out),
- void (*in)(IDeviceObject* self, FBDevicePacket* in));
-
- virtual ~FBDeviceInterface() override;
-
- public:
- FBDeviceInterface& operator=(const FBDeviceInterface&) = default;
- FBDeviceInterface(const FBDeviceInterface&) = default;
-
- const Char* Name() const override;
-
- public:
- FBDeviceInterface& operator<<(FBDevicePacket* Data) override;
- FBDeviceInterface& operator>>(FBDevicePacket* Data) override;
- };
-} // namespace Kernel
+namespace Kernel {
+class FBDeviceInterface;
+struct FBDevicePacket;
+
+/// @brief Framebuffer device interface packet.
+/// @details This structure is used to send and receive data from the framebuffer device.
+/// @note The structure is packed to ensure that the data is aligned correctly for the device.
+struct PACKED FBDevicePacket final {
+ UInt32 fX;
+ UInt32 fY;
+ UInt32 fWidth;
+ UInt32 fHeight;
+ UInt32 fColor;
+ UInt32 fFlags;
+};
+
+/// @brief Framebuffer device interface.
+/// @details This class is used to send and receive data from the framebuffer device.
+/// @note The class is derived from the IDeviceObject class.
+class FBDeviceInterface NE_DEVICE<FBDevicePacket*> {
+ public:
+ explicit FBDeviceInterface(void (*out)(IDeviceObject* self, FBDevicePacket* out),
+ void (*in)(IDeviceObject* self, FBDevicePacket* in));
+
+ virtual ~FBDeviceInterface() override;
+
+ public:
+ FBDeviceInterface& operator=(const FBDeviceInterface&) = default;
+ FBDeviceInterface(const FBDeviceInterface&) = default;
+
+ const Char* Name() const override;
+
+ public:
+ FBDeviceInterface& operator<<(FBDevicePacket* Data) override;
+ FBDeviceInterface& operator>>(FBDevicePacket* Data) override;
+};
+} // namespace Kernel