3
7ßL]G  ã               @   sV   d dl m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 )é    )ÚQtGui)Ú	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ƒ jƒ jƒ jƒ S )N)r   ÚQApplicationÚinstanceÚdesktopÚscreenGeometryÚwidth)Úself© r   ú@/tmp/pip-install-5sebvq2j/pyface/pyface/ui/qt4/system_metrics.pyÚ_get_screen_width+   s    zSystemMetrics._get_screen_widthc             C   s   t jjƒ jƒ jƒ jƒ S )N)r   r   r   r   r   Úheight)r   r   r   r   Ú_get_screen_height.   s    z SystemMetrics._get_screen_heightc             C   s.   t jjƒ jƒ jt jjƒ}|jƒ |jƒ |j	ƒ fS )N)
r   r   r   ZpaletteÚcolorZQPaletteZWindowZredFZgreenFZblueF)r   r   r   r   r   Ú_get_dialog_background_color1   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
   N)Z	pyface.qtr   Z
traits.apir   r   r   r   r   Zpyface.i_system_metricsr   r	   r
   r   r   r   r   Ú<module>   s   