Open vertexi opened 11 months ago
you should try. ImGui provides ImGui::GetMousePos()
+ ImGui::IsMouseDown()
which could help you.
But you may experience difficulties. You are fighting against the OS and/or Glfw.
This is now possible, see new content of AppWindowParams:
struct AppWindowParams
{
std::string windowTitle;
WindowGeometry windowGeometry;
// if true, then save & restore from last run
bool restorePreviousGeometry = false;
bool resizable = true;
bool hidden = false;
bool borderless = false;
bool borderlessMovable = true;
bool borderlessResizable = true;
bool borderlessClosable = true;
ImVec4 borderlessHighlightColor = ImVec4(0.2f, 0.4f, 1.f, 0.3f);
EdgeInsets edgeInsets;
bool handleEdgeInsets = true;
};
Magnificent work! Thank you.
I want to create a window that
borderless = true
andresizable = true
. But according to GLFW's documentSo, I wonder if I can write some code to detect the mouse whether drag the corner of window or not, then call function like
setwindowsize()
.