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
2733 2734 2735 |
# File 'lib/imgui.rb', line 2733 def self.create(default_filter = "") return ImGuiTextFilter.new(ImGui::ImGuiTextFilter_ImGuiTextFilter(default_filter)) end |
Instance Method Details
#Build ⇒ Object
2721 2722 2723 |
# File 'lib/imgui.rb', line 2721 def Build() ImGui::ImGuiTextFilter_Build(self) end |
#Clear ⇒ Object
2725 2726 2727 |
# File 'lib/imgui.rb', line 2725 def Clear() ImGui::ImGuiTextFilter_Clear(self) end |
#destroy ⇒ Object
2745 2746 2747 |
# File 'lib/imgui.rb', line 2745 def destroy() ImGui::ImGuiTextFilter_destroy(self) end |
#Draw(label = "Filter(inc,-exc)", width = 0.0) ⇒ Object
2729 2730 2731 |
# File 'lib/imgui.rb', line 2729 def Draw(label = "Filter(inc,-exc)", width = 0.0) ImGui::ImGuiTextFilter_Draw(self, label, width) end |
#IsActive ⇒ Object
2737 2738 2739 |
# File 'lib/imgui.rb', line 2737 def IsActive() ImGui::ImGuiTextFilter_IsActive(self) end |
#PassFilter(text, text_end = nil) ⇒ Object
2741 2742 2743 |
# File 'lib/imgui.rb', line 2741 def PassFilter(text, text_end = nil) ImGui::ImGuiTextFilter_PassFilter(self, text, text_end) end |