pub struct Interface { /* private fields */ }
Implementations
sourceimpl Interface
impl Interface
sourcepub fn current_scale(&self) -> f32
pub fn current_scale(&self) -> f32
The current scale without taking into account dpi based window scaling.
sourcepub fn current_effective_scale(&self) -> f32
pub fn current_effective_scale(&self) -> f32
The current scale taking into account dpi based window scaling.
sourcepub fn set_scale(&self, set_scale: f32)
pub fn set_scale(&self, set_scale: f32)
Set the current scale. Doesn’t account for dpi based window scaling.
sourcepub fn set_effective_scale(&self, set_scale: f32)
pub fn set_effective_scale(&self, set_scale: f32)
Set the current scale taking into account dpi based window scaling.
sourcepub fn current_msaa(&self) -> BstMSAALevel
pub fn current_msaa(&self) -> BstMSAALevel
Get the current MSAA level.
sourcepub fn set_msaa(&self, set_msaa: BstMSAALevel)
pub fn set_msaa(&self, set_msaa: BstMSAALevel)
Set the MSAA Level.
sourcepub fn increase_msaa(&self) -> BstMSAALevel
pub fn increase_msaa(&self) -> BstMSAALevel
Increase MSAA to the next step.
sourcepub fn decrease_msaa(&self) -> BstMSAALevel
pub fn decrease_msaa(&self) -> BstMSAALevel
Decrease MSAA to the next step.
pub fn get_bin_id_atop(&self, x: f32, y: f32) -> Option<u64>
pub fn get_bin_atop(&self, x: f32, y: f32) -> Option<Arc<Bin>>
sourcepub fn bins(&self) -> Vec<Arc<Bin>>
pub fn bins(&self) -> Vec<Arc<Bin>>
Returns a list of all bins that have a strong reference. Note keeping this list will keep all bins returned alive and prevent them from being dropped. This list should be dropped asap to prevent issues with bins being dropped.
pub fn new_bins(&self, amt: usize) -> Vec<Arc<Bin>>
pub fn new_bin(&self) -> Arc<Bin>
pub fn get_bin(&self, id: u64) -> Option<Arc<Bin>>
sourcepub fn mouse_inside(&self, mouse_x: f32, mouse_y: f32) -> bool
pub fn mouse_inside(&self, mouse_x: f32, mouse_y: f32) -> bool
Checks if the mouse position is on top of any Bin
’s in the interface. Bin
’s that
have pass_events
set to Some(true)
will return false
here.
pub fn draw<S: Send + Sync + 'static>(
&self,
cmd: AutoCommandBufferBuilder<PrimaryAutoCommandBuffer>,
target: ItfDrawTarget<S>
) -> (AutoCommandBufferBuilder<PrimaryAutoCommandBuffer>, Option<Arc<BstImageView>>)
Auto Trait Implementations
impl !RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl !UnwindSafe for Interface
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more