o
    7 ¾h0  ã                   @  sT   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 G dd„ deƒZd	S )
z©|ChartFormat| and related objects.

|ChartFormat| acts as proxy for the `spPr` element, which provides visual shape properties such as
line and fill for chart elements.
é    )Úannotations)Ú
FillFormat)Ú
LineFormat)ÚElementProxy)Úlazypropertyc                   @  s(   e Zd ZdZedd„ ƒZedd„ ƒZdS )ÚChartFormataz  
    The |ChartFormat| object provides access to visual shape properties for
    chart elements like |Axis|, |Series|, and |MajorGridlines|. It has two
    properties, :attr:`fill` and :attr:`line`, which return a |FillFormat|
    and |LineFormat| object respectively. The |ChartFormat| object is
    provided by the :attr:`format` property on the target axis, series, etc.
    c                 C  s   | j  ¡ }t |¡S )zx
        |FillFormat| instance for this object, providing access to fill
        properties such as fill color.
        )Ú_elementÚget_or_add_spPrr   Úfrom_fill_parent©ÚselfÚspPr© r   úW/var/www/html/figdemos/bartoux_crm/venv/lib/python3.10/site-packages/pptx/dml/chtfmt.pyÚfill   s   

zChartFormat.fillc                 C  s   | j  ¡ }t|ƒS )zŽ
        The |LineFormat| object providing access to the visual properties of
        this object, such as line color and line style.
        )r   r	   r   r   r   r   r   Úline!   s   
zChartFormat.lineN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r   r      s    
r   N)r   Ú
__future__r   Úpptx.dml.fillr   Zpptx.dml.liner   Úpptx.sharedr   Ú	pptx.utilr   r   r   r   r   r   Ú<module>   s    