\doxysection{Editor\+Window.\+h}
\hypertarget{_editor_window_8h_source}{}\label{_editor_window_8h_source}\index{Include/Editor/EditorWindow.h@{Include/Editor/EditorWindow.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{//\ =====================================================================================================================}}
\DoxyCodeLine{00002\ \textcolor{comment}{//\ \ OpenShaderDesigner,\ an\ open\ source\ software\ utility\ to\ create\ materials\ and\ shaders.}}
\DoxyCodeLine{00003\ \textcolor{comment}{//\ \ Copyright\ (C)\ 2024\ \ Medusa\ Slockbower}}
\DoxyCodeLine{00004\ \textcolor{comment}{//}}
\DoxyCodeLine{00005\ \textcolor{comment}{//\ \ This\ program\ is\ free\ software:\ you\ can\ redistribute\ it\ and/or\ modify}}
\DoxyCodeLine{00006\ \textcolor{comment}{//\ \ it\ under\ the\ terms\ of\ the\ GNU\ General\ Public\ License\ as\ published\ by}}
\DoxyCodeLine{00007\ \textcolor{comment}{//\ \ the\ Free\ Software\ Foundation,\ either\ version\ 3\ of\ the\ License,\ or}}
\DoxyCodeLine{00008\ \textcolor{comment}{//\ \ (at\ your\ option)\ any\ later\ version.}}
\DoxyCodeLine{00009\ \textcolor{comment}{//}}
\DoxyCodeLine{00010\ \textcolor{comment}{//\ \ This\ program\ is\ distributed\ in\ the\ hope\ that\ it\ will\ be\ useful,}}
\DoxyCodeLine{00011\ \textcolor{comment}{//\ \ but\ WITHOUT\ ANY\ WARRANTY;\ without\ even\ the\ implied\ warranty\ of}}
\DoxyCodeLine{00012\ \textcolor{comment}{//\ \ MERCHANTABILITY\ or\ FITNESS\ FOR\ A\ PARTICULAR\ PURPOSE.\ \ See\ the}}
\DoxyCodeLine{00013\ \textcolor{comment}{//\ \ GNU\ General\ Public\ License\ for\ more\ details.}}
\DoxyCodeLine{00014\ \textcolor{comment}{//}}
\DoxyCodeLine{00015\ \textcolor{comment}{//\ \ You\ should\ have\ received\ a\ copy\ of\ the\ GNU\ General\ Public\ License}}
\DoxyCodeLine{00016\ \textcolor{comment}{//\ \ along\ with\ this\ program.\ \ If\ not,\ see\ <https://www.gnu.org/licenses/>.}}
\DoxyCodeLine{00017\ \textcolor{comment}{//\ =====================================================================================================================}}
\DoxyCodeLine{00018\ }
\DoxyCodeLine{00019\ \textcolor{preprocessor}{\#ifndef\ EDITORWINDOW\_H}}
\DoxyCodeLine{00020\ \textcolor{preprocessor}{\#define\ EDITORWINDOW\_H}}
\DoxyCodeLine{00021\ }
\DoxyCodeLine{00022\ \textcolor{preprocessor}{\#include\ <string>}}
\DoxyCodeLine{00023\ \textcolor{preprocessor}{\#include\ <imgui-\/docking/imgui.h>}}
\DoxyCodeLine{00024\ }
\DoxyCodeLine{00025\ \textcolor{keyword}{namespace\ }OpenShaderDesigner}
\DoxyCodeLine{00026\ \{}
\DoxyCodeLine{00027\ }
\DoxyCodeLine{00031\ \textcolor{keyword}{class\ }\mbox{\hyperlink{class_open_shader_designer_1_1_editor_window}{EditorWindow}}}
\DoxyCodeLine{00032\ \{}
\DoxyCodeLine{00033\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00037\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{class_open_shader_designer_1_1_editor_window_a858a412f2f8c652773885d217410d332}{Open}}();}
\DoxyCodeLine{00038\ }
\DoxyCodeLine{00042\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{class_open_shader_designer_1_1_editor_window_a501528be936bdf479359021308fb0d31}{Draw}}();}
\DoxyCodeLine{00043\ }
\DoxyCodeLine{00047\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{class_open_shader_designer_1_1_editor_window_a5df4621355612a487578521525029aa6}{Close}}();}
\DoxyCodeLine{00048\ }
\DoxyCodeLine{00053\ \ \ \ \ [[nodiscard]]\ \textcolor{keywordtype}{bool}\ \mbox{\hyperlink{class_open_shader_designer_1_1_editor_window_af3ea05326684e2f58d54805ce10570a6}{IsOpen}}()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ bOpen\_;\ \}}
\DoxyCodeLine{00054\ }
\DoxyCodeLine{00055\ \ \ \ \ \textcolor{keyword}{const}\ std::string\ \mbox{\hyperlink{class_open_shader_designer_1_1_editor_window_a2e557a422d0e4e003f85fb9905b66980}{Title}};\ }
\DoxyCodeLine{00056\ }
\DoxyCodeLine{00057\ \ \ \ \ \textcolor{keywordtype}{void}\ SetFlags(ImGuiWindowFlags\ flags)\ \{\ Flags\_\ |=\ flags;\ \}}
\DoxyCodeLine{00058\ \ \ \ \ \textcolor{keywordtype}{void}\ ClearFlags(ImGuiWindowFlags\ flags)\ \{\ Flags\_\ \&=\ \string~flags;\ \}}
\DoxyCodeLine{00059\ \ \ \ \ \textcolor{keywordtype}{void}\ ToggleFlags(ImGuiWindowFlags\ flags)\ \{\ Flags\_\ \string^=\ flags;\ \}}
\DoxyCodeLine{00060\ \ \ \ \ [[nodiscard]]\ \textcolor{keywordtype}{bool}\ CheckFlag(ImGuiWindowFlags\ flag)\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ Flags\_\ \&\ flag;\ \}}
\DoxyCodeLine{00061\ }
\DoxyCodeLine{00062\ \ \ \ \ [[nodiscard]]\ \textcolor{keywordtype}{bool}\ HasMenuBar()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ CheckFlag(ImGuiWindowFlags\_MenuBar);\ \}}
\DoxyCodeLine{00063\ }
\DoxyCodeLine{00064\ \textcolor{keyword}{protected}:}
\DoxyCodeLine{00065\ \ \ \ \ \string~EditorWindow()\ =\ \textcolor{keywordflow}{default};}
\DoxyCodeLine{00066\ \ \ \ \ EditorWindow(\textcolor{keyword}{const}\ std::string\&\ title}
\DoxyCodeLine{00067\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ,\ ImGuiWindowFlags\ flags);}
\DoxyCodeLine{00068\ }
\DoxyCodeLine{00072\ \ \ \ \ \textcolor{keyword}{virtual}\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{class_open_shader_designer_1_1_editor_window_a2e68f7186c2ceb3ea3dd5618045c6ab7}{OnOpen}}()}
\DoxyCodeLine{00073\ \ \ \ \ \{}
\DoxyCodeLine{00074\ \ \ \ \ \};}
\DoxyCodeLine{00075\ }
\DoxyCodeLine{00079\ \ \ \ \ \textcolor{keyword}{virtual}\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{class_open_shader_designer_1_1_editor_window_a058742ce762d782440f595497e5bfbff}{DrawWindow}}()}
\DoxyCodeLine{00080\ \ \ \ \ \{}
\DoxyCodeLine{00081\ \ \ \ \ \};}
\DoxyCodeLine{00082\ }
\DoxyCodeLine{00086\ \ \ \ \ \textcolor{keyword}{virtual}\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{class_open_shader_designer_1_1_editor_window_a6c229ca70221f672315f9a4f0c7be0c0}{DrawMenu}}()}
\DoxyCodeLine{00087\ \ \ \ \ \{}
\DoxyCodeLine{00088\ \ \ \ \ \};}
\DoxyCodeLine{00089\ }
\DoxyCodeLine{00093\ \ \ \ \ \textcolor{keyword}{virtual}\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{class_open_shader_designer_1_1_editor_window_a6dc0b192488187ddbde44d7f0b5fc0f7}{OnClose}}()}
\DoxyCodeLine{00094\ \ \ \ \ \{}
\DoxyCodeLine{00095\ \ \ \ \ \};}
\DoxyCodeLine{00096\ }
\DoxyCodeLine{00097\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00098\ \ \ \ \ \mbox{\hyperlink{class_open_shader_designer_1_1_editor_window}{EditorWindow}}(\textcolor{keyword}{const}\ \mbox{\hyperlink{class_open_shader_designer_1_1_editor_window}{EditorWindow}}\&)\ =\ \textcolor{keyword}{delete};}
\DoxyCodeLine{00099\ }
\DoxyCodeLine{00100\ \ \ \ \ \mbox{\hyperlink{class_open_shader_designer_1_1_editor_window}{EditorWindow}}(\mbox{\hyperlink{class_open_shader_designer_1_1_editor_window}{EditorWindow}}\&\&)\ =\ \textcolor{keyword}{delete};}
\DoxyCodeLine{00101\ }
\DoxyCodeLine{00102\ \ \ \ \ \textcolor{keywordtype}{int}\ Flags\_;}
\DoxyCodeLine{00103\ \ \ \ \ \textcolor{keywordtype}{bool}\ bOpen\_;}
\DoxyCodeLine{00104\ }
\DoxyCodeLine{00105\ \ \ \ \ \textcolor{keyword}{friend}\ \textcolor{keyword}{class\ }\mbox{\hyperlink{class_open_shader_designer_1_1_editor_system}{EditorSystem}};}
\DoxyCodeLine{00106\ \};}
\DoxyCodeLine{00107\ }
\DoxyCodeLine{00108\ \}}
\DoxyCodeLine{00109\ }
\DoxyCodeLine{00110\ }
\DoxyCodeLine{00111\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//EDITORWINDOW\_H}}

\end{DoxyCode}
