Struct epaint::texture_atlas::PreparedDisc
source · pub struct PreparedDisc {
pub r: f32,
pub w: f32,
pub uv: Rect,
}
Expand description
A pre-rasterized disc (filled circle), somewhere in the texture atlas.
Fields§
§r: f32
The radius of this disc in texels.
w: f32
Width in texels.
uv: Rect
Where in the texture atlas the disc is. Normalized in 0-1 range.
Trait Implementations§
source§impl Clone for PreparedDisc
impl Clone for PreparedDisc
source§fn clone(&self) -> PreparedDisc
fn clone(&self) -> PreparedDisc
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 Debug for PreparedDisc
impl Debug for PreparedDisc
impl Copy for PreparedDisc
Auto Trait Implementations§
impl Freeze for PreparedDisc
impl RefUnwindSafe for PreparedDisc
impl Send for PreparedDisc
impl Sync for PreparedDisc
impl Unpin for PreparedDisc
impl UnwindSafe for PreparedDisc
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)