Struct basalt::interface::bin::Bin [−][src]
Implementations
impl Bin
[src]
pub fn update_stats(&self) -> BinUpdateStats
[src]
pub fn attach_input_hook(&self, id: InputHookID)
[src]
pub fn ancestors(&self) -> Vec<Arc<Bin>>
[src]
pub fn add_hook_raw(
self: &Arc<Self>,
hook: BinHook,
func: BinHookFn
) -> BinHookID
[src]
self: &Arc<Self>,
hook: BinHook,
func: BinHookFn
) -> BinHookID
pub fn remove_hook(self: &Arc<Self>, hook_id: BinHookID)
[src]
pub fn on_key_press(self: &Arc<Self>, key: Qwery, func: BinHookFn) -> BinHookID
[src]
pub fn on_key_release(
self: &Arc<Self>,
key: Qwery,
func: BinHookFn
) -> BinHookID
[src]
self: &Arc<Self>,
key: Qwery,
func: BinHookFn
) -> BinHookID
pub fn on_key_hold(self: &Arc<Self>, key: Qwery, func: BinHookFn) -> BinHookID
[src]
pub fn on_mouse_press(
self: &Arc<Self>,
button: MouseButton,
func: BinHookFn
) -> BinHookID
[src]
self: &Arc<Self>,
button: MouseButton,
func: BinHookFn
) -> BinHookID
pub fn on_mouse_release(
self: &Arc<Self>,
button: MouseButton,
func: BinHookFn
) -> BinHookID
[src]
self: &Arc<Self>,
button: MouseButton,
func: BinHookFn
) -> BinHookID
pub fn on_mouse_hold(
self: &Arc<Self>,
button: MouseButton,
func: BinHookFn
) -> BinHookID
[src]
self: &Arc<Self>,
button: MouseButton,
func: BinHookFn
) -> BinHookID
pub fn last_update(&self) -> Instant
[src]
pub fn keep_alive(&self, thing: Arc<dyn KeepAlive + Send + Sync>)
[src]
pub fn parent(&self) -> Option<Arc<Bin>>
[src]
pub fn children(&self) -> Vec<Arc<Bin>>
[src]
pub fn children_recursive(self: &Arc<Bin>) -> Vec<Arc<Bin>>
[src]
pub fn add_child(self: &Arc<Self>, child: Arc<Bin>)
[src]
pub fn add_children(self: &Arc<Self>, children: Vec<Arc<Bin>>)
[src]
pub fn take_children(&self) -> Vec<Arc<Bin>>
[src]
pub fn add_drag_events(self: &Arc<Self>, target_op: Option<Arc<Bin>>)
[src]
pub fn add_enter_text_events(self: &Arc<Self>)
[src]
pub fn add_button_fade_events(self: &Arc<Self>)
[src]
pub fn fade_out(self: &Arc<Self>, millis: u64)
[src]
pub fn fade_in(self: &Arc<Self>, millis: u64, target: f32)
[src]
pub fn calc_overflow(self: &Arc<Bin>) -> f32
[src]
pub fn on_update(&self, func: Arc<dyn Fn() + Send + Sync>)
[src]
pub fn on_update_once(&self, func: Arc<dyn Fn() + Send + Sync>)
[src]
pub fn wait_for_update(&self)
[src]
pub fn post_update(&self) -> PostUpdate
[src]
pub fn id(&self) -> u64
[src]
pub fn mouse_inside(&self, mouse_x: f32, mouse_y: f32) -> bool
[src]
pub fn visible(&self) -> bool
[src]
pub fn toggle_hidden(&self)
[src]
pub fn force_update(&self)
[src]
pub fn update_children(&self)
[src]
pub fn style(&self) -> Arc<BinStyle>
[src]
pub fn style_copy(&self) -> BinStyle
[src]
pub fn style_update(&self, copy: BinStyle)
[src]
pub fn hidden(self: &Arc<Self>, to: Option<bool>)
[src]
pub fn set_raw_back_img(&self, img: Arc<dyn ImageViewAccess + Send + Sync>)
[src]
pub fn set_raw_img_yuv_422(
&self,
width: u32,
height: u32,
data: Vec<u8>
) -> Result<(), String>
[src]
&self,
width: u32,
height: u32,
data: Vec<u8>
) -> Result<(), String>
pub fn separate_raw_image(
&self,
width: u32,
height: u32,
data: Vec<u8>
) -> Result<(), String>
[src]
&self,
width: u32,
height: u32,
data: Vec<u8>
) -> Result<(), String>
pub fn remove_raw_back_img(&self)
[src]
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Bin
[src]
impl Send for Bin
[src]
impl Sync for Bin
[src]
impl Unpin for Bin
[src]
impl !UnwindSafe for Bin
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Content for T
[src]
pub fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>
[src]
pub fn is_size_suitable(size: usize) -> bool
[src]
pub fn indiv_size() -> usize
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,