mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
25 lines
456 B
Rust
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(),
|
|
}
|
|
}
|
|
}
|