[][src]Struct sfml::graphics::CircleShape

pub struct CircleShape<'s> { /* fields omitted */ }

Specialized shape representing a circle.

Methods

impl<'s> CircleShape<'s>[src]

pub fn with_texture(texture: &'s Texture) -> CircleShape<'s>[src]

Create a new circle shape initialized with a texture

Arguments

  • texture - The texture to initialize the CircleShape with.

Return Some(CircleShape) or None

pub fn new(radius: f32, point_count: u32) -> CircleShape<'s>[src]

Create a new CircleShape and initialize it.

Arguments:

  • radius - The radius of the CircleShape
  • point_count - The number of points to define the CircleShape

Default value on SFML are radius = 0 / pointCount = 30

pub fn set_radius(&self, radius: f32)[src]

Set the radius of a circle

Arguments

  • radius - New radius of the circle

pub fn radius(&self) -> f32[src]

Set the radius of a circle

Return the radius of the circle

pub fn set_point_count(&mut self, count: u32)[src]

Set the number of points of a circle

Arguments

  • count - New number of points of the circle

Trait Implementations

impl<'s> Drawable for CircleShape<'s>[src]

impl<'s> Shape<'s> for CircleShape<'s>[src]

impl<'s> Transformable for CircleShape<'s>[src]

impl<'s> Drop for CircleShape<'s>[src]

impl<'s> Clone for CircleShape<'s>[src]

fn clone(&self) -> CircleShape<'s>[src]

Return a new CircleShape or panic if there is not enough memory

impl<'s> Default for CircleShape<'s>[src]

impl<'s> Debug for CircleShape<'s>[src]

Auto Trait Implementations

impl<'s> !Send for CircleShape<'s>

impl<'s> !Sync for CircleShape<'s>

impl<'s> Unpin for CircleShape<'s>

impl<'s> UnwindSafe for CircleShape<'s>

impl<'s> RefUnwindSafe for CircleShape<'s>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]