XII Release 0.1.0
Loading...
Searching...
No Matches
xiiFileBrowserAttribute Class Reference

A property attribute that indicates that the string property should display a file browsing button. More...

#include <PropertyAttributes.h>

Inheritance diagram for xiiFileBrowserAttribute:
[legend]

Public Member Functions

 xiiFileBrowserAttribute (xiiStringView sDialogTitle, xiiStringView sTypeFilter, xiiStringView sCustomAction={}, xiiStringView sCreateTitle={}, xiiBitflags< xiiDependencyFlags > depencyFlags=xiiDependencyFlags::Transform|xiiDependencyFlags::Thumbnail)
 
xiiStringView GetDialogTitle () const
 
xiiStringView GetTypeFilter () const
 
xiiStringView GetCustomAction () const
 
xiiStringView GetCreateTitle () const
 
xiiBitflags< xiiDependencyFlagsGetDependencyFlags () const
 
- Public Member Functions inherited from xiiReflectedClass
virtual const xiiRTTIGetDynamicRTTI () const
 
bool IsInstanceOf (const xiiRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
 
template<typename T>
XII_ALWAYS_INLINE bool IsInstanceOf () const
 Returns whether the type of this instance is of the given type or derived from it.
 

Static Public Attributes

static constexpr xiiStringView Meshes = "*.obj;*.fbx;*.gltf;*.glb"_xiisv
 
static constexpr xiiStringView MeshesWithAnimations = "*.fbx;*.gltf;*.glb"_xiisv
 
static constexpr xiiStringView ImagesLdrOnly = "*.dds;*.tga;*.png;*.jpg;*.jpeg"_xiisv
 
static constexpr xiiStringView ImagesHdrOnly = "*.hdr;*.exr"_xiisv
 
static constexpr xiiStringView ImagesLdrAndHdr = "*.dds;*.tga;*.png;*.jpg;*.jpeg;*.hdr;*.exr"_xiisv
 
static constexpr xiiStringView CubemapsLdrAndHdr = "*.dds;*.hdr"_xiisv
 

Additional Inherited Members

- Static Public Member Functions inherited from xiiNoBase
static const xiiRTTIGetStaticRTTI ()
 

Detailed Description

A property attribute that indicates that the string property should display a file browsing button.

Allows to specify the title for the browse dialog and the allowed file types. Usage: XII_MEMBER_PROPERTY("File", m_sFilePath)->AddAttributes(new xiiFileBrowserAttribute("Choose a File", "*.txt")),


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