Development Team/Almanac/lang-es: Difference between revisions

Fede (talk | contribs)
Fede (talk | contribs)
Line 131: Line 131:
* [[Development Team/Almanac/GStreamer|GStreamer]]
* [[Development Team/Almanac/GStreamer|GStreamer]]


== Mouse ==
== Ratón ==
=== How do I change the mouse cursor in my activity to the wait cursor? ===
=== ¿Cómo puedo cambiar el cursor del ratón por el cursor de espera en mi actividad? ===
In your activity subclass:
En la subclase de tu actividad:


<pre>
<pre>
Line 139: Line 139:
</pre>
</pre>


and to switch it back to the default:
y para volver al que está por defecto:


<pre>
<pre>
Line 145: Line 145:
</pre>
</pre>


=== How do I track the position of the mouse? ===
=== ¿Cómo puedo rastrear la posición del ratón? ===
There are many different reasons you might want to track the position of the mouse in your activity, ranging from the entertaining ([[http://en.wikipedia.org/wiki/Xeyes]]) to the functional (hiding certain windows when the mouse hasn't moved for a couple of seconds and making those ui elements re-appear when the mouse has moved again). Here is one way you can implement this functionality:
Existen varias razones por las que te puede interesar controlar la posición del ratón, que van desde el entretenimiento ([[http://en.wikipedia.org/wiki/Xeyes]]) a lo funcional (ocultar ciertas ventanas cuando el ratón no se ha movido por un par de segundos y volver a hacer aparecer esos elementos cuando este se mueva nuevamente). Esta es una manera en la cual se puede implementar esta funcionalidad:
 
<pre>
<pre>