Skip to content

Commit

Permalink
Merge pull request #153 from Gnimuc/cleanup
Browse files Browse the repository at this point in the history
Delete old bindings
  • Loading branch information
JamesWrigley authored Oct 14, 2024
2 parents 206783e + 12bc4e5 commit 82ad053
Showing 1 changed file with 0 additions and 53 deletions.
53 changes: 0 additions & 53 deletions src/lib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,59 +35,6 @@ else
error("Unknown platform: $(Base.BUILD_TRIPLET)")
end

# should be reimplement as macros by using Julia 1.5's @ccall macro
function igText(text)
ccall((:igText, libcimgui), Cvoid, (Cstring, Cstring), "%s", text)
end

function igTextColored(col, text)
ccall((:igTextColored, libcimgui), Cvoid, (ImVec4, Cstring), col, text)
end

function igTextDisabled(text)
ccall((:igTextDisabled, libcimgui), Cvoid, (Cstring,), text)
end

function igTextWrapped(text)
ccall((:igTextWrapped, libcimgui), Cvoid, (Cstring,), text)
end

function igLabelText(label, text)
ccall((:igLabelText, libcimgui), Cvoid, (Cstring, Cstring), label, text)
end

function igBulletText(text)
ccall((:igBulletText, libcimgui), Cvoid, (Cstring,), text)
end

function igTreeNodeStrStr(str_id, text)
ccall((:igTreeNodeStrStr, libcimgui), Bool, (Cstring, Cstring), str_id, text)
end

function igTreeNodePtr(ptr_id, text)
ccall((:igTreeNodePtr, libcimgui), Bool, (Ptr{Cvoid}, Cstring), ptr_id, text)
end

function igTreeNodeExStrStr(str_id, flags, text)
ccall((:igTreeNodeExStrStr, libcimgui), Bool, (Cstring, ImGuiTreeNodeFlags, Cstring), str_id, flags, text)
end

function igTreeNodeExPtr(ptr_id, flags, text)
ccall((:igTreeNodeExPtr, libcimgui), Bool, (Ptr{Cvoid}, ImGuiTreeNodeFlags, Cstring), ptr_id, flags, text)
end

function igSetTooltip(text)
ccall((:igSetTooltip, libcimgui), Cvoid, (Cstring,), text)
end

function igOpenPopup(str_id)
ccall((:igOpenPopup, libcimgui), Cvoid, (Cstring,), str_id)
end

function igLogText(text)
ccall((:igLogText, libcimgui), Cvoid, (Cstring,), text)
end

# exports
const PREFIXES = ["ig", "Im", "IMGUI_", "imnodes_", "ImPlot_", "ImVector_"]
for name in names(@__MODULE__; all=true), prefix in PREFIXES
Expand Down

0 comments on commit 82ad053

Please sign in to comment.