Add missing window state parameters

This commit is contained in:
Chris Thrasher committed 2024-09-08 10:45:11 -06:00
1 parent d971aada83
commit 8cc7537899
2 files changed
+9 -6

No files matched your search

+4 -2
View File
@@ -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 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 title Title of the window
/// \param style Window style /// \param style Window style
/// \param state Window state
/// ///
/// \return A new sfWindow object /// \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) /// \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 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 title Title of the window (UTF-32)
/// \param style Window style /// \param style Window style
/// \param state Window state
/// ///
/// \return A new sfWindow object /// \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 /// \brief Construct a window from an existing control
+5 -4
View File
@@ -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 // Create the window
auto* windowBase = new sfWindowBase; 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; 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 // Create the window
auto* windowBase = new sfWindowBase; 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; return windowBase;
} }