Class: ImGuiTextFilter

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/imgui.rb

Overview

Helper: Parse and apply text filters. In format “aaaaa[,ccccc]”

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.create(default_filter = "") ⇒ Object



2727
2728
2729
# File 'lib/imgui.rb', line 2727

def self.create(default_filter = "")
  return ImGuiTextFilter.new(ImGui::ImGuiTextFilter_ImGuiTextFilter(default_filter))
end

Instance Method Details

#BuildObject



2715
2716
2717
# File 'lib/imgui.rb', line 2715

def Build()
  ImGui::ImGuiTextFilter_Build(self)
end

#ClearObject



2719
2720
2721
# File 'lib/imgui.rb', line 2719

def Clear()
  ImGui::ImGuiTextFilter_Clear(self)
end

#destroyObject



2739
2740
2741
# File 'lib/imgui.rb', line 2739

def destroy()
  ImGui::ImGuiTextFilter_destroy(self)
end

#Draw(label = "Filter(inc,-exc)", width = 0.0) ⇒ Object



2723
2724
2725
# File 'lib/imgui.rb', line 2723

def Draw(label = "Filter(inc,-exc)", width = 0.0)
  ImGui::ImGuiTextFilter_Draw(self, label, width)
end

#IsActiveObject



2731
2732
2733
# File 'lib/imgui.rb', line 2731

def IsActive()
  ImGui::ImGuiTextFilter_IsActive(self)
end

#PassFilter(text, text_end = nil) ⇒ Object



2735
2736
2737
# File 'lib/imgui.rb', line 2735

def PassFilter(text, text_end = nil)
  ImGui::ImGuiTextFilter_PassFilter(self, text, text_end)
end