24 lines
515 B
Rust
24 lines
515 B
Rust
/* Copyright (C) 2020 Purism SPC
|
|
* SPDX-License-Identifier: GPL-3.0+
|
|
*/
|
|
|
|
/*! Animation details */
|
|
|
|
use std::time::Duration;
|
|
|
|
use crate::main::PixelSize;
|
|
use crate::outputs::OutputId;
|
|
|
|
/// The keyboard should hide after this has elapsed to prevent flickering.
|
|
pub const HIDING_TIMEOUT: Duration = Duration::from_millis(200);
|
|
|
|
/// The outwardly visible state of visibility
|
|
#[derive(PartialEq, Debug, Clone)]
|
|
pub enum Outcome {
|
|
Visible {
|
|
output: OutputId,
|
|
height: PixelSize,
|
|
},
|
|
Hidden,
|
|
}
|