feat(cheatsheet): remove list of position errors

This commit is contained in:
2024-08-09 20:51:28 +04:00
parent 631db86420
commit 7d2049b59d
4 changed files with 35 additions and 47 deletions

View File

@@ -2,14 +2,19 @@ pub mod builder_traits;
pub mod models;
use crate::gtk::glib;
use glib::Object;
glib::wrapper! {
pub struct ResultValue(ObjectSubclass<models::ResultValue>);
pub struct Frequency(ObjectSubclass<models::Frequency>);
}
impl ResultValue {
pub fn new(val: f64) -> Self {
Object::builder().property("value", val).build()
impl Frequency {
pub fn new(frequency: f64) -> Self {
Object::builder().property("frequency", frequency).build()
}
pub fn default() -> Self {
Object::new()
}
}