Skip to main content

LinuxFramebufferPlatformExtensions

Trait LinuxFramebufferPlatformExtensions 

Source
pub trait LinuxFramebufferPlatformExtensions {
    // Required methods
    fn start_linux_fb_dev(
        &self,
        args: &[String],
        fbdev: Option<&str>,
        scaling: f64,
        input_backend: Option<Rc<dyn IInputBackend>>,
    ) -> Result<i32>;
    fn start_linux_fb_dev_with_format(
        &self,
        args: &[String],
        fbdev: &str,
        format: Option<PixelFormat>,
        scaling: f64,
        input_backend: Option<Rc<dyn IInputBackend>>,
    ) -> Result<i32>;
    fn start_linux_fb_dev_with_options(
        &self,
        args: &[String],
        options: FbDevOutputOptions,
        input_backend: Option<Rc<dyn IInputBackend>>,
    ) -> Result<i32>;
    fn start_linux_drm(
        &self,
        args: &[String],
        card: Option<&str>,
        scaling: f64,
        input_backend: Option<Rc<dyn IInputBackend>>,
    ) -> Result<i32>;
    fn start_linux_drm_with_options(
        &self,
        args: &[String],
        card: Option<&str>,
        connectors_force_probe: bool,
        options: Option<DrmOutputOptions>,
        input_backend: Option<Rc<dyn IInputBackend>>,
    ) -> Result<i32>;
    fn start_linux_direct(
        &self,
        args: &[String],
        output_backend: Arc<dyn IOutputBackend>,
        input_backend: Option<Rc<dyn IInputBackend>>,
    ) -> i32;
    fn use_linux_framebuffer(
        &self,
        output_backend: Arc<dyn IOutputBackend>,
        input_backend: Option<Rc<dyn IInputBackend>>,
    ) -> Rc<LinuxFramebufferLifetime>;
}
Expand description

The functions that start an application on the platform.

Required Methods§

Source

fn start_linux_fb_dev( &self, args: &[String], fbdev: Option<&str>, scaling: f64, input_backend: Option<Rc<dyn IInputBackend>>, ) -> Result<i32>

Starts the application on a framebuffer device (/dev/fb0, or the one the environment variable FRAMEBUFFER names, when fbdev is not given) and runs it until it shuts down. Returns the exit code.

Source

fn start_linux_fb_dev_with_format( &self, args: &[String], fbdev: &str, format: Option<PixelFormat>, scaling: f64, input_backend: Option<Rc<dyn IInputBackend>>, ) -> Result<i32>

As start_linux_fb_dev, asking the device for a pixel format.

Source

fn start_linux_fb_dev_with_options( &self, args: &[String], options: FbDevOutputOptions, input_backend: Option<Rc<dyn IInputBackend>>, ) -> Result<i32>

As start_linux_fb_dev, with the options of the output.

Source

fn start_linux_drm( &self, args: &[String], card: Option<&str>, scaling: f64, input_backend: Option<Rc<dyn IInputBackend>>, ) -> Result<i32>

Starts the application on a KMS output: the first connected connector of the card card (or of the first usable card of /dev/dri) in its preferred mode, and runs it until it shuts down. Returns the exit code.

Source

fn start_linux_drm_with_options( &self, args: &[String], card: Option<&str>, connectors_force_probe: bool, options: Option<DrmOutputOptions>, input_backend: Option<Rc<dyn IInputBackend>>, ) -> Result<i32>

As start_linux_drm, probing the connectors when asked to and with the options of the output.

Source

fn start_linux_direct( &self, args: &[String], output_backend: Arc<dyn IOutputBackend>, input_backend: Option<Rc<dyn IInputBackend>>, ) -> i32

Starts the application on an output that is already created and runs it until it shuts down. Returns the exit code.

Source

fn use_linux_framebuffer( &self, output_backend: Arc<dyn IOutputBackend>, input_backend: Option<Rc<dyn IInputBackend>>, ) -> Rc<LinuxFramebufferLifetime>

Registers the platform with the builder and returns the lifetime of its top-level, without setting the application up or running it. An addition: the reference keeps this step internal (LinuxFramebufferPlatform.Initialize).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl LinuxFramebufferPlatformExtensions for AppBuilder

Source§

fn start_linux_fb_dev( &self, args: &[String], fbdev: Option<&str>, scaling: f64, input_backend: Option<Rc<dyn IInputBackend>>, ) -> Result<i32>

Source§

fn start_linux_fb_dev_with_format( &self, args: &[String], fbdev: &str, format: Option<PixelFormat>, scaling: f64, input_backend: Option<Rc<dyn IInputBackend>>, ) -> Result<i32>

Source§

fn start_linux_fb_dev_with_options( &self, args: &[String], options: FbDevOutputOptions, input_backend: Option<Rc<dyn IInputBackend>>, ) -> Result<i32>

Source§

fn start_linux_drm( &self, args: &[String], card: Option<&str>, scaling: f64, input_backend: Option<Rc<dyn IInputBackend>>, ) -> Result<i32>

Source§

fn start_linux_drm_with_options( &self, args: &[String], card: Option<&str>, connectors_force_probe: bool, options: Option<DrmOutputOptions>, input_backend: Option<Rc<dyn IInputBackend>>, ) -> Result<i32>

Source§

fn start_linux_direct( &self, args: &[String], output_backend: Arc<dyn IOutputBackend>, input_backend: Option<Rc<dyn IInputBackend>>, ) -> i32

Source§

fn use_linux_framebuffer( &self, output_backend: Arc<dyn IOutputBackend>, input_backend: Option<Rc<dyn IInputBackend>>, ) -> Rc<LinuxFramebufferLifetime>

Implementors§