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
2610 2611 2612 |
# File 'lib/imgui.rb', line 2610 def self.create(default_filter = "") return ImGuiTextFilter.new(ImGui::ImGuiTextFilter_ImGuiTextFilter(default_filter)) end |
Instance Method Details
#Build ⇒ Object
2598 2599 2600 |
# File 'lib/imgui.rb', line 2598 def Build() ImGui::ImGuiTextFilter_Build(self) end |
#Clear ⇒ Object
2602 2603 2604 |
# File 'lib/imgui.rb', line 2602 def Clear() ImGui::ImGuiTextFilter_Clear(self) end |
#destroy ⇒ Object
2622 2623 2624 |
# File 'lib/imgui.rb', line 2622 def destroy() ImGui::ImGuiTextFilter_destroy(self) end |
#Draw(label = "Filter(inc,-exc)", width = 0.0) ⇒ Object
2606 2607 2608 |
# File 'lib/imgui.rb', line 2606 def Draw(label = "Filter(inc,-exc)", width = 0.0) ImGui::ImGuiTextFilter_Draw(self, label, width) end |
#IsActive ⇒ Object
2614 2615 2616 |
# File 'lib/imgui.rb', line 2614 def IsActive() ImGui::ImGuiTextFilter_IsActive(self) end |
#PassFilter(text, text_end = nil) ⇒ Object
2618 2619 2620 |
# File 'lib/imgui.rb', line 2618 def PassFilter(text, text_end = nil) ImGui::ImGuiTextFilter_PassFilter(self, text, text_end) end |