3
7ßL]  ã               @   s^   d Z ddlZddlZddlmZmZmZmZmZ ddl	m
Z
mZ ee
ƒG dd„ deeƒƒZdS )z$ Enthought pyface package component
é    N)Ú	HasTraitsÚIntÚPropertyÚprovidesÚTuple)ÚISystemMetricsÚMSystemMetricsc               @   s@   e Zd ZdZeeƒZeeƒZeeƒZ	dd„ Z
dd„ Zdd„ ZdS )	ÚSystemMetricsz~ The toolkit specific implementation of a SystemMetrics.  See the
    ISystemMetrics interface for the API documentation.
    c             C   s   t jjt jƒS )N)ÚwxÚSystemSettingsÚ	GetMetricZSYS_SCREEN_X)Úself© r   ú?/tmp/pip-install-5sebvq2j/pyface/pyface/ui/wx/system_metrics.pyÚ_get_screen_width4   s    zSystemMetrics._get_screen_widthc             C   s   t jjt jƒS )N)r
   r   r   ZSYS_SCREEN_Y)r   r   r   r   Ú_get_screen_height7   s    z SystemMetrics._get_screen_heightc             C   sN   t jdkrtjdddƒ}ntjjtjƒjƒ }|d d |d d |d d fS )NÚdarwinéè   r   g     ào@é   é   )ÚsysÚplatformr
   ZColourr   Z	GetColourZSYS_COLOUR_MENUBARZGet)r   Úcolorr   r   r   Ú_get_dialog_background_color:   s    
z*SystemMetrics._get_dialog_background_colorN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Zscreen_widthZscreen_heightr   Zdialog_background_colorr   r   r   r   r   r   r   r	   !   s   r	   )r   r   r
   Z
traits.apir   r   r   r   r   Zpyface.i_system_metricsr   r   r	   r   r   r   r   Ú<module>   s   