2.3.1. Lines and Borders (layout.elements.lines
)¶
-
class
layout.elements.lines.
Border
(color=(0, 0, 0), background=None, width=1, dash=None, top=True, right=True, bottom=True, left=True)¶ Bases:
layout.elements.lines.LineBase
Draws a line surrounding the space, with an optional additional color for fill.
-
get_minimum_size
(data)¶ How small can the element be? Should return a Point.
-
render
(rect, data)¶ Asks the element to render itself.
-
-
class
layout.elements.lines.
Fill
(color=(0, 0, 0))¶ Bases:
layout.elements.lines.Border
Draws a solid color fill with no outline.
-
class
layout.elements.lines.
HorizontalLine
(color=(0, 0, 0), width=1, dash=None)¶ Bases:
layout.elements.lines.LineBase
Draws a horizontal line in the center of any space it is given.
-
get_minimum_size
(data)¶ How small can the element be? Should return a Point.
-
render
(rect, data)¶ Asks the element to render itself.
-
-
class
layout.elements.lines.
LineBase
(color=(0, 0, 0), width=1, dash=None)¶ Bases:
layout.managers.root.LayoutElement
The base class for various kinds of line.
-
get_minimum_size
(data)¶ How small can the element be? Should return a Point.
-
-
class
layout.elements.lines.
VerticalLine
(color=(0, 0, 0), width=1, dash=None)¶ Bases:
layout.elements.lines.LineBase
Draws a vertical line in the center of any space it is given.
-
get_minimum_size
(data)¶ How small can the element be? Should return a Point.
-
render
(rect, data)¶ Asks the element to render itself.
-