openMSX
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
MyDocument Struct Reference

Public Member Functions

 MyDocument (const char *name, bool open=true, const ImVec4 &color=ImVec4(1.0f, 1.0f, 1.0f, 1.0f))
 
void DoOpen ()
 
void DoQueueClose ()
 
void DoForceClose ()
 
void DoSave ()
 

Static Public Member Functions

static void DisplayContents (MyDocument *doc)
 
static void DisplayContextMenu (MyDocument *doc)
 

Public Attributes

const char * Name
 
bool Open
 
bool OpenPrev
 
bool Dirty
 
bool WantClose
 
ImVec4 Color
 

Detailed Description

Definition at line 8513 of file imgui_demo.cc.

Constructor & Destructor Documentation

◆ MyDocument()

MyDocument::MyDocument ( const char *  name,
bool  open = true,
const ImVec4 &  color = ImVec4(1.0f, 1.0f, 1.0f, 1.0f) 
)
inline

Definition at line 8522 of file imgui_demo.cc.

References Color, Dirty, Name, Open, OpenPrev, and WantClose.

Member Function Documentation

◆ DisplayContents()

static void MyDocument::DisplayContents ( MyDocument doc)
inlinestatic

Definition at line 8536 of file imgui_demo.cc.

References Color, Dirty, DoSave(), and Name.

◆ DisplayContextMenu()

static void MyDocument::DisplayContextMenu ( MyDocument doc)
inlinestatic

Definition at line 8553 of file imgui_demo.cc.

References DoQueueClose(), DoSave(), Name, and Open.

◆ DoForceClose()

void MyDocument::DoForceClose ( )
inline

Definition at line 8532 of file imgui_demo.cc.

References Dirty, and Open.

◆ DoOpen()

void MyDocument::DoOpen ( )
inline

Definition at line 8530 of file imgui_demo.cc.

References Open.

◆ DoQueueClose()

void MyDocument::DoQueueClose ( )
inline

Definition at line 8531 of file imgui_demo.cc.

References WantClose.

Referenced by DisplayContextMenu().

◆ DoSave()

void MyDocument::DoSave ( )
inline

Definition at line 8533 of file imgui_demo.cc.

References Dirty.

Referenced by DisplayContents(), and DisplayContextMenu().

Member Data Documentation

◆ Color

ImVec4 MyDocument::Color

Definition at line 8520 of file imgui_demo.cc.

Referenced by DisplayContents(), and MyDocument().

◆ Dirty

bool MyDocument::Dirty

Definition at line 8518 of file imgui_demo.cc.

Referenced by DisplayContents(), DoForceClose(), DoSave(), and MyDocument().

◆ Name

const char* MyDocument::Name

Definition at line 8515 of file imgui_demo.cc.

Referenced by DisplayContents(), DisplayContextMenu(), and MyDocument().

◆ Open

bool MyDocument::Open

Definition at line 8516 of file imgui_demo.cc.

Referenced by DisplayContextMenu(), DoForceClose(), DoOpen(), and MyDocument().

◆ OpenPrev

bool MyDocument::OpenPrev

Definition at line 8517 of file imgui_demo.cc.

Referenced by MyDocument().

◆ WantClose

bool MyDocument::WantClose

Definition at line 8519 of file imgui_demo.cc.

Referenced by DoQueueClose(), and MyDocument().


The documentation for this struct was generated from the following file: