pub enum LcdError {
Video(String),
WindowBuild(WindowBuildError),
CanvasBuild(IntegerOrSdlError),
Fill(String),
WindowWidth {
width: u32,
row: usize,
dot_width: u32,
},
WindowHeight {
height: u32,
col: usize,
dot_height: u32,
},
}
Expand description
Errors that can arise from the creation and use of LcdScreens
.
Variants§
Video(String)
Indicates that an error occurred when attempting to initalize the SDL video subsystem. This error
is a simple wrapper around the underlying SDL error. Please consult the sdl2
documentation for
more details.
WindowBuild(WindowBuildError)
Indicates that an error occurred when attempting to build the OS window for the LcdScreen
. This
error is a simple wrapper around the underlying SDL error.
Please consult the sdl2
documentation for more details.
CanvasBuild(IntegerOrSdlError)
Indicates that an error occurred when attempting to build the canvas for the LcdScreen
. This
error is a simple wrapper around the underlying SDL error.
Please consult the sdl2
documentation for more details.
Fill(String)
Indicates that an error occurred when attempting to fill a dot on the LcdScreen
. This
error is a simple wrapper around the underlying SDL error. Please consult the sdl2
documentation for
more details.
WindowWidth
Indicates that the LcdScreen
is too wide to be displayed. The maximum width of a screen is i32::MAX
pixels. As the width of the screen is set by the number of rows of dots it has multiplied by the
pixel width of each dot, one or both of those values must be reduced.