o
    gi                     @   sh   d Z ddl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
 ddlmZ G d	d
 d
eZdS )a  
In computer programming, a block or code block is a lexical structure of source code which is grouped together.
Blocks consist of one or more declarations and statements. A programming language that permits the creation of blocks,
including blocks nested within other blocks, is called a block-structured programming language.
Blocks are fundamental to structured programming, where control structures are formed from blocks.

The function of blocks in programming is to enable groups of statements to be treated as if they were one statement,
and to narrow the lexical scope of objects such as variables,
procedures and functions declared in a block so that they do not conflict with those having the same name used elsewhere.
In a block-structured programming language, the objects named in outer blocks are visible inside inner blocks,
unless they are masked by an object declared with the same name.
    N)Decimal)Color)HexColor)Font)	Alignment)	Paragraphc                ,       s   e Zd ZdZdededejejddddededededededed	ed	ed	ed	ed
fde	de
jee	f dedededededededededededededededededede
je f* fd d!Z  ZS )"	CodeBlocka  
    In computer programming, a block or code block is a lexical structure of source code which is grouped together.
    Blocks consist of one or more declarations and statements. A programming language that permits the creation of blocks,
    including blocks nested within other blocks, is called a block-structured programming language.
    Blocks are fundamental to structured programming, where control structures are formed from blocks.

    The function of blocks in programming is to enable groups of statements to be treated as if they were one statement,
    and to narrow the lexical scope of objects such as variables,
    procedures and functions declared in a block so that they do not conflict with those having the same name used elsewhere.
    In a block-structured programming language, the objects named in outer blocks are visible inside inner blocks,
    unless they are masked by an object declared with the same name.
    Courier   24292eFr   000000      f6f8fatextfont	font_size
font_colorhorizontal_alignmentvertical_alignment
border_topborder_rightborder_bottomborder_leftborder_radius_top_leftborder_radius_top_rightborder_radius_bottom_rightborder_radius_bottom_leftborder_colorborder_widthpadding_toppadding_rightpadding_bottompadding_leftbackground_colorc                    s   zdd l }|j|| d}W n   Y t jdi d|d|d|d|d|d|d	|d
|d|	d|
d|d|d|d|d|d|d|d|d|d|d|dddd d S )Nr   )moder   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   respect_newlines_in_textTrespect_spaces_in_text )black
format_strModesuper__init__)selfr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r)   	__class__r(   Y/home/ubuntu/.local/lib/python3.10/site-packages/borb/pdf/canvas/layout/text/codeblock.pyr-   ,   sh   	
zCodeBlock.__init__)__name__
__module____qualname____doc__r   r   r   LEFTTOPstrtypingUnionr   r   boolOptionalr-   __classcell__r(   r(   r/   r1   r      s    	
r   )r5   r9   decimalr   borb.pdf.canvas.color.colorr   r   borb.pdf.canvas.font.fontr   %borb.pdf.canvas.layout.layout_elementr   %borb.pdf.canvas.layout.text.paragraphr   r   r(   r(   r(   r1   <module>   s   