[−][src]Struct conrod_floatwin::windowing_area::layout::WindowingState
Implementations
impl WindowingState
[src]
pub fn new() -> Self
[src]
pub fn next_id(&mut self) -> WinId
[src]
pub fn ensure_init<F>(&mut self, win_id: WinId, init: F) where
F: FnOnce() -> WindowInitialState,
[src]
F: FnOnce() -> WindowInitialState,
Ensures that the window specified by win_id
has been initialized. If
the window has not been initialized, the init
callback is called to
obtain the initial states for the window.
pub fn win_count(&self) -> usize
[src]
pub fn win_hit_test(&self, pos: [f32; 2]) -> Option<(WinId, HitTest)>
[src]
pub fn win_hit_test_filtered<F>(
&self,
pos: [f32; 2],
f: F
) -> Option<(WinId, HitTest)> where
F: FnMut(WinId) -> bool,
[src]
&self,
pos: [f32; 2],
f: F
) -> Option<(WinId, HitTest)> where
F: FnMut(WinId) -> bool,
pub fn specific_win_hit_test(
&self,
win_id: WinId,
pos: [f32; 2]
) -> Option<HitTest>
[src]
&self,
win_id: WinId,
pos: [f32; 2]
) -> Option<HitTest>
pub fn topmost_win(&self) -> Option<WinId>
[src]
pub fn win_normal_rect(&self, win_id: WinId) -> Option<RectF>
[src]
Retrieves the Rect
of a window in its normal state. The Rect
is
adjusted to align to the physical pixel grid. Note that since the
returned Rect
contains f32 dimensions, it may not suitable for use
with GUI toolkits that use f64 internally due to the limited precision.
pub fn win_normal_rect_int(&self, win_id: WinId) -> Option<RectI>
[src]
Retrieves the RectInt
of a window in its normal state. The RectInt
is in unscaled physical pixels.
pub fn win_normal_rect_f64(&self, win_id: WinId) -> Option<[f64; 4]>
[src]
Retrieves the x, y, width and height of a window in its normal state. The dimensions are adjusted to align to the physical pixel grid. The calculations use f64 so that the results are precise enough for GUI toolkits that use f64 internally.
pub fn win_display_rect(&self, win_id: WinId) -> Option<RectF>
[src]
Retrieves the Rect
of a window for display. The Rect
is adjusted to
align to the physical pixel grid. Note that since the returned Rect
contains f32 dimensions, it may not suitable for use with GUI toolkits
that use f64 internally due to the limited precision.
pub fn win_display_rect_int(&self, win_id: WinId) -> Option<RectI>
[src]
Retrieves the RectInt
of a window for display. The RectInt
is in
unscaled physical pixels.
pub fn win_display_rect_f64(&self, win_id: WinId) -> Option<[f64; 4]>
[src]
Retrieves the x, y, width and height of a window for display. The dimensions are adjusted to align to the physical pixel grid. The calculations use f64 so that the results are precise enough for GUI toolkits that use f64 internally.
pub fn set_win_min_size(&mut self, win_id: WinId, min_size: [f32; 2])
[src]
pub fn win_is_hidden(&self, win_id: WinId) -> bool
[src]
pub fn win_is_collapsed(&self, win_id: WinId) -> bool
[src]
pub fn win_z_order(&self, win_id: WinId) -> u32
[src]
pub fn bring_to_top(&mut self, win_id: WinId)
[src]
pub fn win_drag_start(
&mut self,
win_id: WinId,
dragging_hit_test: HitTest
) -> bool
[src]
&mut self,
win_id: WinId,
dragging_hit_test: HitTest
) -> bool
pub fn win_drag_end(&mut self, abort: bool)
[src]
pub fn current_dragging_win(&self) -> Option<(WinId, HitTest)>
[src]
pub fn win_drag_update(&mut self, offset: [f32; 2]) -> bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for WindowingState
impl Send for WindowingState
impl Sync for WindowingState
impl Unpin for WindowingState
impl UnwindSafe for WindowingState
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,
fn borrow_mut(&mut self) -> &mut T
[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, 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.
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>,