a
    {bO                     @   s   d Z G dd dZdS )aR  
Orientation
==========

The :class:`Orientation` provides access to public methods to set orientation
of your device.

.. note::
    These settings are generally guidelines, the operating
    system may choose to ignore them, or they may be overridden by
    other system components.

.. versionadded:: 1.2.4

Simple Examples
---------------

To set landscape::

    >>> from plyer import orientation
    >>> orientation.set_landscape()

To set portrait::

    >>> orientation.set_portrait()

To set sensor::

    >>> orientation.set_sensor()

Supported Platforms
-------------------
Android

c                   @   sF   e Zd ZdZdddZdddZddd	Zd
d Zdd Zdd Z	dS )Orientationz
    Orientation facade.
    Fc                 C   s   | j |d dS )z
        Rotate the app to a landscape orientation.

        :param reverse: If True, uses the opposite of the natural
                        orientation.
        reverseN)_set_landscapeselfr    r   i/Users/vegardjervell/Documents/master/model/venv/lib/python3.9/site-packages/plyer/facades/orientation.pyset_landscape+   s    zOrientation.set_landscapec                 C   s   | j |d dS )z
        Rotate the app to a portrait orientation.

        :param reverse: If True, uses the opposite of the natural
                        orientation.
        r   N)_set_portraitr   r   r   r   set_portrait4   s    zOrientation.set_portraitanyc                 C   s   | j |d dS )aV  
        Rotate freely following sensor information from the device.

        :param mode: The rotation mode, should be one of 'any' (rotate
                     to any orientation), 'landscape' (choose nearest
                     landscape mode) or 'portrait' (choose nearest
                     portrait mode). Defaults to 'any'.
        )modeN)_set_sensor)r   r   r   r   r   
set_sensor=   s    	zOrientation.set_sensorc                 K   s
   t  d S NNotImplementedErrorr   kwargsr   r   r   r   J   s    zOrientation._set_landscapec                 K   s
   t  d S r   r   r   r   r   r   r
   M   s    zOrientation._set_portraitc                 K   s
   t  d S r   r   r   r   r   r   r   P   s    zOrientation._set_sensorN)F)F)r   )
__name__
__module____qualname____doc__r	   r   r   r   r
   r   r   r   r   r   r   &   s   
	
	
r   N)r   r   r   r   r   r   <module>   s   %