[−][src]Struct paddle::PaddleConfig
Fields
display: DisplayConfig
text_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]
pub fn default() -> PaddleConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for PaddleConfig
[src]
impl !Send for PaddleConfig
[src]
impl !Sync for PaddleConfig
[src]
impl Unpin for PaddleConfig
[src]
impl UnwindSafe for PaddleConfig
[src]
Blanket Implementations
impl<T> Activity for T where
T: Any,
[src]
T: Any,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,