Skip to content

Commit

Permalink
Merge pull request #853 from cjbrigato/patch-1
Browse files Browse the repository at this point in the history
Add MasterWindowFlagsHidden
  • Loading branch information
gucio321 authored Sep 21, 2024
2 parents 4fd8e2a + 799bf78 commit b7cd462
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MasterWindow.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const (
MasterWindowFlagsFrameless
// Specifies whether the window will be transparent.
MasterWindowFlagsTransparent
// Specifies whether the window will be hidden (for use with multiple windows).
MasterWindowFlagsHidden
)

// parseAndApply converts MasterWindowFlags to appropriate imgui.GLFWWindowFlags.
Expand All @@ -38,6 +40,7 @@ func (m MasterWindowFlags) parseAndApply(b imgui.Backend[imgui.GLFWWindowFlags])
MasterWindowFlagsFloating: {imgui.GLFWWindowFlagsFloating, 1},
MasterWindowFlagsFrameless: {imgui.GLFWWindowFlagsDecorated, 0},
MasterWindowFlagsTransparent: {imgui.GLFWWindowFlagsTransparent, 1},
MasterWindowFlagsHidden: {imgui.GLFWWindowFlagsVisible, 0},
}

for flag, d := range data {
Expand Down

0 comments on commit b7cd462

Please sign in to comment.