Plasma Engine  2.0
Loading...
Searching...
No Matches
plFileBrowserAttribute Class Reference

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

#include <PropertyAttributes.h>

Inheritance diagram for plFileBrowserAttribute:

Public Member Functions

 plFileBrowserAttribute (plStringView sDialogTitle, plStringView sTypeFilter, plStringView sCustomAction={}, plBitflags< plDependencyFlags > depencyFlags=plDependencyFlags::Transform|plDependencyFlags::Thumbnail)
 
plStringView GetDialogTitle () const
 
plStringView GetTypeFilter () const
 
plStringView GetCustomAction () const
 
plBitflags< plDependencyFlagsGetDependencyFlags () const
 
- Public Member Functions inherited from plReflectedClass
virtual const plRTTIGetDynamicRTTI () const
 
bool IsInstanceOf (const plRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
 
template<typename T >
PL_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 plStringView Meshes = "*.obj;*.fbx;*.gltf;*.glb"_plsv
 
static constexpr plStringView MeshesWithAnimations = "*.fbx;*.gltf;*.glb"_plsv
 
static constexpr plStringView ImagesLdrOnly = "*.dds;*.tga;*.png;*.jpg;*.jpeg"_plsv
 
static constexpr plStringView ImagesHdrOnly = "*.hdr;*.exr"_plsv
 
static constexpr plStringView ImagesLdrAndHdr = "*.dds;*.tga;*.png;*.jpg;*.jpeg;*.hdr;*.exr"_plsv
 
static constexpr plStringView CubemapsLdrAndHdr = "*.dds;*.hdr"_plsv
 

Additional Inherited Members

- Static Public Member Functions inherited from plNoBase
static const plRTTIGetStaticRTTI ()
 

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: PL_MEMBER_PROPERTY("File", m_sFilePath)->AddAttributes(new plFileBrowserAttribute("Choose a File", "*.txt")),


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