#[repr(C)]pub struct cp_view { /* private fields */ }Available on crate feature
view only.Expand description
Implementations§
Source§impl cp_view
impl cp_view
Sourcepub unsafe fn view_texture_map(view: cp_view_t) -> cp_view_texture_map_t
pub unsafe fn view_texture_map(view: cp_view_t) -> cp_view_texture_map_t
Returns the texture map for this view.
- Parameters:
- view: The view with the texture map.
- Returns: The texture map for the layer assigned to this view.
Use the texture map to fetch additional information you need to draw your content. For example, use it to fetch the rectangle to use for drawing in the associated texture.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for cp_view
impl !RefUnwindSafe for cp_view
impl !Send for cp_view
impl !Sync for cp_view
impl !Unpin for cp_view
impl !UnwindSafe for cp_view
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