pub struct HitCx<'a> { /* private fields */ }Expand description
Borrowed hit-test context passed to LayerInstance::hit.
Implementations§
Source§impl<'a> HitCx<'a>
impl<'a> HitCx<'a>
pub fn info(&self) -> HitInfo<'a>
pub fn evaluated(&self) -> EvaluatedLayer<'a>
pub fn view(&self) -> View<'a>
pub fn feature_ring(&self, index: usize) -> Option<Cow<'a, [PointI16]>>
pub fn eval_paint_f32(&self, slot: u32) -> Result<f32>
pub fn eval_paint_bool(&self, slot: u32) -> Result<bool>
pub fn eval_paint_color(&self, slot: u32) -> Result<Color>
pub fn eval_paint_vec2(&self, slot: u32) -> Result<Vec2>
pub fn eval_paint_enum(&self, slot: u32) -> Result<u32>
pub fn eval_paint_string(&self, slot: u32) -> Result<String>
pub fn ground_height(&self, point: PointI16) -> f64
pub fn translated_query_geometry( &self, translate: Vec2, anchor: Alignment, ) -> Result<Vec<PointI16>>
pub fn plane_geometry( &self, elevation_m: f64, translate: Vec2, anchor: Alignment, ) -> Result<Vec<PointI16>>
pub fn viewport_point(&self, x: f64, y: f64, elevation_m: f64) -> Option<Vec2>
pub fn map_aligned_scale_at(&self, x: f64, y: f64) -> f64
pub fn pitch_scaled_size( &self, size: f32, point: PointI16, elevation_m: f64, pitch_scale: Alignment, pitch_alignment: Alignment, ) -> f32
pub fn shows(&self, x: f64, y: f64, elevation_m: f64) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for HitCx<'a>
impl<'a> !Send for HitCx<'a>
impl<'a> !Sync for HitCx<'a>
impl<'a> !UnwindSafe for HitCx<'a>
impl<'a> Forget for HitCx<'a>
impl<'a> Freeze for HitCx<'a>where
&'a dyn HitCxBackend: Freeze,
impl<'a> Move for HitCx<'a>
impl<'a> Unpin for HitCx<'a>where
&'a dyn HitCxBackend: Unpin,
impl<'a> UnsafeUnpin for HitCx<'a>where
&'a dyn HitCxBackend: UnsafeUnpin,
Blanket Implementations§
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