25 lines
499 B
Rust
25 lines
499 B
Rust
mod background;
|
|
mod imp;
|
|
pub use self::background::{BackgroundConfig, BackgroundWidget};
|
|
use glib::subclass::prelude::*;
|
|
use gtk::{traits::GestureSingleExt, EventControllerScrollFlags};
|
|
|
|
pub(super) type WindowCoord = (f32, f32);
|
|
|
|
glib::wrapper! {
|
|
pub struct Render(ObjectSubclass<imp::Render>)
|
|
@extends gtk::GLArea, gtk::Widget;
|
|
}
|
|
|
|
impl Default for Render {
|
|
fn default() -> Self {
|
|
Self::new()
|
|
}
|
|
}
|
|
|
|
impl Render {
|
|
pub fn new() -> Self {
|
|
glib::Object::new()
|
|
}
|
|
}
|