2023-06-17 17:00:55 +00:00
|
|
|
/* date = June 11th 2023 1:20 pm */
|
|
|
|
|
|
|
|
#ifndef VN_WORKSPACE_VIEW_H
|
|
|
|
#define VN_WORKSPACE_VIEW_H
|
|
|
|
|
2023-08-22 03:19:51 +00:00
|
|
|
////////////////////////////////
|
|
|
|
//~ sixten: Workspace View Types
|
|
|
|
|
2023-06-17 17:00:55 +00:00
|
|
|
struct workspace_view
|
|
|
|
{
|
2023-10-29 10:00:34 +00:00
|
|
|
arena *Arena;
|
2023-06-17 17:00:55 +00:00
|
|
|
enum workspace_view_type Type;
|
|
|
|
|
|
|
|
workspace_panel *Parent;
|
|
|
|
workspace_view *Next;
|
|
|
|
workspace_view *Prev;
|
|
|
|
|
|
|
|
void *Data;
|
|
|
|
};
|
|
|
|
|
|
|
|
enum workspace_view_type
|
|
|
|
{
|
2023-08-22 03:19:51 +00:00
|
|
|
W_View_Startup,
|
|
|
|
W_View_Settings,
|
|
|
|
W_View_TextEditor,
|
|
|
|
W_View_SceneView,
|
2023-06-17 17:00:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enum workspace_settings_category
|
|
|
|
{
|
2023-08-22 03:19:51 +00:00
|
|
|
W_Settings_All,
|
|
|
|
W_Settings_General,
|
|
|
|
W_Settings_Developer,
|
2023-06-17 17:00:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct workspace_view_settings
|
|
|
|
{
|
|
|
|
workspace_settings_category Category;
|
2023-08-22 03:19:51 +00:00
|
|
|
r32 GlobalScroll;
|
2023-06-27 14:14:28 +00:00
|
|
|
|
|
|
|
// sixten: General
|
|
|
|
b32 GeneralDropdownOpen;
|
2023-06-17 17:00:55 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 03:19:51 +00:00
|
|
|
////////////////////////////////
|
|
|
|
//~ sixten: Workspace View Functions
|
|
|
|
|
2023-06-17 17:00:55 +00:00
|
|
|
//- sixten: Views
|
2023-08-22 03:19:51 +00:00
|
|
|
inline workspace_view *W_CreateNewView(workspace_view_type Type, workspace_panel *Parent);
|
|
|
|
inline void W_DestroyView(workspace_view *View);
|
|
|
|
inline b32 W_ViewIsCurrent(workspace_view *View);
|
|
|
|
inline string W_GetViewName(workspace_view *View);
|
2023-06-17 17:00:55 +00:00
|
|
|
|
|
|
|
//- sixten: Builder code
|
2023-08-22 03:19:51 +00:00
|
|
|
static void W_ViewListerInputCallback(render_group *Group, glyph_atlas *Atlas, ui_box *Box, void *Data);
|
|
|
|
static void W_BuildViewTypeLister(workspace_view *View);
|
|
|
|
static void W_BuildView(workspace_view *View);
|
2023-06-17 17:00:55 +00:00
|
|
|
|
|
|
|
#endif //VN_WORKSPACE_VIEW_H
|