Skip to content

File ImGuiFileDialog.h

FileList > AIAC > UI > ImGuiFileDialog.h

Go to the source code of this file

  • #include "ImGuiFileDialogConfig.h"
  • #include <stdint.h>

Classes

Type Name
struct IGFD_Selection
struct IGFD_Selection_Pair

Public Types

Type Name
typedef int IGFD_FileStyleFlags
enum IGFD_FileStyleFlags_
typedef void(* IGFD_PaneFun
typedef struct IGFD_Selection IGFD_Selection
typedef struct IGFD_Selection_Pair IGFD_Selection_Pair
typedef struct ImGuiFileDialog ImGuiFileDialog
typedef int ImGuiFileDialogFlags
enum ImGuiFileDialogFlags_

Public Functions

Type Name
IMGUIFILEDIALOG_API void IGFD_ClearFilesStyle (ImGuiFileDialog * vContext)
IMGUIFILEDIALOG_API void IGFD_CloseDialog (ImGuiFileDialog * vContext)
IMGUIFILEDIALOG_API ImGuiFileDialog * IGFD_Create (void)
IMGUIFILEDIALOG_API void IGFD_Destroy (ImGuiFileDialog * vContext)
IMGUIFILEDIALOG_API bool IGFD_DisplayDialog (ImGuiFileDialog * vContext, const char * vKey, ImGuiWindowFlags vFlags, ImVec2 vMinSize, ImVec2 vMaxSize)
IMGUIFILEDIALOG_API char * IGFD_GetCurrentFileName (ImGuiFileDialog * vContext)
IMGUIFILEDIALOG_API char * IGFD_GetCurrentFilter (ImGuiFileDialog * vContext)
IMGUIFILEDIALOG_API char * IGFD_GetCurrentPath (ImGuiFileDialog * vContext)
IMGUIFILEDIALOG_API char * IGFD_GetFilePathName (ImGuiFileDialog * vContext)
IMGUIFILEDIALOG_API bool IGFD_GetFileStyle (ImGuiFileDialog * vContext, IGFD_FileStyleFlags vFileStyleFlags, const char * vFilter, ImVec4 * vOutColor, char ** vOutIconText, ImFont ** vOutFont)
IMGUIFILEDIALOG_API IGFD_Selection IGFD_GetSelection (ImGuiFileDialog * vContext)
IMGUIFILEDIALOG_API void * IGFD_GetUserDatas (ImGuiFileDialog * vContext)
IMGUIFILEDIALOG_API bool IGFD_IsKeyOpened (ImGuiFileDialog * vContext, const char * vCurrentOpenedKey)
IMGUIFILEDIALOG_API bool IGFD_IsOk (ImGuiFileDialog * vContext)
IMGUIFILEDIALOG_API bool IGFD_IsOpened (ImGuiFileDialog * vContext)
IMGUIFILEDIALOG_API void IGFD_OpenDialog (ImGuiFileDialog * vContext, const char * vKey, const char * vTitle, const char * vFilters, const char * vPath, const char * vFileName, const int vCountSelectionMax, void * vUserDatas, ImGuiFileDialogFlags vFlags)
IMGUIFILEDIALOG_API void IGFD_OpenDialog2 (ImGuiFileDialog * vContext, const char * vKey, const char * vTitle, const char * vFilters, const char * vFilePathName, const int vCountSelectionMax, void * vUserDatas, ImGuiFileDialogFlags vFlags)
IMGUIFILEDIALOG_API void IGFD_OpenPaneDialog (ImGuiFileDialog * vContext, const char * vKey, const char * vTitle, const char * vFilters, const char * vPath, const char * vFileName, const IGFD_PaneFun vSidePane, const float vSidePaneWidth, const int vCountSelectionMax, void * vUserDatas, ImGuiFileDialogFlags vFlags)
IMGUIFILEDIALOG_API void IGFD_OpenPaneDialog2 (ImGuiFileDialog * vContext, const char * vKey, const char * vTitle, const char * vFilters, const char * vFilePathName, const IGFD_PaneFun vSidePane, const float vSidePaneWidth, const int vCountSelectionMax, void * vUserDatas, ImGuiFileDialogFlags vFlags)
IMGUIFILEDIALOG_API void IGFD_Selection_DestroyContent (IGFD_Selection * vSelection)
IMGUIFILEDIALOG_API IGFD_Selection IGFD_Selection_Get ()
IMGUIFILEDIALOG_API void IGFD_Selection_Pair_DestroyContent (IGFD_Selection_Pair * vSelection_Pair)
IMGUIFILEDIALOG_API IGFD_Selection_Pair IGFD_Selection_Pair_Get ()
IMGUIFILEDIALOG_API void IGFD_SetFileStyle (ImGuiFileDialog * vContext, IGFD_FileStyleFlags vFileStyleFlags, const char * vFilter, ImVec4 vColor, const char * vIconText, ImFont * vFont)
IMGUIFILEDIALOG_API void IGFD_SetFileStyle2 (ImGuiFileDialog * vContext, IGFD_FileStyleFlags vFileStyleFlags, const char * vFilter, float vR, float vG, float vB, float vA, const char * vIconText, ImFont * vFont)
IMGUIFILEDIALOG_API bool IGFD_WasKeyOpenedThisFrame (ImGuiFileDialog * vContext, const char * vKey)
IMGUIFILEDIALOG_API bool IGFD_WasOpenedThisFrame (ImGuiFileDialog * vContext)
IMGUIFILEDIALOG_API void SetLocales (ImGuiFileDialog * vContext, const int vCategory, const char * vBeginLocale, const char * vEndLocale)

Macros

Type Name
define API
define IMGUIFILEDIALOG_API
define IMGUIFILEDIALOG_VERSION "v0.6.5"

Public Types Documentation

typedef IGFD_FileStyleFlags

typedef int IGFD_FileStyleFlags;

enum IGFD_FileStyleFlags_

enum IGFD_FileStyleFlags_ {
    IGFD_FileStyle_None = 0,
    IGFD_FileStyleByTypeFile = (1 << 0),
    IGFD_FileStyleByTypeDir = (1 << 1),
    IGFD_FileStyleByTypeLink = (1 << 2),
    IGFD_FileStyleByExtention = (1 << 3),
    IGFD_FileStyleByFullName = (1 << 4),
    IGFD_FileStyleByContainedInFullName = (1 << 5)
};

typedef IGFD_PaneFun

typedef void(* IGFD_PaneFun) (const char *, void *, bool *);

typedef IGFD_Selection

typedef struct IGFD_Selection IGFD_Selection;

typedef IGFD_Selection_Pair

typedef struct IGFD_Selection_Pair IGFD_Selection_Pair;

typedef ImGuiFileDialog

typedef struct ImGuiFileDialog ImGuiFileDialog;

typedef ImGuiFileDialogFlags

typedef int ImGuiFileDialogFlags;

enum ImGuiFileDialogFlags_

enum ImGuiFileDialogFlags_ {
    ImGuiFileDialogFlags_None = 0,
    ImGuiFileDialogFlags_ConfirmOverwrite = (1 << 0),
    ImGuiFileDialogFlags_DontShowHiddenFiles = (1 << 1),
    ImGuiFileDialogFlags_DisableCreateDirectoryButton = (1 << 2),
    ImGuiFileDialogFlags_HideColumnType = (1 << 3),
    ImGuiFileDialogFlags_HideColumnSize = (1 << 4),
    ImGuiFileDialogFlags_HideColumnDate = (1 << 5),
    ImGuiFileDialogFlags_NoDialog = (1 << 6),
    ImGuiFileDialogFlags_ReadOnlyFileNameField = (1 << 7),
    ImGuiFileDialogFlags_CaseInsensitiveExtention = (1 << 8),
    ImGuiFileDialogFlags_Modal = (1 << 9),
    ImGuiFileDialogFlags_Default = ImGuiFileDialogFlags_ConfirmOverwrite
};

Public Functions Documentation

function IGFD_ClearFilesStyle

IMGUIFILEDIALOG_API void IGFD_ClearFilesStyle (
    ImGuiFileDialog * vContext
) 

function IGFD_CloseDialog

IMGUIFILEDIALOG_API void IGFD_CloseDialog (
    ImGuiFileDialog * vContext
) 

function IGFD_Create

IMGUIFILEDIALOG_API ImGuiFileDialog * IGFD_Create (
    void
) 

function IGFD_Destroy

IMGUIFILEDIALOG_API void IGFD_Destroy (
    ImGuiFileDialog * vContext
) 

function IGFD_DisplayDialog

IMGUIFILEDIALOG_API bool IGFD_DisplayDialog (
    ImGuiFileDialog * vContext,
    const char * vKey,
    ImGuiWindowFlags vFlags,
    ImVec2 vMinSize,
    ImVec2 vMaxSize
) 

function IGFD_GetCurrentFileName

IMGUIFILEDIALOG_API char * IGFD_GetCurrentFileName (
    ImGuiFileDialog * vContext
) 

function IGFD_GetCurrentFilter

IMGUIFILEDIALOG_API char * IGFD_GetCurrentFilter (
    ImGuiFileDialog * vContext
) 

function IGFD_GetCurrentPath

IMGUIFILEDIALOG_API char * IGFD_GetCurrentPath (
    ImGuiFileDialog * vContext
) 

function IGFD_GetFilePathName

IMGUIFILEDIALOG_API char * IGFD_GetFilePathName (
    ImGuiFileDialog * vContext
) 

function IGFD_GetFileStyle

IMGUIFILEDIALOG_API bool IGFD_GetFileStyle (
    ImGuiFileDialog * vContext,
    IGFD_FileStyleFlags vFileStyleFlags,
    const char * vFilter,
    ImVec4 * vOutColor,
    char ** vOutIconText,
    ImFont ** vOutFont
) 

function IGFD_GetSelection

IMGUIFILEDIALOG_API IGFD_Selection IGFD_GetSelection (
    ImGuiFileDialog * vContext
) 

function IGFD_GetUserDatas

IMGUIFILEDIALOG_API void * IGFD_GetUserDatas (
    ImGuiFileDialog * vContext
) 

function IGFD_IsKeyOpened

IMGUIFILEDIALOG_API bool IGFD_IsKeyOpened (
    ImGuiFileDialog * vContext,
    const char * vCurrentOpenedKey
) 

function IGFD_IsOk

IMGUIFILEDIALOG_API bool IGFD_IsOk (
    ImGuiFileDialog * vContext
) 

function IGFD_IsOpened

IMGUIFILEDIALOG_API bool IGFD_IsOpened (
    ImGuiFileDialog * vContext
) 

function IGFD_OpenDialog

IMGUIFILEDIALOG_API void IGFD_OpenDialog (
    ImGuiFileDialog * vContext,
    const char * vKey,
    const char * vTitle,
    const char * vFilters,
    const char * vPath,
    const char * vFileName,
    const int vCountSelectionMax,
    void * vUserDatas,
    ImGuiFileDialogFlags vFlags
) 

function IGFD_OpenDialog2

IMGUIFILEDIALOG_API void IGFD_OpenDialog2 (
    ImGuiFileDialog * vContext,
    const char * vKey,
    const char * vTitle,
    const char * vFilters,
    const char * vFilePathName,
    const int vCountSelectionMax,
    void * vUserDatas,
    ImGuiFileDialogFlags vFlags
) 

function IGFD_OpenPaneDialog

IMGUIFILEDIALOG_API void IGFD_OpenPaneDialog (
    ImGuiFileDialog * vContext,
    const char * vKey,
    const char * vTitle,
    const char * vFilters,
    const char * vPath,
    const char * vFileName,
    const IGFD_PaneFun vSidePane,
    const float vSidePaneWidth,
    const int vCountSelectionMax,
    void * vUserDatas,
    ImGuiFileDialogFlags vFlags
) 

function IGFD_OpenPaneDialog2

IMGUIFILEDIALOG_API void IGFD_OpenPaneDialog2 (
    ImGuiFileDialog * vContext,
    const char * vKey,
    const char * vTitle,
    const char * vFilters,
    const char * vFilePathName,
    const IGFD_PaneFun vSidePane,
    const float vSidePaneWidth,
    const int vCountSelectionMax,
    void * vUserDatas,
    ImGuiFileDialogFlags vFlags
) 

function IGFD_Selection_DestroyContent

IMGUIFILEDIALOG_API void IGFD_Selection_DestroyContent (
    IGFD_Selection * vSelection
) 

function IGFD_Selection_Get

IMGUIFILEDIALOG_API IGFD_Selection IGFD_Selection_Get () 

function IGFD_Selection_Pair_DestroyContent

IMGUIFILEDIALOG_API void IGFD_Selection_Pair_DestroyContent (
    IGFD_Selection_Pair * vSelection_Pair
) 

function IGFD_Selection_Pair_Get

IMGUIFILEDIALOG_API IGFD_Selection_Pair IGFD_Selection_Pair_Get () 

function IGFD_SetFileStyle

IMGUIFILEDIALOG_API void IGFD_SetFileStyle (
    ImGuiFileDialog * vContext,
    IGFD_FileStyleFlags vFileStyleFlags,
    const char * vFilter,
    ImVec4 vColor,
    const char * vIconText,
    ImFont * vFont
) 

function IGFD_SetFileStyle2

IMGUIFILEDIALOG_API void IGFD_SetFileStyle2 (
    ImGuiFileDialog * vContext,
    IGFD_FileStyleFlags vFileStyleFlags,
    const char * vFilter,
    float vR,
    float vG,
    float vB,
    float vA,
    const char * vIconText,
    ImFont * vFont
) 

function IGFD_WasKeyOpenedThisFrame

IMGUIFILEDIALOG_API bool IGFD_WasKeyOpenedThisFrame (
    ImGuiFileDialog * vContext,
    const char * vKey
) 

function IGFD_WasOpenedThisFrame

IMGUIFILEDIALOG_API bool IGFD_WasOpenedThisFrame (
    ImGuiFileDialog * vContext
) 

function SetLocales

IMGUIFILEDIALOG_API void SetLocales (
    ImGuiFileDialog * vContext,
    const int vCategory,
    const char * vBeginLocale,
    const char * vEndLocale
) 

Macro Definition Documentation

define API

#define API 

define IMGUIFILEDIALOG_API

#define IMGUIFILEDIALOG_API 

define IMGUIFILEDIALOG_VERSION

#define IMGUIFILEDIALOG_VERSION "v0.6.5"


The documentation for this class was generated from the following file src/AIAC/UI/ImGuiFileDialog.h