Skip to content

Commit

Permalink
fix docs and outdated example
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Sep 24, 2023
1 parent 7216529 commit 6037ddf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/demo_layout.jl
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ function ShowDemoWindowLayout()
if CImGui.ListBoxHeader("List", size)
CImGui.Selectable("Selected", true)
CImGui.Selectable("Not Selected", false)
CImGui.ListBoxFooter()
CImGui.EndListBox()
end

CImGui.TreePop()
Expand Down
9 changes: 4 additions & 5 deletions src/wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1624,11 +1624,11 @@ If the function return true, you can output elements then call [`EndListBox`](@r
BeginListBox(label,size=ImVec2(0,0)) = igBeginListBox(label,size)

"""
ListBoxFooter()
EndListBox()
Terminate the scrolling region.
!!! note
Only call `ListBoxFooter()` if [`ListBoxHeader`](@ref) returned true!
Only call `EndListBox()` if [`BeginListBox`](@ref) returned true!
"""
EndListBox() = igEndListBox()

Expand Down Expand Up @@ -1904,9 +1904,8 @@ GetColumnsCount() = igGetColumnsCount()
# - 5. Call EndTable()
"""
BeginTable(str_id, columns_count, flags = ImGuiTableFlags_(0), outer_size = ImVec2(0,0), inner_width = 0.0) -> Bool
Begin a table entry.
Begin a table entry.
"""

BeginTable(str_id, columns_count, flags = ImGuiTableFlags_(0), outer_size = ImVec2(0,0), inner_width = 0.0) = igBeginTable(str_id, columns_count, flags, outer_size, inner_width)

"""
Expand All @@ -1924,7 +1923,7 @@ TableNextRow(row_flags = ImGuiTableRowFlags_(0), min_row_height = 0.0) = igTable
"""
TableNextColumn() -> Bool
Append into the next column (or first column of next row if currently in last column). Return true when column is visible.
"""
"""
TableNextColumn() = igTableNextColumn()

"""
Expand Down

0 comments on commit 6037ddf

Please sign in to comment.