Files
Vektor/src/ui/uicontroller.h
2026-03-07 22:25:28 +07:00

31 lines
807 B
C

#ifndef VKTR_UICTRL_H
#define VKTR_UICTRL_H
#include "gtk/gtk.h"
#include "gtk/gtkrevealer.h"
#include "src/ui/widgets/colorwheel.h"
/*
Global application widget state, holding references to
all the widgets used in internal logic of the program
*/
typedef struct VektorWidgetState {
GtkWindow* window;
GtkPaned* workspacePaned;
GtkGLArea* workspaceCanvas;
GtkButton* workspaceButtonMasterShapes;
GtkRevealer* workspaceRevealerShapes;
GtkButton* workspaceButtonLinetool;
GtkButton* workspaceButtonRecttool;
GtkButton* workspaceButtonCircletool;
VektorColorWheel* workspaceColorPicker;
// GtkWidget* Workspace
} VektorWidgetState;
void vektor_uictrl_init(GtkApplication* app, VektorWidgetState* stateOut);
void vektor_uictrl_map(VektorWidgetState* state);
#endif