Class: ImDrawList
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- ImDrawList
- Defined in:
- lib/imgui.rb
Class Method Summary collapse
Instance Method Summary collapse
- #_CalcCircleAutoSegmentCount(radius) ⇒ Object
- #_ClearFreeMemory ⇒ Object
- #_OnChangedClipRect ⇒ Object
- #_OnChangedTextureID ⇒ Object
- #_OnChangedVtxOffset ⇒ Object
- #_PathArcToFastEx(center, radius, a_min_sample, a_max_sample, a_step) ⇒ Object
- #_PathArcToN(center, radius, a_min, a_max, num_segments) ⇒ Object
- #_PopUnusedDrawCmd ⇒ Object
- #_ResetForNewFrame ⇒ Object
- #_TryMergeDrawCmds ⇒ Object
- #AddBezierCubic(p1, p2, p3, p4, col, thickness, num_segments = 0) ⇒ Object
- #AddBezierQuadratic(p1, p2, p3, col, thickness, num_segments = 0) ⇒ Object
- #AddCallback(callback, callback_data) ⇒ Object
- #AddCircle(center, radius, col, num_segments = 0, thickness = 1.0) ⇒ Object
- #AddCircleFilled(center, radius, col, num_segments = 0) ⇒ Object
- #AddConvexPolyFilled(points, num_points, col) ⇒ Object
- #AddDrawCmd ⇒ Object
- #AddImage(user_texture_id, p_min, p_max, uv_min = ImVec2.create(0,0), uv_max = ImVec2.create(1,1), col = ImColor.col32(255,255,255,255)) ⇒ Object
- #AddImageQuad(user_texture_id, p1, p2, p3, p4, uv1 = ImVec2.create(0,0), uv2 = ImVec2.create(1,0), uv3 = ImVec2.create(1,1), uv4 = ImVec2.create(0,1), col = ImColor.col32(255,255,255,255)) ⇒ Object
- #AddImageRounded(user_texture_id, p_min, p_max, uv_min, uv_max, col, rounding, flags = 0) ⇒ Object
- #AddLine(p1, p2, col, thickness = 1.0) ⇒ Object
- #AddNgon(center, radius, col, num_segments, thickness = 1.0) ⇒ Object
- #AddNgonFilled(center, radius, col, num_segments) ⇒ Object
- #AddPolyline(points, num_points, col, flags, thickness) ⇒ Object
- #AddQuad(p1, p2, p3, p4, col, thickness = 1.0) ⇒ Object
- #AddQuadFilled(p1, p2, p3, p4, col) ⇒ Object
- #AddRect(p_min, p_max, col, rounding = 0.0, flags = 0, thickness = 1.0) ⇒ Object
- #AddRectFilled(p_min, p_max, col, rounding = 0.0, flags = 0) ⇒ Object
- #AddRectFilledMultiColor(p_min, p_max, col_upr_left, col_upr_right, col_bot_right, col_bot_left) ⇒ Object
- #AddText_FontPtr(font, font_size, pos, col, text_begin, text_end = nil, wrap_width = 0.0, cpu_fine_clip_rect = nil) ⇒ Object
- #AddText_Vec2(pos, col, text_begin, text_end = nil) ⇒ Object
- #AddTriangle(p1, p2, p3, col, thickness = 1.0) ⇒ Object
- #AddTriangleFilled(p1, p2, p3, col) ⇒ Object
- #ChannelsMerge ⇒ Object
- #ChannelsSetCurrent(n) ⇒ Object
- #ChannelsSplit(count) ⇒ Object
- #CloneOutput ⇒ Object
- #destroy ⇒ Object
- #GetClipRectMax ⇒ Object
- #GetClipRectMin ⇒ Object
- #PathArcTo(center, radius, a_min, a_max, num_segments = 0) ⇒ Object
- #PathArcToFast(center, radius, a_min_of_12, a_max_of_12) ⇒ Object
- #PathBezierCubicCurveTo(p2, p3, p4, num_segments = 0) ⇒ Object
- #PathBezierQuadraticCurveTo(p2, p3, num_segments = 0) ⇒ Object
- #PathClear ⇒ Object
- #PathFillConvex(col) ⇒ Object
- #PathLineTo(pos) ⇒ Object
- #PathLineToMergeDuplicate(pos) ⇒ Object
- #PathRect(rect_min, rect_max, rounding = 0.0, flags = 0) ⇒ Object
- #PathStroke(col, flags = 0, thickness = 1.0) ⇒ Object
- #PopClipRect ⇒ Object
- #PopTextureID ⇒ Object
- #PrimQuadUV(a, b, c, d, uv_a, uv_b, uv_c, uv_d, col) ⇒ Object
- #PrimRect(a, b, col) ⇒ Object
- #PrimRectUV(a, b, uv_a, uv_b, col) ⇒ Object
- #PrimReserve(idx_count, vtx_count) ⇒ Object
- #PrimUnreserve(idx_count, vtx_count) ⇒ Object
- #PrimVtx(pos, uv, col) ⇒ Object
- #PrimWriteIdx(idx) ⇒ Object
- #PrimWriteVtx(pos, uv, col) ⇒ Object
- #PushClipRect(clip_rect_min, clip_rect_max, intersect_with_current_clip_rect = false) ⇒ Object
- #PushClipRectFullScreen ⇒ Object
- #PushTextureID(texture_id) ⇒ Object
Class Method Details
.create(shared_data) ⇒ Object
910 911 912 |
# File 'lib/imgui.rb', line 910 def self.create(shared_data) return ImDrawList.new(ImGui::ImDrawList_ImDrawList(shared_data)) end |
Instance Method Details
#_CalcCircleAutoSegmentCount(radius) ⇒ Object
1006 1007 1008 |
# File 'lib/imgui.rb', line 1006 def _CalcCircleAutoSegmentCount(radius) ImGui::ImDrawList__CalcCircleAutoSegmentCount(self, radius) end |
#_ClearFreeMemory ⇒ Object
1010 1011 1012 |
# File 'lib/imgui.rb', line 1010 def _ClearFreeMemory() ImGui::ImDrawList__ClearFreeMemory(self) end |
#_OnChangedClipRect ⇒ Object
1014 1015 1016 |
# File 'lib/imgui.rb', line 1014 def _OnChangedClipRect() ImGui::ImDrawList__OnChangedClipRect(self) end |
#_OnChangedTextureID ⇒ Object
1018 1019 1020 |
# File 'lib/imgui.rb', line 1018 def _OnChangedTextureID() ImGui::ImDrawList__OnChangedTextureID(self) end |
#_OnChangedVtxOffset ⇒ Object
1022 1023 1024 |
# File 'lib/imgui.rb', line 1022 def _OnChangedVtxOffset() ImGui::ImDrawList__OnChangedVtxOffset(self) end |
#_PathArcToFastEx(center, radius, a_min_sample, a_max_sample, a_step) ⇒ Object
1026 1027 1028 |
# File 'lib/imgui.rb', line 1026 def _PathArcToFastEx(center, radius, a_min_sample, a_max_sample, a_step) ImGui::ImDrawList__PathArcToFastEx(self, center, radius, a_min_sample, a_max_sample, a_step) end |
#_PathArcToN(center, radius, a_min, a_max, num_segments) ⇒ Object
1030 1031 1032 |
# File 'lib/imgui.rb', line 1030 def _PathArcToN(center, radius, a_min, a_max, num_segments) ImGui::ImDrawList__PathArcToN(self, center, radius, a_min, a_max, num_segments) end |
#_PopUnusedDrawCmd ⇒ Object
1034 1035 1036 |
# File 'lib/imgui.rb', line 1034 def _PopUnusedDrawCmd() ImGui::ImDrawList__PopUnusedDrawCmd(self) end |
#_ResetForNewFrame ⇒ Object
1038 1039 1040 |
# File 'lib/imgui.rb', line 1038 def _ResetForNewFrame() ImGui::ImDrawList__ResetForNewFrame(self) end |
#_TryMergeDrawCmds ⇒ Object
1042 1043 1044 |
# File 'lib/imgui.rb', line 1042 def _TryMergeDrawCmds() ImGui::ImDrawList__TryMergeDrawCmds(self) end |
#AddBezierCubic(p1, p2, p3, p4, col, thickness, num_segments = 0) ⇒ Object
790 791 792 |
# File 'lib/imgui.rb', line 790 def AddBezierCubic(p1, p2, p3, p4, col, thickness, num_segments = 0) ImGui::ImDrawList_AddBezierCubic(self, p1, p2, p3, p4, col, thickness, num_segments) end |
#AddBezierQuadratic(p1, p2, p3, col, thickness, num_segments = 0) ⇒ Object
794 795 796 |
# File 'lib/imgui.rb', line 794 def AddBezierQuadratic(p1, p2, p3, col, thickness, num_segments = 0) ImGui::ImDrawList_AddBezierQuadratic(self, p1, p2, p3, col, thickness, num_segments) end |
#AddCallback(callback, callback_data) ⇒ Object
798 799 800 |
# File 'lib/imgui.rb', line 798 def AddCallback(callback, callback_data) ImGui::ImDrawList_AddCallback(self, callback, callback_data) end |
#AddCircle(center, radius, col, num_segments = 0, thickness = 1.0) ⇒ Object
802 803 804 |
# File 'lib/imgui.rb', line 802 def AddCircle(center, radius, col, num_segments = 0, thickness = 1.0) ImGui::ImDrawList_AddCircle(self, center, radius, col, num_segments, thickness) end |
#AddCircleFilled(center, radius, col, num_segments = 0) ⇒ Object
806 807 808 |
# File 'lib/imgui.rb', line 806 def AddCircleFilled(center, radius, col, num_segments = 0) ImGui::ImDrawList_AddCircleFilled(self, center, radius, col, num_segments) end |
#AddConvexPolyFilled(points, num_points, col) ⇒ Object
810 811 812 |
# File 'lib/imgui.rb', line 810 def AddConvexPolyFilled(points, num_points, col) ImGui::ImDrawList_AddConvexPolyFilled(self, points, num_points, col) end |
#AddDrawCmd ⇒ Object
814 815 816 |
# File 'lib/imgui.rb', line 814 def AddDrawCmd() ImGui::ImDrawList_AddDrawCmd(self) end |
#AddImage(user_texture_id, p_min, p_max, uv_min = ImVec2.create(0,0), uv_max = ImVec2.create(1,1), col = ImColor.col32(255,255,255,255)) ⇒ Object
818 819 820 |
# File 'lib/imgui.rb', line 818 def AddImage(user_texture_id, p_min, p_max, uv_min = ImVec2.create(0,0), uv_max = ImVec2.create(1,1), col = ImColor.col32(255,255,255,255)) ImGui::ImDrawList_AddImage(self, user_texture_id, p_min, p_max, uv_min, uv_max, col) end |
#AddImageQuad(user_texture_id, p1, p2, p3, p4, uv1 = ImVec2.create(0,0), uv2 = ImVec2.create(1,0), uv3 = ImVec2.create(1,1), uv4 = ImVec2.create(0,1), col = ImColor.col32(255,255,255,255)) ⇒ Object
822 823 824 |
# File 'lib/imgui.rb', line 822 def AddImageQuad(user_texture_id, p1, p2, p3, p4, uv1 = ImVec2.create(0,0), uv2 = ImVec2.create(1,0), uv3 = ImVec2.create(1,1), uv4 = ImVec2.create(0,1), col = ImColor.col32(255,255,255,255)) ImGui::ImDrawList_AddImageQuad(self, user_texture_id, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col) end |
#AddImageRounded(user_texture_id, p_min, p_max, uv_min, uv_max, col, rounding, flags = 0) ⇒ Object
826 827 828 |
# File 'lib/imgui.rb', line 826 def AddImageRounded(user_texture_id, p_min, p_max, uv_min, uv_max, col, rounding, flags = 0) ImGui::ImDrawList_AddImageRounded(self, user_texture_id, p_min, p_max, uv_min, uv_max, col, rounding, flags) end |
#AddLine(p1, p2, col, thickness = 1.0) ⇒ Object
830 831 832 |
# File 'lib/imgui.rb', line 830 def AddLine(p1, p2, col, thickness = 1.0) ImGui::ImDrawList_AddLine(self, p1, p2, col, thickness) end |
#AddNgon(center, radius, col, num_segments, thickness = 1.0) ⇒ Object
834 835 836 |
# File 'lib/imgui.rb', line 834 def AddNgon(center, radius, col, num_segments, thickness = 1.0) ImGui::ImDrawList_AddNgon(self, center, radius, col, num_segments, thickness) end |
#AddNgonFilled(center, radius, col, num_segments) ⇒ Object
838 839 840 |
# File 'lib/imgui.rb', line 838 def AddNgonFilled(center, radius, col, num_segments) ImGui::ImDrawList_AddNgonFilled(self, center, radius, col, num_segments) end |
#AddPolyline(points, num_points, col, flags, thickness) ⇒ Object
842 843 844 |
# File 'lib/imgui.rb', line 842 def AddPolyline(points, num_points, col, flags, thickness) ImGui::ImDrawList_AddPolyline(self, points, num_points, col, flags, thickness) end |
#AddQuad(p1, p2, p3, p4, col, thickness = 1.0) ⇒ Object
846 847 848 |
# File 'lib/imgui.rb', line 846 def AddQuad(p1, p2, p3, p4, col, thickness = 1.0) ImGui::ImDrawList_AddQuad(self, p1, p2, p3, p4, col, thickness) end |
#AddQuadFilled(p1, p2, p3, p4, col) ⇒ Object
850 851 852 |
# File 'lib/imgui.rb', line 850 def AddQuadFilled(p1, p2, p3, p4, col) ImGui::ImDrawList_AddQuadFilled(self, p1, p2, p3, p4, col) end |
#AddRect(p_min, p_max, col, rounding = 0.0, flags = 0, thickness = 1.0) ⇒ Object
854 855 856 |
# File 'lib/imgui.rb', line 854 def AddRect(p_min, p_max, col, rounding = 0.0, flags = 0, thickness = 1.0) ImGui::ImDrawList_AddRect(self, p_min, p_max, col, rounding, flags, thickness) end |
#AddRectFilled(p_min, p_max, col, rounding = 0.0, flags = 0) ⇒ Object
858 859 860 |
# File 'lib/imgui.rb', line 858 def AddRectFilled(p_min, p_max, col, rounding = 0.0, flags = 0) ImGui::ImDrawList_AddRectFilled(self, p_min, p_max, col, rounding, flags) end |
#AddRectFilledMultiColor(p_min, p_max, col_upr_left, col_upr_right, col_bot_right, col_bot_left) ⇒ Object
862 863 864 |
# File 'lib/imgui.rb', line 862 def AddRectFilledMultiColor(p_min, p_max, col_upr_left, col_upr_right, col_bot_right, col_bot_left) ImGui::ImDrawList_AddRectFilledMultiColor(self, p_min, p_max, col_upr_left, col_upr_right, col_bot_right, col_bot_left) end |
#AddText_FontPtr(font, font_size, pos, col, text_begin, text_end = nil, wrap_width = 0.0, cpu_fine_clip_rect = nil) ⇒ Object
870 871 872 |
# File 'lib/imgui.rb', line 870 def AddText_FontPtr(font, font_size, pos, col, text_begin, text_end = nil, wrap_width = 0.0, cpu_fine_clip_rect = nil) ImGui::ImDrawList_AddText_FontPtr(self, font, font_size, pos, col, text_begin, text_end, wrap_width, cpu_fine_clip_rect) end |
#AddText_Vec2(pos, col, text_begin, text_end = nil) ⇒ Object
866 867 868 |
# File 'lib/imgui.rb', line 866 def AddText_Vec2(pos, col, text_begin, text_end = nil) ImGui::ImDrawList_AddText_Vec2(self, pos, col, text_begin, text_end) end |
#AddTriangle(p1, p2, p3, col, thickness = 1.0) ⇒ Object
874 875 876 |
# File 'lib/imgui.rb', line 874 def AddTriangle(p1, p2, p3, col, thickness = 1.0) ImGui::ImDrawList_AddTriangle(self, p1, p2, p3, col, thickness) end |
#AddTriangleFilled(p1, p2, p3, col) ⇒ Object
878 879 880 |
# File 'lib/imgui.rb', line 878 def AddTriangleFilled(p1, p2, p3, col) ImGui::ImDrawList_AddTriangleFilled(self, p1, p2, p3, col) end |
#ChannelsMerge ⇒ Object
882 883 884 |
# File 'lib/imgui.rb', line 882 def ChannelsMerge() ImGui::ImDrawList_ChannelsMerge(self) end |
#ChannelsSetCurrent(n) ⇒ Object
886 887 888 |
# File 'lib/imgui.rb', line 886 def ChannelsSetCurrent(n) ImGui::ImDrawList_ChannelsSetCurrent(self, n) end |
#ChannelsSplit(count) ⇒ Object
890 891 892 |
# File 'lib/imgui.rb', line 890 def ChannelsSplit(count) ImGui::ImDrawList_ChannelsSplit(self, count) end |
#CloneOutput ⇒ Object
894 895 896 |
# File 'lib/imgui.rb', line 894 def CloneOutput() ImGui::ImDrawList_CloneOutput(self) end |
#destroy ⇒ Object
1046 1047 1048 |
# File 'lib/imgui.rb', line 1046 def destroy() ImGui::ImDrawList_destroy(self) end |
#GetClipRectMax ⇒ Object
898 899 900 901 902 |
# File 'lib/imgui.rb', line 898 def GetClipRectMax() pOut = ImVec2.new ImGui::ImDrawList_GetClipRectMax(pOut, self) return pOut end |
#GetClipRectMin ⇒ Object
904 905 906 907 908 |
# File 'lib/imgui.rb', line 904 def GetClipRectMin() pOut = ImVec2.new ImGui::ImDrawList_GetClipRectMin(pOut, self) return pOut end |
#PathArcTo(center, radius, a_min, a_max, num_segments = 0) ⇒ Object
914 915 916 |
# File 'lib/imgui.rb', line 914 def PathArcTo(center, radius, a_min, a_max, num_segments = 0) ImGui::ImDrawList_PathArcTo(self, center, radius, a_min, a_max, num_segments) end |
#PathArcToFast(center, radius, a_min_of_12, a_max_of_12) ⇒ Object
918 919 920 |
# File 'lib/imgui.rb', line 918 def PathArcToFast(center, radius, a_min_of_12, a_max_of_12) ImGui::ImDrawList_PathArcToFast(self, center, radius, a_min_of_12, a_max_of_12) end |
#PathBezierCubicCurveTo(p2, p3, p4, num_segments = 0) ⇒ Object
922 923 924 |
# File 'lib/imgui.rb', line 922 def PathBezierCubicCurveTo(p2, p3, p4, num_segments = 0) ImGui::ImDrawList_PathBezierCubicCurveTo(self, p2, p3, p4, num_segments) end |
#PathBezierQuadraticCurveTo(p2, p3, num_segments = 0) ⇒ Object
926 927 928 |
# File 'lib/imgui.rb', line 926 def PathBezierQuadraticCurveTo(p2, p3, num_segments = 0) ImGui::ImDrawList_PathBezierQuadraticCurveTo(self, p2, p3, num_segments) end |
#PathClear ⇒ Object
930 931 932 |
# File 'lib/imgui.rb', line 930 def PathClear() ImGui::ImDrawList_PathClear(self) end |
#PathFillConvex(col) ⇒ Object
934 935 936 |
# File 'lib/imgui.rb', line 934 def PathFillConvex(col) ImGui::ImDrawList_PathFillConvex(self, col) end |
#PathLineTo(pos) ⇒ Object
938 939 940 |
# File 'lib/imgui.rb', line 938 def PathLineTo(pos) ImGui::ImDrawList_PathLineTo(self, pos) end |
#PathLineToMergeDuplicate(pos) ⇒ Object
942 943 944 |
# File 'lib/imgui.rb', line 942 def PathLineToMergeDuplicate(pos) ImGui::ImDrawList_PathLineToMergeDuplicate(self, pos) end |
#PathRect(rect_min, rect_max, rounding = 0.0, flags = 0) ⇒ Object
946 947 948 |
# File 'lib/imgui.rb', line 946 def PathRect(rect_min, rect_max, rounding = 0.0, flags = 0) ImGui::ImDrawList_PathRect(self, rect_min, rect_max, rounding, flags) end |
#PathStroke(col, flags = 0, thickness = 1.0) ⇒ Object
950 951 952 |
# File 'lib/imgui.rb', line 950 def PathStroke(col, flags = 0, thickness = 1.0) ImGui::ImDrawList_PathStroke(self, col, flags, thickness) end |
#PopClipRect ⇒ Object
954 955 956 |
# File 'lib/imgui.rb', line 954 def PopClipRect() ImGui::ImDrawList_PopClipRect(self) end |
#PopTextureID ⇒ Object
958 959 960 |
# File 'lib/imgui.rb', line 958 def PopTextureID() ImGui::ImDrawList_PopTextureID(self) end |
#PrimQuadUV(a, b, c, d, uv_a, uv_b, uv_c, uv_d, col) ⇒ Object
962 963 964 |
# File 'lib/imgui.rb', line 962 def PrimQuadUV(a, b, c, d, uv_a, uv_b, uv_c, uv_d, col) ImGui::ImDrawList_PrimQuadUV(self, a, b, c, d, uv_a, uv_b, uv_c, uv_d, col) end |
#PrimRect(a, b, col) ⇒ Object
966 967 968 |
# File 'lib/imgui.rb', line 966 def PrimRect(a, b, col) ImGui::ImDrawList_PrimRect(self, a, b, col) end |
#PrimRectUV(a, b, uv_a, uv_b, col) ⇒ Object
970 971 972 |
# File 'lib/imgui.rb', line 970 def PrimRectUV(a, b, uv_a, uv_b, col) ImGui::ImDrawList_PrimRectUV(self, a, b, uv_a, uv_b, col) end |
#PrimReserve(idx_count, vtx_count) ⇒ Object
974 975 976 |
# File 'lib/imgui.rb', line 974 def PrimReserve(idx_count, vtx_count) ImGui::ImDrawList_PrimReserve(self, idx_count, vtx_count) end |
#PrimUnreserve(idx_count, vtx_count) ⇒ Object
978 979 980 |
# File 'lib/imgui.rb', line 978 def PrimUnreserve(idx_count, vtx_count) ImGui::ImDrawList_PrimUnreserve(self, idx_count, vtx_count) end |
#PrimVtx(pos, uv, col) ⇒ Object
982 983 984 |
# File 'lib/imgui.rb', line 982 def PrimVtx(pos, uv, col) ImGui::ImDrawList_PrimVtx(self, pos, uv, col) end |
#PrimWriteIdx(idx) ⇒ Object
986 987 988 |
# File 'lib/imgui.rb', line 986 def PrimWriteIdx(idx) ImGui::ImDrawList_PrimWriteIdx(self, idx) end |
#PrimWriteVtx(pos, uv, col) ⇒ Object
990 991 992 |
# File 'lib/imgui.rb', line 990 def PrimWriteVtx(pos, uv, col) ImGui::ImDrawList_PrimWriteVtx(self, pos, uv, col) end |
#PushClipRect(clip_rect_min, clip_rect_max, intersect_with_current_clip_rect = false) ⇒ Object
994 995 996 |
# File 'lib/imgui.rb', line 994 def PushClipRect(clip_rect_min, clip_rect_max, intersect_with_current_clip_rect = false) ImGui::ImDrawList_PushClipRect(self, clip_rect_min, clip_rect_max, intersect_with_current_clip_rect) end |
#PushClipRectFullScreen ⇒ Object
998 999 1000 |
# File 'lib/imgui.rb', line 998 def PushClipRectFullScreen() ImGui::ImDrawList_PushClipRectFullScreen(self) end |
#PushTextureID(texture_id) ⇒ Object
1002 1003 1004 |
# File 'lib/imgui.rb', line 1002 def PushTextureID(texture_id) ImGui::ImDrawList_PushTextureID(self, texture_id) end |