mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 13:38:35 +00:00
add pass_filter_end
This commit is contained in:
parent
5fc64b7e68
commit
3d7b56a331
@ -58,8 +58,18 @@ impl TextFilter {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn pass_filter_end(_buf: String, _end: String) -> bool {
|
||||
true
|
||||
pub fn pass_filter_end(&self, mut start: String, mut end: String) -> bool {
|
||||
start.push('\0');
|
||||
end.push('\0');
|
||||
let b_ptr = start.as_mut_ptr();
|
||||
let e_ptr = end.as_mut_ptr();
|
||||
unsafe {
|
||||
sys::ImGuiTextFilter_PassFilter(
|
||||
self.raw,
|
||||
b_ptr as *mut sys::cty::c_char,
|
||||
e_ptr as *mut sys::cty::c_char,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
pub fn clear(&mut self) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user