GE Lua Documentation

Press F to search!

ImDrawList_AddImageRounded

Definition


-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:2104
function M.ImDrawList_AddImageRounded(ImDrawList_ctx, ImTextureID_user_texture_id, ImVec2_p_min, ImVec2_p_max, ImVec2_uv_min, ImVec2_uv_max, ImU32_col, float_rounding, ImDrawFlags_flags)
  if ImDrawFlags_flags == nil then ImDrawFlags_flags = 0 end
  ImDrawList_ctx:AddImageRounded(ImTextureID_user_texture_id, ImVec2_p_min, ImVec2_p_max, ImVec2_uv_min, ImVec2_uv_max, ImU32_col, float_rounding, ImDrawFlags_flags)
end

Callers

@/lua/ge/extensions/editor/flowgraph/properties.lua
  local uv = im.ImVec2(0.5, 0.1)
  im.ImDrawList_AddImageRounded(im.GetWindowDrawList(), self.headerTexture.texId, a, b, im.ImVec2(0, 0), uv, im.GetColorU322(item.color), 0, 0)
@/lua/ge/extensions/flowgraph/builder.lua

      im.ImDrawList_AddImageRounded(im.GetWindowDrawList(), self.headerTexture.texId, a, b, im.ImVec2(0, 0), uv, im.GetColorU322(self.HeaderColor), ui_flowgraph_editor.GetStyle().NodeRounding, 3)