pub struct Config {Show 13 fields
pub keyboard_autorepeat: bool,
pub keyboard_autorepeat_slow_interval: Duration,
pub keyboard_autorepeat_fast_interval: Duration,
pub use_spinel: bool,
pub virtcon_mode: Option<VirtconMode>,
pub view_mode: ViewMode,
pub display_rotation: DisplayRotation,
pub keymap_name: Option<String>,
pub display_resource_release_delay: Duration,
pub buffer_count: Option<usize>,
pub input: bool,
pub needs_blending: bool,
pub startup_delay: Duration,
}
Expand description
Grab-bag of configuration options for Carnelian apps.
Fields§
§keyboard_autorepeat: bool
Whether, when running without Scenic, this application should receive keyboard repeat events.
keyboard_autorepeat_slow_interval: Duration
The initial and maximum interval between keyboard repeat events, in milliseconds, when running without Scenic.
keyboard_autorepeat_fast_interval: Duration
The minimum interval between keyboard repeat events, in milliseconds, when running without Scenic.
use_spinel: bool
Whether to try to use hardware rendering (Spinel).
virtcon_mode: Option<VirtconMode>
What mode to use when acting as a virtual console.
view_mode: ViewMode
What sort of view system to use.
display_rotation: DisplayRotation
Application option to exercise transparent rotation.
keymap_name: Option<String>
Application option to select keymap. If named keymap is not found the fallback is US QWERTY.
display_resource_release_delay: Duration
How long should carnelian wait before releasing display resources when it loses ownership of the display while running directly on the display. The default value is five seconds, so that the resource will not be rapidly allocated and deallocated when switching quickly between virtcon and the regular display.
buffer_count: Option<usize>
In a bringup build the display coordinator might not support multiple buffers so Carnelian might have to run with only a single buffer. This configuration option is to allow testing rendering with a single buffer even in build that supports multiple.
input: bool
Whether input events are needed.
needs_blending: bool
Whether output can be translucent and needs blending.
startup_delay: Duration
How long to wait before entering event loop.