ó
X–Tc           @   sÇ   d  Z  d d l Z d d l Z d d l Z e j e Z i e j j d 6e j j	 d 6e j j
 d 6e j j d 6e j j d 6Z d e j f d	 „  ƒ  YZ e e ƒ Z e e j e <e j j e j ƒ d S(
   só  The mouse modules provides an interface to adjust the mouse cursor.

.. attribute:: visible

    `Bool` that adjust whether the mouse cursor should be shown. This is useful
    if you want to, for example, use a Sprite instead of the regular mouse
    cursor.

.. attribute:: cursor

    `str` value that lets you choose from among the built-in options for
    cursors. The options are:

        * ``"arrow"`` : the regular arrow-shaped cursor
        * ``"diamond"`` : a diamond shaped cursor
        * ``"x"`` : a broken X, useful for indicating disabled states.
        * ``"left"``: a triangle pointing to the left
        * ``"right"``: a triangle pointing to the right

    .. warning:: Custom non-Sprite mouse cursors are currently not supported.

iÿÿÿÿNt   arrowt   diamondt   xt   leftt   rightt   _MouseModulec           B   sS   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z e e e ƒ Z e e e ƒ Z	 RS(   c         G   s    t  j j |  | Œ t |  _ d  S(   N(   t   typest
   ModuleTypet   __init__t   Truet   _visible(   t   selft   args(    (    s0   /usr/lib/python2.7/site-packages/spyral/mouse.pyR   %   s    c         C   s   t  j j ƒ  S(   N(   t   pygamet   mouset
   get_cursor(   R   (    (    s0   /usr/lib/python2.7/site-packages/spyral/mouse.pyt   _get_cursor(   s    c         C   s7   | t  k r# t j j t  | Œ  n t j j | Œ  d  S(   N(   t   cursorsR   R   t
   set_cursor(   R   t   cursor(    (    s0   /usr/lib/python2.7/site-packages/spyral/mouse.pyt   _set_cursor*   s    c         C   s   |  j  S(   N(   R
   (   R   (    (    s0   /usr/lib/python2.7/site-packages/spyral/mouse.pyt   _get_visible/   s    c         C   s   t  j j | ƒ | |  _ d  S(   N(   R   R   t   set_visibleR
   (   R   t	   visiblity(    (    s0   /usr/lib/python2.7/site-packages/spyral/mouse.pyt   _set_visible1   s    (
   t   __name__t
   __module__R   R   R   R   R   t   propertyR   t   visible(    (    (    s0   /usr/lib/python2.7/site-packages/spyral/mouse.pyR   $   s   					(   t   __doc__t   sysR   R   t   modulesR   t   oldR   R    R   t   broken_xt   tri_leftt	   tri_rightR   R   R   t   __dict__t   update(    (    (    s0   /usr/lib/python2.7/site-packages/spyral/mouse.pyt   <module>   s   