diff --git a/video/gtk4/src/sink/frame.rs b/video/gtk4/src/sink/frame.rs index d92a4a70..390cec06 100644 --- a/video/gtk4/src/sink/frame.rs +++ b/video/gtk4/src/sink/frame.rs @@ -14,23 +14,24 @@ use gtk::{gdk, glib}; use std::collections::{HashMap, HashSet}; #[derive(Debug)] -pub struct Frame { - pub frame: gst_video::VideoFrame, - pub overlays: Vec, +pub(crate) struct Frame { + frame: gst_video::VideoFrame, + overlays: Vec, } #[derive(Debug)] -pub struct Overlay { - pub frame: gst_video::VideoFrame, - pub x: i32, - pub y: i32, - pub width: u32, - pub height: u32, - pub global_alpha: f32, +struct Overlay { + frame: gst_video::VideoFrame, + x: i32, + y: i32, + width: u32, + height: u32, + global_alpha: f32, } #[derive(Debug)] -pub struct Texture { +pub(crate) struct Texture { + //FIXME: create getters instead of having the fields public pub texture: gdk::Texture, pub x: f32, pub y: f32,