Lines Matching refs:Documents

43 // [SECTION] Example App: Documents Handling / ShowExampleAppDocuments()
278 ImGui::MenuItem("Documents", NULL, &show_app_documents);
4048 // [SECTION] Example App: Documents Handling / ShowExampleAppDocuments()
4109 ImVector<MyDocument> Documents;
4113 Documents.push_back(MyDocument("Lettuce", true, ImVec4(0.4f, 0.8f, 0.4f, 1.0f)));
4114 Documents.push_back(MyDocument("Eggplant", true, ImVec4(0.8f, 0.5f, 1.0f, 1.0f)));
4115 Documents.push_back(MyDocument("Carrot", true, ImVec4(1.0f, 0.8f, 0.5f, 1.0f)));
4116 Documents.push_back(MyDocument("Tomato", false, ImVec4(1.0f, 0.3f, 0.4f, 1.0f)));
4117 Documents.push_back(MyDocument("A Rather Long Title", false));
4118 Documents.push_back(MyDocument("Some Document", false));
4131 for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++)
4133 MyDocument* doc = &app.Documents[doc_n];
4144 if (!ImGui::Begin("Example: Documents", p_open, ImGuiWindowFlags_MenuBar))
4160 for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++)
4161 open_count += app.Documents[doc_n].Open ? 1 : 0;
4163 if (ImGui::BeginMenu("Open", open_count < app.Documents.Size))
4165 for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++)
4167 MyDocument* doc = &app.Documents[doc_n];
4174 if (ImGui::MenuItem("Close All Documents", NULL, false, open_count > 0))
4175 for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++)
4176 app.Documents[doc_n].DoQueueClose();
4184 for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++)
4186 MyDocument* doc = &app.Documents[doc_n];
4211 for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++)
4213 MyDocument* doc = &app.Documents[doc_n];
4244 for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++)
4246 MyDocument* doc = &app.Documents[doc_n];