Duckcpp 2.1.0
Duckcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
IGUIFileOpenDialog.hpp
1// Copyright (C) 2002-2012 Nikolaus Gebhardt
2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in duckcpp/duckcpp.hpp
4
5#ifndef DCPP_I_GUI_FILE_OPEN_DIALOG_HPP_INCLUDED
6#define DCPP_I_GUI_FILE_OPEN_DIALOG_HPP_INCLUDED
7
8#include <duckcpp/core/engine/IGUIElement.hpp>
9#include <duckcpp/core/engine/path.hpp>
10
11namespace dcpp
12{
13namespace gui
14{
15
17
25 {
26 public:
27
29 IGUIFileOpenDialog(IGUIEnvironment* environment, IGUIElement* parent, i32 id, nub::rect<i32> rectangle)
30 : IGUIElement(EGUIET_FILE_OPEN_DIALOG, environment, parent, id, rectangle) {}
31
33 virtual const wchar_t* getFileName() const = 0;
34
36 virtual const io::path& getFileNameP() const = 0;
37
39 virtual const io::path& getDirectoryName() const = 0;
40
42 virtual const wchar_t* getDirectoryNameW() const = 0;
43 };
44
45
46} // end namespace gui
47} // end namespace dcpp
48
49#endif
Base class of all GUI elements.
Definition IGUIElement.hpp:24
GUI Environment. Used as factory and manager of all other GUI elements.
Definition IGUIEnvironment.hpp:73
Standard file chooser dialog.
Definition IGUIFileOpenDialog.hpp:25
virtual const wchar_t * getFileName() const =0
Returns the filename of the selected file converted to wide characters. Returns NULL if no file was s...
virtual const io::path & getFileNameP() const =0
Returns the filename of the selected file. Is empty if no file was selected.
virtual const wchar_t * getDirectoryNameW() const =0
Returns the directory of the selected file converted to wide characters. Returns NULL if no directory...
IGUIFileOpenDialog(IGUIEnvironment *environment, IGUIElement *parent, i32 id, nub::rect< i32 > rectangle)
constructor
Definition IGUIFileOpenDialog.hpp:29
virtual const io::path & getDirectoryName() const =0
Returns the directory of the selected file. Empty if no directory was selected.
Axis aligned bounding box in 3d dimensional space.
Definition aabbox3d.hpp:22
@ EGUIET_FILE_OPEN_DIALOG
A file open dialog (IGUIFileOpenDialog)
Definition EGUIElementTypes.hpp:38
As of Duckcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
signed int i32
32 bit signed variable.
Definition irrTypes.hpp:72

Duckcpp    @cppfx.xyz