pub struct PaddleConfig {
pub display: DisplayConfig,
pub text_board_region: Option<Rectangle>,
}Fields§
§display: DisplayConfig§text_board_region: Option<Rectangle>Implementations§
Source§impl PaddleConfig
impl PaddleConfig
pub fn new() -> Self
pub fn with_canvas_id(self, id: &'static str) -> Self
pub fn with_canvas(self, canvas: HtmlCanvasElement) -> Self
pub fn with_resolution(self, pixels: impl Into<Vector>) -> Self
pub fn with_texture_config(self, texture_config: TextureConfig) -> Self
pub fn with_gpu_config(self, config: GpuConfig) -> Self
pub fn with_background_color(self, color: Color) -> Self
pub fn with_text_board(self, region: Rectangle) -> Self
pub fn without_text_board(self) -> Self
Trait Implementations§
Source§impl Default for PaddleConfig
impl Default for PaddleConfig
Source§fn default() -> PaddleConfig
fn default() -> PaddleConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PaddleConfig
impl RefUnwindSafe for PaddleConfig
impl !Send for PaddleConfig
impl !Sync for PaddleConfig
impl Unpin for PaddleConfig
impl UnwindSafe for PaddleConfig
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