Turnstone Operating System
Loading...
Searching...
No Matches
wnd_options.64.c File Reference

Window Manager Options Window. More...

Classes

struct  wnd_options_list_item_t
 
struct  wnd_options_list_t
 

Typedefs

typedef int8_t(* wndmgr_opt_action_f) (void)
 
typedef enum wnd_options_windows_t wnd_options_windows_t
 
typedef struct wnd_options_list_item_t wnd_options_list_item_t
 
typedef struct wnd_options_list_t wnd_options_list_t
 
typedef enum wnd_task_manager_list_item_type_t wnd_task_manager_list_item_type_t
 
typedef enum wnd_primary_options_list_item_type_t wnd_primary_options_list_item_type_t
 

Enumerations

enum  wnd_options_windows_t {
  WND_OPTIONS_NONE , WND_OPTIONS_PRIMARY , WND_OPTIONS_TASK_MANAGER , WND_OPTIONS_SPOOL_BROWSER ,
  WND_OPTIONS_VIRTUAL_MACHINE_MANAGER , WND_OPTIONS_NETWORK_MANAGER , WND_OPTIONS_TURNSTONE_DATABASE_MANAGER , WND_OPTIONS_END
}
 
enum  wnd_task_manager_list_item_type_t { WND_TASK_MANAGER_LIST_ITEM_TYPE_TASK_LIST , WND_TASK_MANAGER_LIST_ITEM_TYPE_END }
 
enum  wnd_primary_options_list_item_type_t {
  WND_PRIMARY_OPTIONS_LIST_ITEM_TYPE_SPOOL_BROWSER , WND_PRIMARY_OPTIONS_LIST_ITEM_TYPE_TASK_MANAGER , WND_PRIMARY_OPTIONS_LIST_ITEM_TYPE_VIRTUAL_MACHINE_MANAGER , WND_PRIMARY_OPTIONS_LIST_ITEM_TYPE_NETWORK_MANAGER ,
  WND_PRIMARY_OPTIONS_LIST_ITEM_TYPE_TURNSTONE_DATABASE_MANAGER , WND_PRIMARY_OPTIONS_LIST_ITEM_TYPE_REBOOT , WND_PRIMARY_OPTIONS_LIST_ITEM_TYPE_POWER_OFF , WND_PRIMARY_OPTIONS_LIST_ITEM_TYPE_END
}
 

Functions

 MODULE ("turnstone.windowmanager")
 
void video_text_print (const char_t *text)
 
static window_twindowmanager_create_options_window (wnd_options_windows_t option_window_type)
 
window_twindowmanager_create_primary_options_window (void)
 
window_twindowmanager_add_option_window (window_t *parent, rect_t pos)
 
static int8_t wndmgr_options_on_enter (const window_event_t *event)
 

Variables

const wnd_options_list_item_t wnd_task_manager_item_list [WND_TASK_MANAGER_LIST_ITEM_TYPE_END]
 
const wnd_options_list_item_t wnd_primary_options_item_list [WND_PRIMARY_OPTIONS_LIST_ITEM_TYPE_END]
 
const wnd_options_list_t wnd_options_list [WND_OPTIONS_END]
 

Detailed Description

Window Manager Options Window.

This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.

Variable Documentation

◆ wnd_options_list

const wnd_options_list_t wnd_options_list[WND_OPTIONS_END]
Initial value:
= {
[WND_OPTIONS_PRIMARY] = {
.title = "tOS Primary Options Menu",
.items = wnd_primary_options_item_list,
.items_count = WND_PRIMARY_OPTIONS_LIST_ITEM_TYPE_END,
},
[WND_OPTIONS_TASK_MANAGER] = {
.title = "tOS Task Manager",
.items = wnd_task_manager_item_list,
.items_count = WND_TASK_MANAGER_LIST_ITEM_TYPE_END,
},
}

◆ wnd_task_manager_item_list

const wnd_options_list_item_t wnd_task_manager_item_list[WND_TASK_MANAGER_LIST_ITEM_TYPE_END]
Initial value:
= {
[WND_TASK_MANAGER_LIST_ITEM_TYPE_TASK_LIST] = {
.text = "Task List",
.action = windowmanager_create_and_show_task_list_window,
},
}