pub struct FbdevOutput { /* private fields */ }Expand description
A framebuffer device as the output of the platform.
Implementations§
Source§impl FbdevOutput
impl FbdevOutput
Sourcepub fn new(file_name: Option<&str>) -> Result<Arc<Self>>
pub fn new(file_name: Option<&str>) -> Result<Arc<Self>>
Opens the framebuffer device file_name, or the one the
environment variable FRAMEBUFFER names, or /dev/fb0.
Sourcepub fn with_format(
file_name: Option<&str>,
format: Option<PixelFormat>,
) -> Result<Arc<Self>>
pub fn with_format( file_name: Option<&str>, format: Option<PixelFormat>, ) -> Result<Arc<Self>>
Opens a framebuffer device and asks it for format.
Sourcepub fn with_options(options: FbDevOutputOptions) -> Result<Arc<Self>>
pub fn with_options(options: FbDevOutputOptions) -> Result<Arc<Self>>
Opens the framebuffer device of the options.
Sourcepub fn with_device(
device: Box<dyn IFbDevice>,
options: FbDevOutputOptions,
) -> Result<Arc<Self>>
pub fn with_device( device: Box<dyn IFbDevice>, options: FbDevOutputOptions, ) -> Result<Arc<Self>>
The output over a device that is already open. An addition: with a
FileFbDevice the output runs without a
framebuffer device.
Sourcepub fn var_screen_info(&self) -> fb_var_screeninfo
pub fn var_screen_info(&self) -> fb_var_screeninfo
The variable information of the device the output draws with. An addition, for diagnostics.
Sourcepub fn fix_screen_info(&self) -> fb_fix_screeninfo
pub fn fix_screen_info(&self) -> fb_fix_screeninfo
The fixed information of the device the output draws with. An addition, for diagnostics.
Trait Implementations§
Source§impl IFramebufferPlatformSurface for FbdevOutput
impl IFramebufferPlatformSurface for FbdevOutput
Source§fn create_framebuffer_render_target(&self) -> Rc<dyn IFramebufferRenderTarget>
fn create_framebuffer_render_target(&self) -> Rc<dyn IFramebufferRenderTarget>
Creates the framebuffer render target of the surface.
Source§impl IOutputBackend for FbdevOutput
impl IOutputBackend for FbdevOutput
fn pixel_size(&self) -> PixelSize
fn scaling(&self) -> f64
fn set_scaling(&self, value: f64)
Source§fn as_render_surface(self: Arc<Self>) -> Arc<dyn IPlatformRenderSurface> ⓘ
fn as_render_surface(self: Arc<Self>) -> Arc<dyn IPlatformRenderSurface> ⓘ
The output as the render surface of the top-level.
Source§fn as_gl_output_backend(&self) -> Option<&dyn IGlOutputBackend>
fn as_gl_output_backend(&self) -> Option<&dyn IGlOutputBackend>
The output as one that renders with OpenGL (the reference tests
the type).
Source§fn as_surface_orientation(&self) -> Option<&dyn ISurfaceOrientation>
fn as_surface_orientation(&self) -> Option<&dyn ISurfaceOrientation>
The output as one that has an orientation (the reference tests the
type).
Source§impl IPlatformRenderSurface for FbdevOutput
impl IPlatformRenderSurface for FbdevOutput
Source§fn as_framebuffer_surface(&self) -> Option<&dyn IFramebufferPlatformSurface>
fn as_framebuffer_surface(&self) -> Option<&dyn IFramebufferPlatformSurface>
The surface as a framebuffer surface, if it is one.
Source§fn try_get_surface_kind(&self, _kind: TypeId) -> Option<Rc<dyn Any>>
fn try_get_surface_kind(&self, _kind: TypeId) -> Option<Rc<dyn Any>>
The surface viewed as a surface kind defined outside this crate: for
TypeId::of::<dyn IFoo>() the result holds an Rc<dyn IFoo>.Source§fn text_rendering_parameters(&self) -> Option<PlatformTextRenderingParameters>
fn text_rendering_parameters(&self) -> Option<PlatformTextRenderingParameters>
The text rendering settings of the platform for this surface, when
the platform knows them: the render backend asks for them every
frame (they follow the settings of the system and the display the
surface is on). A backend asks every surface of a top-level and
takes the first answer;
None from all of them gives the defaults
of the backend (docs/porting/text-rendering.md).Auto Trait Implementations§
impl Freeze for FbdevOutput
impl RefUnwindSafe for FbdevOutput
impl Send for FbdevOutput
impl Sync for FbdevOutput
impl Unpin for FbdevOutput
impl UnsafeUnpin for FbdevOutput
impl UnwindSafe for FbdevOutput
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more