linter updates

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2021-11-12 15:48:17 +01:00
parent c1a4547261
commit c8f6a6d272
36 changed files with 1005 additions and 614 deletions

View File

@@ -7,11 +7,10 @@
// use orbtk::prelude::*;
// /*
// * WidgetContainer = entity
// */
// // methods get, get_mut, try_get, try_get_mut and clone
// // ctx.widget returns a WidgetContainer that wraps the current widget of the state
// /* * WidgetContainer = entity */
// associated functions: get, get_mut, try_get, try_get_mut and clone
// ctx.widget() returns a WidgetContainer object, that wraps
// the current state of that widget (i.e properties)
// let mut widget_container: WidgetContainer = ctx.widget();
// // property handling (componets)
@@ -23,7 +22,6 @@
// // .set<PropertyType>("property_name", property_value);
// widget_container.set::<String16>("text", "my_text");
// /*
// * Child WidgetContainer = child entity
// */
@@ -48,11 +46,9 @@
// // set child field attributes
// text_box.set_text("My new text");
// /*
// * Registry handling
// */
// // register service
// fn update(registry: &mut Registry, _: &mut Context) {
// registry.register("my_db_serve", MyDBServie::new());
@@ -62,8 +58,6 @@
// let mut my_db_service: MyDBSerivce = registry.get_mut("my_db_service");
// }
// API Update: access properties of widgets in states
// Old style (associated functions)
@@ -85,5 +79,4 @@
// or
// ctx.get_widget(self.text_block).set("offset", offset);
fn main() {}