mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-24 21:53:37 +02:00
Add missing window state parameters
This commit is contained in:
1 parent
d971aada83
commit
8cc7537899
2 files changed
+9
-6
No files matched your search
@@ -75,11 +75,12 @@ typedef enum
|
||||
/// \param mode Video mode to use (defines the width, height and depth of the rendering area of the windowBase)
|
||||
/// \param title Title of the window
|
||||
/// \param style Window style
|
||||
/// \param state Window state
|
||||
///
|
||||
/// \return A new sfWindow object
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_WINDOW_API sfWindowBase* sfWindowBase_create(sfVideoMode mode, const char* title, uint32_t style);
|
||||
CSFML_WINDOW_API sfWindowBase* sfWindowBase_create(sfVideoMode mode, const char* title, uint32_t style, sfWindowState state);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Construct a new window (with a UTF-32 title)
|
||||
@@ -93,11 +94,12 @@ CSFML_WINDOW_API sfWindowBase* sfWindowBase_create(sfVideoMode mode, const char*
|
||||
/// \param mode Video mode to use (defines the width, height and depth of the rendering area of the windowBase)
|
||||
/// \param title Title of the window (UTF-32)
|
||||
/// \param style Window style
|
||||
/// \param state Window state
|
||||
///
|
||||
/// \return A new sfWindow object
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_WINDOW_API sfWindowBase* sfWindowBase_createUnicode(sfVideoMode mode, const sfChar32* title, uint32_t style);
|
||||
CSFML_WINDOW_API sfWindowBase* sfWindowBase_createUnicode(sfVideoMode mode, const sfChar32* title, uint32_t style, sfWindowState state);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Construct a window from an existing control
|
||||
|
||||
@@ -36,22 +36,23 @@
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfWindowBase* sfWindowBase_create(sfVideoMode mode, const char* title, uint32_t style)
|
||||
sfWindowBase* sfWindowBase_create(sfVideoMode mode, const char* title, uint32_t style, sfWindowState state)
|
||||
{
|
||||
// Create the window
|
||||
auto* windowBase = new sfWindowBase;
|
||||
windowBase->This.create(convertVideoMode(mode), title, style);
|
||||
windowBase->This.create(convertVideoMode(mode), title, style, static_cast<sf::State>(state));
|
||||
|
||||
return windowBase;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfWindowBase* sfWindowBase_createUnicode(sfVideoMode mode, const sfChar32* title, uint32_t style)
|
||||
sfWindowBase* sfWindowBase_createUnicode(sfVideoMode mode, const sfChar32* title, uint32_t style, sfWindowState state)
|
||||
{
|
||||
// Create the window
|
||||
auto* windowBase = new sfWindowBase;
|
||||
windowBase->This.create(convertVideoMode(mode), reinterpret_cast<const char32_t*>(title), style);
|
||||
windowBase->This
|
||||
.create(convertVideoMode(mode), reinterpret_cast<const char32_t*>(title), style, static_cast<sf::State>(state));
|
||||
|
||||
return windowBase;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user