summaryrefslogtreecommitdiffhomepage
path: root/Public/Developer/System.Core/Headers/Window/Window.hxx
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-26 13:44:38 +0100
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-26 13:47:32 +0100
commit66e4f909bd1a495d3f1c34d2e1b5cd71099ab1ae (patch)
treed64cc867d352d190dfd5693262a42b31e28b9239 /Public/Developer/System.Core/Headers/Window/Window.hxx
parentdbe4573f61ae059c9dafb8e7623370121d443451 (diff)
Kernel and System.Core: kernel related fixes and :boom: on User API.
- UserHeap.cxx: Document code and fix issue in ke_free_heap_internal. - Scheduler: Rename ProcessManager to ProcessScheduler. - The System API has been reworked to improve it's design, such as no more C++ to improve it's portability. - Moved containers into it's own API. Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Public/Developer/System.Core/Headers/Window/Window.hxx')
-rw-r--r--Public/Developer/System.Core/Headers/Window/Window.hxx31
1 files changed, 28 insertions, 3 deletions
diff --git a/Public/Developer/System.Core/Headers/Window/Window.hxx b/Public/Developer/System.Core/Headers/Window/Window.hxx
index 5eb1b3ce..4c79d50b 100644
--- a/Public/Developer/System.Core/Headers/Window/Window.hxx
+++ b/Public/Developer/System.Core/Headers/Window/Window.hxx
@@ -77,11 +77,23 @@ CA_EXTERN_C ControlRef CreateControl(const DWordType id);
/// @return
CA_EXTERN_C VoidType ReleaseControl(const ControlRef id);
-CA_EXTERN_C BooleanType MoveControl(const ControlRef id, GraphicsPoint where);
+/// @brief Moves a control inside a GraphicsPort.
+/// @param id the control ref.
+/// @param where where to move at.
+/// @return
+CA_EXTERN_C Int32Type SetControlPosition(const ControlRef id, GraphicsPoint where);
-CA_EXTERN_C BooleanType EnableControl(const ControlRef id, BooleanType visible);
+/// @brief Enable control.
+/// @param id
+/// @param enabled
+/// @return
+CA_EXTERN_C Int32Type SetControlEnabled(const ControlRef id, BooleanType enabled);
-CA_EXTERN_C BooleanType VisibleControl(const ControlRef id, BooleanType visible);
+/// @brief Make control visible.
+/// @param id
+/// @param visible
+/// @return
+CA_EXTERN_C Int32Type MakeControlVisible(const ControlRef id, BooleanType visible);
/// @brief Creates a new window.
/// @param name the window name
@@ -104,3 +116,16 @@ CA_EXTERN_C VoidType ReleaseWindow(GraphicsPort* port);
/// @param port the menu port.
/// @return void
CA_EXTERN_C VoidType ReleaseMenu(GraphicsPort* port);
+
+/// @brief Moves a window on the desktop. (menu arent movable, will return kErrIncompatible is menu is provided.)
+/// @param id the gfx port.
+/// @param where to move.
+/// @return error code.
+CA_EXTERN_C Int32Type MoveWindow(const GraphicsPort* id, GraphicsPoint where);
+
+enum {
+ kWinErrIncompatible = 0x74,
+ kWinErrOutOfMemory,
+ kWinErrInvalidArg,
+ kWinErrNotImplemented,
+};