@@ -603,9 +603,6 @@ mod mewnala {
603603 fn init ( module : & Bound < ' _ , PyModule > ) -> PyResult < ( ) > {
604604 use processing:: prelude:: BlendMode ;
605605
606- module. add ( "width" , super :: DEFAULT_WIDTH ) ?;
607- module. add ( "height" , super :: DEFAULT_HEIGHT ) ?;
608-
609606 module. add ( "BLEND" , PyBlendMode :: from_preset ( BlendMode :: Blend ) ) ?;
610607 module. add ( "ADD" , PyBlendMode :: from_preset ( BlendMode :: Add ) ) ?;
611608 module. add ( "SUBTRACT" , PyBlendMode :: from_preset ( BlendMode :: Subtract ) ) ?;
@@ -1762,38 +1759,6 @@ mod mewnala {
17621759 midi:: play_notes ( note, duration)
17631760 }
17641761
1765- #[ pyfunction]
1766- #[ pyo3( pass_module) ]
1767- fn mouse_x ( module : & Bound < ' _ , PyModule > ) -> PyResult < f32 > {
1768- let graphics =
1769- get_graphics ( module) ?. ok_or_else ( || PyRuntimeError :: new_err ( "call size() first" ) ) ?;
1770- input:: mouse_x ( graphics. surface . entity , graphics. width )
1771- }
1772-
1773- #[ pyfunction]
1774- #[ pyo3( pass_module) ]
1775- fn mouse_y ( module : & Bound < ' _ , PyModule > ) -> PyResult < f32 > {
1776- let graphics =
1777- get_graphics ( module) ?. ok_or_else ( || PyRuntimeError :: new_err ( "call size() first" ) ) ?;
1778- input:: mouse_y ( graphics. surface . entity , graphics. height )
1779- }
1780-
1781- #[ pyfunction]
1782- #[ pyo3( pass_module) ]
1783- fn pmouse_x ( module : & Bound < ' _ , PyModule > ) -> PyResult < f32 > {
1784- let graphics =
1785- get_graphics ( module) ?. ok_or_else ( || PyRuntimeError :: new_err ( "call size() first" ) ) ?;
1786- input:: pmouse_x ( graphics. surface . entity , graphics. width )
1787- }
1788-
1789- #[ pyfunction]
1790- #[ pyo3( pass_module) ]
1791- fn pmouse_y ( module : & Bound < ' _ , PyModule > ) -> PyResult < f32 > {
1792- let graphics =
1793- get_graphics ( module) ?. ok_or_else ( || PyRuntimeError :: new_err ( "call size() first" ) ) ?;
1794- input:: pmouse_y ( graphics. surface . entity , graphics. height )
1795- }
1796-
17971762 #[ pyfunction]
17981763 fn key_is_down ( key_code : u32 ) -> PyResult < bool > {
17991764 input:: key_is_down ( key_code)
@@ -1833,18 +1798,20 @@ mod mewnala {
18331798 graphics. surface . display_density ( )
18341799 }
18351800
1801+ // private stuff
1802+
18361803 #[ pyfunction]
1837- fn frame_count ( ) -> PyResult < u32 > {
1804+ fn _dyn_frame_count ( ) -> PyResult < u32 > {
18381805 time:: frame_count ( )
18391806 }
18401807
18411808 #[ pyfunction]
1842- fn delta_time ( ) -> PyResult < f32 > {
1809+ fn _dyn_delta_time ( ) -> PyResult < f32 > {
18431810 time:: delta_time ( )
18441811 }
18451812
18461813 #[ pyfunction]
1847- fn elapsed_time ( ) -> PyResult < f32 > {
1814+ fn _dyn_elapsed_time ( ) -> PyResult < f32 > {
18481815 time:: elapsed_time ( )
18491816 }
18501817
0 commit comments