mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-25 12:28:35 +00:00
Additional cargo fmt
This commit is contained in:
parent
6bf75335ed
commit
cb742c8a4d
@ -1,7 +1,7 @@
|
|||||||
|
use bitflags::bitflags;
|
||||||
use std::marker::PhantomData;
|
use std::marker::PhantomData;
|
||||||
use std::os::raw::{c_int, c_void};
|
use std::os::raw::{c_int, c_void};
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
use bitflags::bitflags;
|
|
||||||
|
|
||||||
use crate::sys;
|
use crate::sys;
|
||||||
use crate::{ImStr, ImString, Ui};
|
use crate::{ImStr, ImString, Ui};
|
||||||
@ -98,8 +98,7 @@ macro_rules! impl_text_flags {
|
|||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn callback_completion(mut self, value: bool) -> Self {
|
pub fn callback_completion(mut self, value: bool) -> Self {
|
||||||
self.flags
|
self.flags.set(InputTextFlags::CALLBACK_COMPLETION, value);
|
||||||
.set(InputTextFlags::CALLBACK_COMPLETION, value);
|
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -117,8 +116,7 @@ macro_rules! impl_text_flags {
|
|||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn callback_char_filter(mut self, value: bool) -> Self {
|
pub fn callback_char_filter(mut self, value: bool) -> Self {
|
||||||
self.flags
|
self.flags.set(InputTextFlags::CALLBACK_CHAR_FILTER, value);
|
||||||
.set(InputTextFlags::CALLBACK_CHAR_FILTER, value);
|
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -136,8 +134,7 @@ macro_rules! impl_text_flags {
|
|||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn no_horizontal_scroll(mut self, value: bool) -> Self {
|
pub fn no_horizontal_scroll(mut self, value: bool) -> Self {
|
||||||
self.flags
|
self.flags.set(InputTextFlags::NO_HORIZONTAL_SCROLL, value);
|
||||||
.set(InputTextFlags::NO_HORIZONTAL_SCROLL, value);
|
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user