Struct bevy_kot::prelude::builtin::MainMouseCursor
source · pub struct MainMouseCursor;
Expand description
Use to tag the main mouse cursor.
Trait Implementations§
source§impl Clone for MainMouseCursor
impl Clone for MainMouseCursor
source§fn clone(&self) -> MainMouseCursor
fn clone(&self) -> MainMouseCursor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Component for MainMouseCursor
impl Component for MainMouseCursor
source§impl Debug for MainMouseCursor
impl Debug for MainMouseCursor
source§impl Default for MainMouseCursor
impl Default for MainMouseCursor
source§fn default() -> MainMouseCursor
fn default() -> MainMouseCursor
Returns the “default value” for a type. Read more
impl Copy for MainMouseCursor
impl PlainMouseCursor for MainMouseCursor
Auto Trait Implementations§
impl RefUnwindSafe for MainMouseCursor
impl Send for MainMouseCursor
impl Sync for MainMouseCursor
impl Unpin for MainMouseCursor
impl UnwindSafe for MainMouseCursor
Blanket Implementations§
§impl<T, U> AsBindGroupShaderType<U> for T
impl<T, U> AsBindGroupShaderType<U> for T
§fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
Return the
T
[ShaderType
] for self
. When used in [AsBindGroup
]
derives, it is safe to assume that all images in self
exist.source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<C> Bundle for Cwhere
C: Component,
impl<C> Bundle for Cwhere
C: Component,
fn component_ids( components: &mut Components, storages: &mut Storages, ids: &mut impl FnMut(ComponentId) )
unsafe fn from_components<T, F>(ctx: &mut T, func: &mut F) -> C
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<C> DynamicBundle for Cwhere
C: Component,
impl<C> DynamicBundle for Cwhere
C: Component,
fn get_components(self, func: &mut impl FnMut(StorageType, OwningPtr<'_>))
§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates
Self
using data from the given [World
].§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<PlainCursor> LunexCursor for PlainCursorwhere
PlainCursor: PlainMouseCursor,
impl<PlainCursor> LunexCursor for PlainCursorwhere
PlainCursor: PlainMouseCursor,
source§fn cursor_intersects_barrier<Ui>(
_cursor_screen_position: Vec2,
cursor_world_position: Vec2,
ui: &PathTreeSingle<DataWrap<Ui>>,
widget: &Widget,
_widget_entity: Entity,
depth_limit: Option<f32>,
widget_depth: f32,
_barrier_param: &<<PlainCursor as LunexCursor>::BarrierParam as SystemParam>::Item<'_, '_>
) -> Result<Option<f32>, ()>where
Ui: LunexUi,
fn cursor_intersects_barrier<Ui>(
_cursor_screen_position: Vec2,
cursor_world_position: Vec2,
ui: &PathTreeSingle<DataWrap<Ui>>,
widget: &Widget,
_widget_entity: Entity,
depth_limit: Option<f32>,
widget_depth: f32,
_barrier_param: &<<PlainCursor as LunexCursor>::BarrierParam as SystemParam>::Item<'_, '_>
) -> Result<Option<f32>, ()>where
Ui: LunexUi,
Test if a cursor intersects with an interaction barrier.
- Widget-only intersection test.
source§fn cursor_intersects_element<Ui>(
_cursor_screen_position: Vec2,
cursor_world_position: Vec2,
ui: &PathTreeSingle<DataWrap<Ui>>,
widget: &Widget,
_widget_entity: Entity,
depth_limit: Option<f32>,
widget_depth: f32,
_element_param: &<<PlainCursor as LunexCursor>::ElementParam as SystemParam>::Item<'_, '_>
) -> Result<Option<f32>, ()>where
Ui: LunexUi,
fn cursor_intersects_element<Ui>(
_cursor_screen_position: Vec2,
cursor_world_position: Vec2,
ui: &PathTreeSingle<DataWrap<Ui>>,
widget: &Widget,
_widget_entity: Entity,
depth_limit: Option<f32>,
widget_depth: f32,
_element_param: &<<PlainCursor as LunexCursor>::ElementParam as SystemParam>::Item<'_, '_>
) -> Result<Option<f32>, ()>where
Ui: LunexUi,
Test if a cursor intersects with an element.
- Widget-only intersection test.
source§fn cursor_intersects_press_home_zone<Ui>(
_cursor_screen_position: Vec2,
cursor_world_position: Vec2,
ui: &PathTreeSingle<DataWrap<Ui>>,
widget: &Widget,
_widget_entity: Entity,
depth_limit: Option<f32>,
widget_depth: f32,
_home_zone_param: &<<PlainCursor as LunexCursor>::HomeZoneParam as SystemParam>::Item<'_, '_>
) -> Result<Option<f32>, ()>where
Ui: LunexUi,
fn cursor_intersects_press_home_zone<Ui>(
_cursor_screen_position: Vec2,
cursor_world_position: Vec2,
ui: &PathTreeSingle<DataWrap<Ui>>,
widget: &Widget,
_widget_entity: Entity,
depth_limit: Option<f32>,
widget_depth: f32,
_home_zone_param: &<<PlainCursor as LunexCursor>::HomeZoneParam as SystemParam>::Item<'_, '_>
) -> Result<Option<f32>, ()>where
Ui: LunexUi,
Test if a cursor intersects with a press home zone.
- Widget-only intersection test.