Yoda/src/app/browser/window/header/bar/control.rs
2025-01-12 14:08:30 +02:00

25 lines
456 B
Rust

use gtk::{PackType, WindowControls};
const MARGIN: i32 = 4;
pub struct Control {
pub window_controls: WindowControls,
}
impl Default for Control {
fn default() -> Self {
Self::new()
}
}
impl Control {
// Construct
pub fn new() -> Self {
Self {
window_controls: WindowControls::builder()
.margin_end(MARGIN)
.side(PackType::End)
.build(),
}
}
}