[][src]Struct paddle::PaddleConfig

pub struct PaddleConfig {
    pub display: DisplayConfig,
    pub text_board_region: Option<Rectangle>,
}

Fields

display: DisplayConfigtext_board_region: Option<Rectangle>

Implementations

impl PaddleConfig[src]

pub fn new() -> Self[src]

pub fn with_canvas_id(self, id: &'static str) -> Self[src]

pub fn with_canvas(self, canvas: HtmlCanvasElement) -> Self[src]

pub fn with_resolution(self, pixels: impl Into<Vector>) -> Self[src]

pub fn with_texture_config(self, texture_config: TextureConfig) -> Self[src]

pub fn with_gpu_config(self, config: GpuConfig) -> Self[src]

pub fn with_background_color(self, color: Color) -> Self[src]

pub fn with_text_board(self, region: Rectangle) -> Self[src]

pub fn without_text_board(self) -> Self[src]

Trait Implementations

impl Default for PaddleConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Activity for T where
    T: Any
[src]

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

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

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

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

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

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<V, T> VZip<V> for T where
    V: MultiLane<T>,