summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs28
1 files changed, 1 insertions, 27 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f99510f2..8cf0f026 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -46,10 +46,9 @@ pub mod term;
pub mod tty;
pub mod util;
pub mod window;
+pub mod message_bar;
mod url;
-use std::ops::Mul;
-
pub use crate::grid::Grid;
pub use crate::term::Term;
@@ -60,31 +59,6 @@ pub enum MouseCursor {
Text,
}
-#[derive(Debug, Eq, PartialEq, Copy, Clone, Default, Serialize, Deserialize)]
-pub struct Rgb {
- pub r: u8,
- pub g: u8,
- pub b: u8,
-}
-
-// a multiply function for Rgb, as the default dim is just *2/3
-impl Mul<f32> for Rgb {
- type Output = Rgb;
-
- fn mul(self, rhs: f32) -> Rgb {
- let result = Rgb {
- r: (f32::from(self.r) * rhs).max(0.0).min(255.0) as u8,
- g: (f32::from(self.g) * rhs).max(0.0).min(255.0) as u8,
- b: (f32::from(self.b) * rhs).max(0.0).min(255.0) as u8
- };
-
- trace!("Scaling RGB by {} from {:?} to {:?}", rhs, self, result);
-
- result
- }
-}
-
-
pub mod gl {
#![allow(clippy::all)]
include!(concat!(env!("OUT_DIR"), "/gl_bindings.rs"));