kivy/doc/sources/gettingstarted/framework.rst

49 lines
2.2 KiB
ReStructuredText
Raw Normal View History

Non-widget stuff
-----------------
2012-05-29 20:58:03 +00:00
.. |animation_img| image:: ../images/gs-animation.gif
2013-05-05 18:06:32 +00:00
.. |animation_text| replace:: :class:`Animation <kivy.animation.Animation>` is
used to change a widget's properties (size/pos/center etc.) to a target
value within a target time.
Various :class:`transition <kivy.animation.AnimationTransition>` functions
are provided. You can use them to animate widgets and build very smooth UI
behaviours.
2012-04-04 10:04:52 +00:00
2012-05-29 20:58:03 +00:00
.. |atlas_img| image:: ../images/gs-atlas.png
2012-04-04 10:04:52 +00:00
2013-05-05 18:06:32 +00:00
.. |atlas_text| replace:: :class:`Atlas <kivy.atlas.Atlas>` is a class for
2013-06-07 22:45:44 +00:00
managing texture maps, i.e. packing multiple textures into one image.
2013-05-05 18:06:32 +00:00
This allows you to reduce the number of images loaded and thus speed up the
application start.
2012-03-16 14:42:35 +00:00
2013-05-05 18:06:32 +00:00
.. |clock_text| replace:: :class:`Clock <kivy.clock.Clock>` provides you with a
2013-06-07 22:45:44 +00:00
convenient way to schedule jobs at set time intervals and is preferred
over `sleep()`, which would block the kivy event loop. These intervals can
2013-05-05 18:06:32 +00:00
be set relative to the OpenGL drawing instructions,
:ref:`before <schedule-before-frame>` or
:ref:`after <schedule-before-frame>`. The Clock also provides you with a way
to create :ref:`triggered events <triggered-events>` that are grouped
together and called only once before the next frame.
2012-05-29 20:58:03 +00:00
.. |sched_once| replace:: :meth:`~kivy.clock.ClockBase.schedule_once`
.. |sched_intrvl| replace:: :meth:`~kivy.clock.ClockBase.schedule_interval`
.. |unsched| replace:: :meth:`~kivy.clock.ClockBase.unschedule`
.. |trigger| replace:: :meth:`~kivy.clock.ClockBase.create_trigger`
2013-05-05 18:06:32 +00:00
.. |urlreq| replace:: :class:`UrlRequest <kivy.network.urlrequest.UrlRequest>`
is useful for asynchronous requests that do not block the event loop, and
manage the result and progress with callbacks.
2012-05-29 20:58:03 +00:00
+------------------+------------------+
| |animation_text| | |animation_img||
+------------------+------------------+
| |atlas_text| | |atlas_img| |
+------------------+------------------+
| |clock_text| | - |sched_once| |
| | - |sched_intrvl| |
| | - |unsched| |
| | - |trigger| |
+------------------+------------------+
| |urlreq| | |
+------------------+------------------+