\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}{//\ Copyright\ 2024\ Medusa\ Slockbower}} \DoxyCodeLine{00003\ \textcolor{comment}{//\ Licensed\ under\ the\ Apache\ License,\ Version\ 2.0\ (the\ "{}License"{});}} \DoxyCodeLine{00004\ \textcolor{comment}{//\ you\ may\ not\ use\ this\ file\ except\ in\ compliance\ with\ the\ License.}} \DoxyCodeLine{00005\ \textcolor{comment}{//\ You\ may\ obtain\ a\ copy\ of\ the\ License\ at}} \DoxyCodeLine{00006\ \textcolor{comment}{//}} \DoxyCodeLine{00007\ \textcolor{comment}{//\ \ http://www.apache.org/licenses/LICENSE-\/2.0}} \DoxyCodeLine{00008\ \textcolor{comment}{//}} \DoxyCodeLine{00009\ \textcolor{comment}{//\ Unless\ required\ by\ applicable\ law\ or\ agreed\ to\ in\ writing,\ software}} \DoxyCodeLine{00010\ \textcolor{comment}{//\ distributed\ under\ the\ License\ is\ distributed\ on\ an\ "{}AS\ IS"{}\ BASIS,}} \DoxyCodeLine{00011\ \textcolor{comment}{//\ WITHOUT\ WARRANTIES\ OR\ CONDITIONS\ OF\ ANY\ KIND,\ either\ express\ or\ implied.}} \DoxyCodeLine{00012\ \textcolor{comment}{//\ See\ the\ License\ for\ the\ specific\ language\ governing\ permissions\ and}} \DoxyCodeLine{00013\ \textcolor{comment}{//\ limitations\ under\ the\ License.}} \DoxyCodeLine{00014\ \textcolor{comment}{//\ =====================================================================================================================}} \DoxyCodeLine{00015\ } \DoxyCodeLine{00016\ \textcolor{preprocessor}{\#ifndef\ EDITORWINDOW\_H}} \DoxyCodeLine{00017\ \textcolor{preprocessor}{\#define\ EDITORWINDOW\_H}} \DoxyCodeLine{00018\ } \DoxyCodeLine{00019\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00020\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00021\ } \DoxyCodeLine{00022\ \textcolor{keyword}{namespace\ }OpenShaderDesigner} \DoxyCodeLine{00023\ \{} \DoxyCodeLine{00027\ \ \ \ \ \textcolor{keyword}{class\ }\mbox{\hyperlink{class_open_shader_designer_1_1_editor_window}{EditorWindow}}} \DoxyCodeLine{00028\ \ \ \ \ \{} \DoxyCodeLine{00029\ \ \ \ \ \textcolor{keyword}{public}:} \DoxyCodeLine{00033\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{class_open_shader_designer_1_1_editor_window_a858a412f2f8c652773885d217410d332}{Open}}();} \DoxyCodeLine{00034\ } \DoxyCodeLine{00038\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{class_open_shader_designer_1_1_editor_window_a501528be936bdf479359021308fb0d31}{Draw}}();} \DoxyCodeLine{00039\ } \DoxyCodeLine{00043\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{class_open_shader_designer_1_1_editor_window_a5df4621355612a487578521525029aa6}{Close}}();} \DoxyCodeLine{00044\ } \DoxyCodeLine{00049\ \ \ \ \ \ \ \ \ [[nodiscard]]\ \textcolor{keywordtype}{bool}\ \mbox{\hyperlink{class_open_shader_designer_1_1_editor_window_af3ea05326684e2f58d54805ce10570a6}{IsOpen}}()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ bOpen;\ \}} \DoxyCodeLine{00050\ } \DoxyCodeLine{00051\ \ \ \ \ \ \ \ \ \textcolor{keyword}{const}\ std::string\ \mbox{\hyperlink{class_open_shader_designer_1_1_editor_window_a2e557a422d0e4e003f85fb9905b66980}{Title}};\ } \DoxyCodeLine{00052\ } \DoxyCodeLine{00053\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ SetFlags(ImGuiWindowFlags\ flags)\ \{\ Flags\ |=\ flags;\ \}} \DoxyCodeLine{00054\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ ClearFlags(ImGuiWindowFlags\ flags)\ \{\ Flags\ \&=\ \string~flags;\ \}} \DoxyCodeLine{00055\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ ToggleFlags(ImGuiWindowFlags\ flags)\ \{\ Flags\ \string^=\ flags;\ \}} \DoxyCodeLine{00056\ \ \ \ \ \ \ \ \ [[nodiscard]]\ \textcolor{keywordtype}{bool}\ CheckFlag(ImGuiWindowFlags\ flag)\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ Flags\ \&\ flag;\ \}} \DoxyCodeLine{00057\ } \DoxyCodeLine{00058\ \ \ \ \ \ \ \ \ [[nodiscard]]\ \textcolor{keywordtype}{bool}\ HasMenuBar()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ CheckFlag(ImGuiWindowFlags\_MenuBar);\ \}} \DoxyCodeLine{00059\ } \DoxyCodeLine{00060\ \ \ \ \ \textcolor{keyword}{protected}:} \DoxyCodeLine{00061\ \ \ \ \ \ \ \ \ \string~EditorWindow()\ =\ \textcolor{keywordflow}{default};} \DoxyCodeLine{00062\ \ \ \ \ \ \ \ \ EditorWindow(\textcolor{keyword}{const}\ std::string\&\ title} \DoxyCodeLine{00063\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ,\ ImGuiWindowFlags\ flags);} \DoxyCodeLine{00064\ } \DoxyCodeLine{00068\ \ \ \ \ \ \ \ \ \textcolor{keyword}{virtual}\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{class_open_shader_designer_1_1_editor_window_a2e68f7186c2ceb3ea3dd5618045c6ab7}{OnOpen}}()} \DoxyCodeLine{00069\ \ \ \ \ \ \ \ \ \{} \DoxyCodeLine{00070\ \ \ \ \ \ \ \ \ \};} \DoxyCodeLine{00071\ } \DoxyCodeLine{00075\ \ \ \ \ \ \ \ \ \textcolor{keyword}{virtual}\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{class_open_shader_designer_1_1_editor_window_a058742ce762d782440f595497e5bfbff}{DrawWindow}}()} \DoxyCodeLine{00076\ \ \ \ \ \ \ \ \ \{} \DoxyCodeLine{00077\ \ \ \ \ \ \ \ \ \};} \DoxyCodeLine{00078\ } \DoxyCodeLine{00082\ \ \ \ \ \ \ \ \ \textcolor{keyword}{virtual}\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{class_open_shader_designer_1_1_editor_window_a6c229ca70221f672315f9a4f0c7be0c0}{DrawMenu}}()} \DoxyCodeLine{00083\ \ \ \ \ \ \ \ \ \{} \DoxyCodeLine{00084\ \ \ \ \ \ \ \ \ \};} \DoxyCodeLine{00085\ } \DoxyCodeLine{00089\ \ \ \ \ \ \ \ \ \textcolor{keyword}{virtual}\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{class_open_shader_designer_1_1_editor_window_a6dc0b192488187ddbde44d7f0b5fc0f7}{OnClose}}()} \DoxyCodeLine{00090\ \ \ \ \ \ \ \ \ \{} \DoxyCodeLine{00091\ \ \ \ \ \ \ \ \ \};} \DoxyCodeLine{00092\ } \DoxyCodeLine{00093\ \ \ \ \ \textcolor{keyword}{private}:} \DoxyCodeLine{00094\ \ \ \ \ \ \ \ \ \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{00095\ } \DoxyCodeLine{00096\ \ \ \ \ \ \ \ \ \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{00097\ } \DoxyCodeLine{00098\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{int}\ Flags;} \DoxyCodeLine{00099\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ bOpen;} \DoxyCodeLine{00100\ } \DoxyCodeLine{00101\ \ \ \ \ \ \ \ \ \textcolor{keyword}{friend}\ \textcolor{keyword}{class\ }\mbox{\hyperlink{class_open_shader_designer_1_1_editor_system}{EditorSystem}};} \DoxyCodeLine{00102\ \ \ \ \ \};} \DoxyCodeLine{00103\ \}} \DoxyCodeLine{00104\ } \DoxyCodeLine{00105\ } \DoxyCodeLine{00106\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//EDITORWINDOW\_H}} \end{DoxyCode}