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



1823
1824
1825
# File 'lib/imgui.rb', line 1823

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

Instance Method Details

#BuildObject



1811
1812
1813
# File 'lib/imgui.rb', line 1811

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

#ClearObject



1815
1816
1817
# File 'lib/imgui.rb', line 1815

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

#destroyObject



1835
1836
1837
# File 'lib/imgui.rb', line 1835

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

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



1819
1820
1821
# File 'lib/imgui.rb', line 1819

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

#IsActiveObject



1827
1828
1829
# File 'lib/imgui.rb', line 1827

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

#PassFilter(text, text_end = nil) ⇒ Object



1831
1832
1833
# File 'lib/imgui.rb', line 1831

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