DVX_GUI/taskmgr/taskmgr.dhs

41 lines
1.1 KiB
Text

.section Libraries
.topic lib.taskmgr
.title Task Manager
.toc 0 Task Manager
.index Task Manager
.index shellTaskMgrOpen
.index shellTaskMgrRefresh
.h1 Task Manager
System-level task manager for DVX. Displays running applications and per-app memory usage. Always accessible via Ctrl+Esc regardless of which application is focused. Persists independently of the desktop app (Program Manager).
Header: taskmgr/shellTaskMgr.h
Loaded as: bin/libs/taskmgr.lib
.h2 shellTaskMgrOpen
Open the Task Manager window, or raise it to the front if already open.
.code
void shellTaskMgrOpen(AppContextT *ctx);
.endcode
.table
Parameter Description
--------- -----------
ctx Application context (from dvxInit). Required for window creation and event registration.
.endtable
Called by the shell's global Ctrl+Esc handler.
.h2 shellTaskMgrRefresh
Refresh the task list display. Call this when applications are launched or terminated so the Task Manager reflects the current state.
.code
void shellTaskMgrRefresh(void);
.endcode
Takes no parameters. Safe to call even if the Task Manager window is not currently open (the call is a no-op in that case).