summaryrefslogtreecommitdiffhomepage
path: root/Private/KernelKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-12 12:54:30 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-12 12:54:30 +0200
commitc3b3b7727b9e2e7cbddcd0997c53d96ba3bb0e82 (patch)
treedb2fbe59e73e5610a678028a3214041773f134bc /Private/KernelKit
parent3fca74d9544fc4cf0218b6e8154b53625bd3df66 (diff)
kernel: update IPC protocol header, framebuffer header.
servers/display: Add display server. private: rename LinkerScripts to just Linker. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/KernelKit')
-rw-r--r--Private/KernelKit/Framebuffer.hpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/Private/KernelKit/Framebuffer.hpp b/Private/KernelKit/Framebuffer.hpp
index 39b1eb5e..555aad2d 100644
--- a/Private/KernelKit/Framebuffer.hpp
+++ b/Private/KernelKit/Framebuffer.hpp
@@ -2,6 +2,9 @@
Copyright Mahrouss Logic
+ File: Framebuffer.hpp
+ Purpose: Framebuffer object.
+
------------------------------------------- */
#ifndef __INC_FB_HPP__
@@ -45,12 +48,12 @@ class Framebuffer final {
Ref<FramebufferContext *> &Leak();
/// @brief Draws a rectangle inside the fb.
- /// @param width
- /// @param height
- /// @param x
- /// @param y
- /// @param color
- /// @return
+ /// @param width the width of it
+ /// @param height the height of it
+ /// @param x its x coord.
+ /// @param y its y coord.
+ /// @param color the color of it.
+ /// @return the framebuffer object.
Framebuffer &DrawRect(SizeT width, SizeT height, SizeT x, SizeT y,
UInt32 color);
@@ -58,7 +61,7 @@ class Framebuffer final {
/// @param x where in X
/// @param y where in Y
/// @param color the color of it.
- /// @return
+ /// @return the framebuffer object.
Framebuffer &PutPixel(SizeT x, SizeT y, UInt32 color);
private:
@@ -67,7 +70,7 @@ class Framebuffer final {
};
/***********************************************************************************/
-/// Color utils.
+/// Some common colors.
/***********************************************************************************/
extern const UInt32 kRgbRed;
@@ -81,6 +84,7 @@ extern const UInt32 kRgbWhite;
/// Color macros.
/***********************************************************************************/
+/// @brief Macro hack to make a color (as hexadecimal)
#define RGB(R, G, B) (NewOS::UInt32)(0x##R##G##B)
#endif /* ifndef __INC_FB_HPP__ */