reflexion 0.3.15 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,7 @@ class Win : public Window
21
21
 
22
22
  void on_draw (DrawEvent* e)
23
23
  {
24
- e->painter->text(stringf("%f", e->fps), 10, 10);
24
+ e->painter()->text(stringf("%f", e->fps()), 10, 10);
25
25
  }
26
26
 
27
27
  };// Window
@@ -65,14 +65,14 @@ class App : public Application
65
65
 
66
66
  win->root()->add_child(view);
67
67
 
68
- view->body()->set_dynamic(true);
69
- view->body()->set_density(1);
68
+ view->set_dynamic(true);
69
+ view->set_density(1);
70
70
  }
71
71
 
72
72
  View* ground = new View();
73
73
  ground->set_frame(10, 400, 300, 10);
74
74
  win->root()->add_child(ground);
75
- ground->body()->set_static(true);
75
+ ground->set_static(true);
76
76
  }
77
77
 
78
78
  };// App