feat(cheatsheet): remove list of position errors
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user