Class: ImGuiTextFilter
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- ImGuiTextFilter
- Defined in:
- lib/imgui.rb
Overview
Helper: Parse and apply text filters. In format “aaaaa[,ccccc]”
Class Method Summary collapse
Instance Method Summary collapse
- #Build ⇒ Object
- #Clear ⇒ Object
- #destroy ⇒ Object
- #Draw(label = "Filter(inc,-exc)", width = 0.0) ⇒ Object
- #IsActive ⇒ Object
- #PassFilter(text, text_end = nil) ⇒ Object
Class Method Details
.create(default_filter = "") ⇒ Object
1793 1794 1795 |
# File 'lib/imgui.rb', line 1793 def self.create(default_filter = "") return ImGuiTextFilter.new(ImGui::ImGuiTextFilter_ImGuiTextFilter(default_filter)) end |
Instance Method Details
#Build ⇒ Object
1781 1782 1783 |
# File 'lib/imgui.rb', line 1781 def Build() ImGui::ImGuiTextFilter_Build(self) end |
#Clear ⇒ Object
1785 1786 1787 |
# File 'lib/imgui.rb', line 1785 def Clear() ImGui::ImGuiTextFilter_Clear(self) end |
#destroy ⇒ Object
1805 1806 1807 |
# File 'lib/imgui.rb', line 1805 def destroy() ImGui::ImGuiTextFilter_destroy(self) end |
#Draw(label = "Filter(inc,-exc)", width = 0.0) ⇒ Object
1789 1790 1791 |
# File 'lib/imgui.rb', line 1789 def Draw(label = "Filter(inc,-exc)", width = 0.0) ImGui::ImGuiTextFilter_Draw(self, label, width) end |
#IsActive ⇒ Object
1797 1798 1799 |
# File 'lib/imgui.rb', line 1797 def IsActive() ImGui::ImGuiTextFilter_IsActive(self) end |
#PassFilter(text, text_end = nil) ⇒ Object
1801 1802 1803 |
# File 'lib/imgui.rb', line 1801 def PassFilter(text, text_end = nil) ImGui::ImGuiTextFilter_PassFilter(self, text, text_end) end |