struct MyDocument

Overview

struct MyDocument
{
    // fields

    char Name[32];
    int UID;
    bool Open;
    bool OpenPrev;
    bool Dirty;
    ImVec4 Color;

    // construction

    MyDocument(
        int uid,
        const char* name,
        bool open = true,
        const ImVec4& color = ImVec4(1.0f, 1.0f, 1.0f, 1.0f)
        );

    // methods

    void DoOpen();
    void DoForceClose();
    void DoSave();
};