FlowableStyle¶
-
class rinoh.flowable.FlowableStyle(base=
None
, **attributes)¶ Style class for
Flowable
- width¶
Width to render the flowable at
Accepts
FlowableWidth
:auto
,fill
or a numeric value followed by a unit (pt
,in
,pc
,mm
,cm
,%
,/2
,/4
)Default:
auto
- horizontal_align¶
Horizontal alignment of the flowable
Accepts
HorizontalAlignment
:left
,right
,center
Default:
left
- space_above¶
Vertical space preceding the flowable
Accepts
Dimension
: a numeric value followed by a unit (pt
,in
,pc
,mm
,cm
,%
,/2
,/4
)Default:
0
- space_below¶
Vertical space following the flowable
Accepts
Dimension
: a numeric value followed by a unit (pt
,in
,pc
,mm
,cm
,%
,/2
,/4
)Default:
0
- margin_left¶
Left margin
Accepts
Dimension
: a numeric value followed by a unit (pt
,in
,pc
,mm
,cm
,%
,/2
,/4
)Default:
0
- margin_right¶
Right margin
Accepts
Dimension
: a numeric value followed by a unit (pt
,in
,pc
,mm
,cm
,%
,/2
,/4
)Default:
0
- padding¶
Padding
Accepts
Dimension
: a numeric value followed by a unit (pt
,in
,pc
,mm
,cm
,%
,/2
,/4
)Default:
0
- padding_left¶
Left padding
Accepts
Dimension
: a numeric value followed by a unit (pt
,in
,pc
,mm
,cm
,%
,/2
,/4
)Default:
0
- padding_right¶
Right padding
Accepts
Dimension
: a numeric value followed by a unit (pt
,in
,pc
,mm
,cm
,%
,/2
,/4
)Default:
0
- padding_top¶
Top padding
Accepts
Dimension
: a numeric value followed by a unit (pt
,in
,pc
,mm
,cm
,%
,/2
,/4
)Default:
0
- padding_bottom¶
Bottom padding
Accepts
Dimension
: a numeric value followed by a unit (pt
,in
,pc
,mm
,cm
,%
,/2
,/4
)Default:
0
- keep_with_next¶
Keep this flowable and the next on the same page
Accepts
Bool
:true
orfalse
Default:
false
- border¶
Border surrounding the flowable
Accepts
Stroke
: the width (Dimension
) and color (Color
) of the stroke, separated by a comma (,
)Default:
none
- border_left¶
Border left of the flowable
Accepts
Stroke
: the width (Dimension
) and color (Color
) of the stroke, separated by a comma (,
)Default:
none
- border_right¶
Border right of the flowable
Accepts
Stroke
: the width (Dimension
) and color (Color
) of the stroke, separated by a comma (,
)Default:
none
- border_top¶
Border above the flowable
Accepts
Stroke
: the width (Dimension
) and color (Color
) of the stroke, separated by a comma (,
)Default:
none
- border_bottom¶
Border below the flowable
Accepts
Stroke
: the width (Dimension
) and color (Color
) of the stroke, separated by a comma (,
)Default:
none
- background_color¶
Color of the area within the flowable’s borders
Accepts
Color
: HEX string with optional alpha component (#RRGGBB
,#RRGGBBAA
,#RGB
or#RGBA
)Default:
none
- page_break¶
Type of page break to insert before rendering this flowable
Accepts
Break
:none
,any
,left
,right
,any restart
,left restart
,right restart
Default:
None