Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
ImGuiFs::Dialog Struct Reference

#include <imguifilesystem.h>

Public Types

typedef bool(* DrawFileIconDelegate) (int fileExtensionType, const ImVec4 *pOptionalColorOverride)
 
typedef bool(* DrawFolderIconDelegate) (bool useOpenFolderIconIfAvailable, const ImVec4 *pOptionalColorOverride)
 

Public Member Functions

IMGUI_API Dialog (bool noKnownDirectoriesSection=false, bool noCreateDirectorySection=false, bool noFilteringSection=false, bool detectKnownDirectoriesAtEachOpening=false, bool addDisplayByOption=false, bool dontFilterSaveFilePathsEnteredByTheUser=false)
 
IMGUI_API ~Dialog ()
 
IMGUI_API const char * chooseFileDialog (bool dialogTriggerButton, const char *directory=NULL, const char *fileFilterExtensionString=NULL, const char *windowTitle=NULL, const ImVec2 &windowSize=ImVec2(-1,-1), const ImVec2 &windowPos=ImVec2(-1,-1), const float windowAlpha=0.875f)
 
IMGUI_API const char * chooseFolderDialog (bool dialogTriggerButton, const char *directory=NULL, const char *windowTitle=NULL, const ImVec2 &windowSize=ImVec2(-1,-1), const ImVec2 &windowPos=ImVec2(-1,-1), const float windowAlpha=0.875f)
 
IMGUI_API const char * saveFileDialog (bool dialogTriggerButton, const char *directory=NULL, const char *startingFileNameEntry=NULL, const char *fileFilterExtensionString=NULL, const char *windowTitle=NULL, const ImVec2 &windowSize=ImVec2(-1,-1), const ImVec2 &windowPos=ImVec2(-1,-1), const float windowAlpha=0.875f)
 
IMGUI_API const char * getChosenPath () const
 
IMGUI_API const char * getLastDirectory () const
 
IMGUI_API bool hasUserJustCancelledDialog () const
 

Static Public Attributes

static bool WrapMode = true
 
static ImVec2 WindowSize
 
static ImVec4 WindowLTRBOffsets
 
static ImGuiWindowFlags ExtraWindowFlags = 0
 
static DrawFileIconDelegate DrawFileIconCallback =NULL
 
static DrawFolderIconDelegate DrawFolderIconCallback =NULL
 

Private Attributes

struct Internalinternal
 

Friends

const char * ChooseFileMainMethod (Dialog &ist, const char *directory, const bool _isFolderChooserDialog, const bool _isSaveFileDialog, const char *_saveFileName, const char *fileFilterExtensionString, const char *windowTitle, const ImVec2 &windowSize, const ImVec2 &windowPos, const float windowAlpha)
 

Detailed Description

Definition at line 131 of file imguifilesystem.h.

Member Typedef Documentation

◆ DrawFileIconDelegate

typedef bool(* ImGuiFs::Dialog::DrawFileIconDelegate) (int fileExtensionType, const ImVec4 *pOptionalColorOverride)

Definition at line 159 of file imguifilesystem.h.

◆ DrawFolderIconDelegate

typedef bool(* ImGuiFs::Dialog::DrawFolderIconDelegate) (bool useOpenFolderIconIfAvailable, const ImVec4 *pOptionalColorOverride)

Definition at line 161 of file imguifilesystem.h.

Constructor & Destructor Documentation

◆ Dialog()

ImGuiFs::Dialog::Dialog ( bool  noKnownDirectoriesSection = false,
bool  noCreateDirectorySection = false,
bool  noFilteringSection = false,
bool  detectKnownDirectoriesAtEachOpening = false,
bool  addDisplayByOption = false,
bool  dontFilterSaveFilePathsEnteredByTheUser = false 
)

Definition at line 1878 of file imguifilesystem.cpp.

◆ ~Dialog()

ImGuiFs::Dialog::~Dialog ( )

Definition at line 1893 of file imguifilesystem.cpp.

Member Function Documentation

◆ chooseFileDialog()

const char * ImGuiFs::Dialog::chooseFileDialog ( bool  dialogTriggerButton,
const char *  directory = NULL,
const char *  fileFilterExtensionString = NULL,
const char *  windowTitle = NULL,
const ImVec2 &  windowSize = ImVec2(-1,-1),
const ImVec2 &  windowPos = ImVec2(-1,-1),
const float  windowAlpha = 0.875f 
)

Definition at line 2816 of file imguifilesystem.cpp.

◆ chooseFolderDialog()

const char * ImGuiFs::Dialog::chooseFolderDialog ( bool  dialogTriggerButton,
const char *  directory = NULL,
const char *  windowTitle = NULL,
const ImVec2 &  windowSize = ImVec2(-1,-1),
const ImVec2 &  windowPos = ImVec2(-1,-1),
const float  windowAlpha = 0.875f 
)

Definition at line 2831 of file imguifilesystem.cpp.

◆ getChosenPath()

const char * ImGuiFs::Dialog::getChosenPath ( ) const

Definition at line 1900 of file imguifilesystem.cpp.

◆ getLastDirectory()

const char * ImGuiFs::Dialog::getLastDirectory ( ) const

Definition at line 1901 of file imguifilesystem.cpp.

◆ hasUserJustCancelledDialog()

bool ImGuiFs::Dialog::hasUserJustCancelledDialog ( ) const

Definition at line 1902 of file imguifilesystem.cpp.

◆ saveFileDialog()

const char * ImGuiFs::Dialog::saveFileDialog ( bool  dialogTriggerButton,
const char *  directory = NULL,
const char *  startingFileNameEntry = NULL,
const char *  fileFilterExtensionString = NULL,
const char *  windowTitle = NULL,
const ImVec2 &  windowSize = ImVec2(-1,-1),
const ImVec2 &  windowPos = ImVec2(-1,-1),
const float  windowAlpha = 0.875f 
)

Definition at line 2846 of file imguifilesystem.cpp.

Friends And Related Function Documentation

◆ ChooseFileMainMethod

const char * ChooseFileMainMethod ( Dialog ist,
const char *  directory,
const bool  _isFolderChooserDialog,
const bool  _isSaveFileDialog,
const char *  _saveFileName,
const char *  fileFilterExtensionString,
const char *  windowTitle,
const ImVec2 &  windowSize,
const ImVec2 &  windowPos,
const float  windowAlpha 
)
friend

Definition at line 1917 of file imguifilesystem.cpp.

Member Data Documentation

◆ DrawFileIconCallback

Dialog::DrawFileIconDelegate ImGuiFs::Dialog::DrawFileIconCallback =NULL
static

Definition at line 160 of file imguifilesystem.h.

◆ DrawFolderIconCallback

Dialog::DrawFolderIconDelegate ImGuiFs::Dialog::DrawFolderIconCallback =NULL
static

Definition at line 162 of file imguifilesystem.h.

◆ ExtraWindowFlags

ImGuiWindowFlags ImGuiFs::Dialog::ExtraWindowFlags = 0
static

Definition at line 157 of file imguifilesystem.h.

◆ internal

struct Internal* ImGuiFs::Dialog::internal
private

Definition at line 166 of file imguifilesystem.h.

◆ WindowLTRBOffsets

ImVec4 ImGuiFs::Dialog::WindowLTRBOffsets
static

Definition at line 156 of file imguifilesystem.h.

◆ WindowSize

ImVec2 ImGuiFs::Dialog::WindowSize
static

Definition at line 155 of file imguifilesystem.h.

◆ WrapMode

bool ImGuiFs::Dialog::WrapMode = true
static

Definition at line 154 of file imguifilesystem.h.


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