Use std::string when setting Window title instead of std::string_view
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
#include <nova/render/render_structs.h>
|
||||
#include <nova/types.h>
|
||||
|
||||
#include <string_view>
|
||||
#include <string>
|
||||
|
||||
namespace Nova {
|
||||
class RenderDriver;
|
||||
@@ -30,10 +30,10 @@ namespace Nova {
|
||||
virtual void beep() = 0;
|
||||
|
||||
virtual u32 get_window_count() const = 0;
|
||||
[[nodiscard]] virtual WindowID create_window(std::string_view title, u32 width, u32 height) = 0;
|
||||
[[nodiscard]] virtual WindowID create_window(const std::string& title, u32 width, u32 height) = 0;
|
||||
virtual void destroy_window(WindowID window) = 0;
|
||||
|
||||
virtual void set_window_title(WindowID window, std::string_view title) = 0;
|
||||
virtual void set_window_title(WindowID window, const std::string& title) = 0;
|
||||
virtual void set_window_size(WindowID window, u32 width, u32 height) = 0;
|
||||
virtual void set_window_position(WindowID window, i32 x, i32 y) = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user