ducpy.utils.enums¶
Classes¶
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) strings |
|
Enum where members are also (and must be) strings |
|
Enum where members are also (and must be) strings |
|
Enum where members are also (and must be) strings |
|
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
|
Create a collection of name/value pairs. |
|
Create a collection of name/value pairs. |
|
Create a collection of name/value pairs. |
|
Enum where members are also (and must be) strings |
|
Enum where members are also (and must be) strings |
|
Enum where members are also (and must be) strings |
|
Enum where members are also (and must be) strings |
|
Enum where members are also (and must be) ints |
Module Contents¶
- class ducpy.utils.enums.DesignStandard¶
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
Initialize self. See help(type(self)) for accurate signature.
- DUC = 10¶
- ABNT = 11¶
- ANSI = 12¶
- ISO = 13¶
- DIN = 14¶
- JIS = 15¶
- GB = 16¶
- BSI = 17¶
- class ducpy.utils.enums.Theme¶
Bases:
enum.StrEnum
Enum where members are also (and must be) strings
Initialize self. See help(type(self)) for accurate signature.
- LIGHT = 'light'¶
- DARK = 'dark'¶
- class ducpy.utils.enums.ChartType¶
Bases:
enum.StrEnum
Enum where members are also (and must be) strings
Initialize self. See help(type(self)) for accurate signature.
- BAR = 'bar'¶
- LINE = 'line'¶
- class ducpy.utils.enums.PointerType¶
Bases:
enum.StrEnum
Enum where members are also (and must be) strings
Initialize self. See help(type(self)) for accurate signature.
- MOUSE = 'mouse'¶
- PEN = 'pen'¶
- TOUCH = 'touch'¶
- class ducpy.utils.enums.UserIdleState¶
Bases:
enum.StrEnum
Enum where members are also (and must be) strings
Initialize self. See help(type(self)) for accurate signature.
- ACTIVE = 'active'¶
- AWAY = 'away'¶
- IDLE = 'idle'¶
- class ducpy.utils.enums.LineHead¶
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
Initialize self. See help(type(self)) for accurate signature.
- ARROW = 10¶
- BAR = 11¶
- CIRCLE = 12¶
- CIRCLE_OUTLINED = 13¶
- TRIANGLE = 14¶
- TRIANGLE_OUTLINED = 15¶
- DIAMOND = 16¶
- DIAMOND_OUTLINED = 17¶
- CROSS = 18¶
- OPEN_ARROW = 19¶
- REVERSED_ARROW = 20¶
- REVERSED_TRIANGLE = 21¶
- REVERSED_TRIANGLE_OUTLINED = 22¶
- CONE = 23¶
- HALF_CONE = 24¶
- class ducpy.utils.enums.Blending¶
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
Initialize self. See help(type(self)) for accurate signature.
- MULTIPLY = 11¶
- SCREEN = 12¶
- OVERLAY = 13¶
- DARKEN = 14¶
- LIGHTEN = 15¶
- DIFFERENCE = 16¶
- EXCLUSION = 17¶
- class ducpy.utils.enums.ElementSubset¶
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
Initialize self. See help(type(self)) for accurate signature.
- AUX = 14¶
- COTA = 15¶
- class ducpy.utils.enums.ElementContentPreference¶
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
Initialize self. See help(type(self)) for accurate signature.
- HACHURE = 10¶
- CROSS_HATCH = 11¶
- SOLID = 12¶
- ZIGZAG = 13¶
- FILL = 14¶
- FIT = 15¶
- TILE = 16¶
- STRETCH = 17¶
- HATCH = 18¶
- class ducpy.utils.enums.StrokePreference¶
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
Initialize self. See help(type(self)) for accurate signature.
- SOLID = 10¶
- DASHED = 11¶
- DOTTED = 12¶
- CUSTOM = 13¶
- class ducpy.utils.enums.StrokeSidePreference¶
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
Initialize self. See help(type(self)) for accurate signature.
- TOP = 10¶
- BOTTOM = 11¶
- LEFT = 12¶
- RIGHT = 13¶
- CUSTOM = 14¶
- ALL = 15¶
- class ducpy.utils.enums.StrokeCap¶
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
Initialize self. See help(type(self)) for accurate signature.
- BUTT = 10¶
- ROUND = 11¶
- SQUARE = 12¶
- class ducpy.utils.enums.StrokeJoin¶
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
Initialize self. See help(type(self)) for accurate signature.
- MITER = 10¶
- ROUND = 11¶
- BEVEL = 12¶
- class ducpy.utils.enums.StrokePlacement¶
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
Initialize self. See help(type(self)) for accurate signature.
- INSIDE = 10¶
- CENTER = 11¶
- OUTSIDE = 12¶
- class ducpy.utils.enums.TextAlign¶
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
Initialize self. See help(type(self)) for accurate signature.
- LEFT = 10¶
- CENTER = 11¶
- RIGHT = 12¶
- class ducpy.utils.enums.VerticalAlign¶
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
Initialize self. See help(type(self)) for accurate signature.
- TOP = 10¶
- MIDDLE = 11¶
- BOTTOM = 12¶
- class ducpy.utils.enums.BezierMirroring¶
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
Initialize self. See help(type(self)) for accurate signature.
- NONE = 10¶
- ANGLE = 11¶
- ANGLE_LENGTH = 12¶
- class ducpy.utils.enums.FontFamily¶
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
Initialize self. See help(type(self)) for accurate signature.
- VIRGIL = 1¶
- HELVETICA = 2¶
- CASCADIA = 3¶
- EXCALIFONT = 5¶
- NUNITO = 6¶
- LILITA_ONE = 7¶
- COMIC_SHANNS = 8¶
- LIBERATION_SANS = 9¶
- ROBOTO_MONO = 10¶
- class ducpy.utils.enums.FillStyle(*args, **kwds)¶
Bases:
enum.Enum
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3
Access them by:
attribute access:
>>> Color.RED <Color.RED: 1>
value lookup:
>>> Color(1) <Color.RED: 1>
name lookup:
>>> Color['RED'] <Color.RED: 1>
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3
>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]
Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
- HACHURE = 'hachure'¶
- CROSS_HATCH = 'cross-hatch'¶
- SOLID = 'solid'¶
- ZIGZAG = 'zigzag'¶
- class ducpy.utils.enums.StrokeStyle(*args, **kwds)¶
Bases:
enum.Enum
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3
Access them by:
attribute access:
>>> Color.RED <Color.RED: 1>
value lookup:
>>> Color(1) <Color.RED: 1>
name lookup:
>>> Color['RED'] <Color.RED: 1>
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3
>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]
Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
- SOLID = 'solid'¶
- DASHED = 'dashed'¶
- DOTTED = 'dotted'¶
- class ducpy.utils.enums.ArrowType(*args, **kwds)¶
Bases:
enum.Enum
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3
Access them by:
attribute access:
>>> Color.RED <Color.RED: 1>
value lookup:
>>> Color(1) <Color.RED: 1>
name lookup:
>>> Color['RED'] <Color.RED: 1>
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3
>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]
Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
- SHARP = 'sharp'¶
- ROUND = 'round'¶
- ELBOW = 'elbow'¶
- class ducpy.utils.enums.Theme¶
Bases:
enum.StrEnum
Enum where members are also (and must be) strings
Initialize self. See help(type(self)) for accurate signature.
- LIGHT = 'light'¶
- DARK = 'dark'¶
- class ducpy.utils.enums.ImageStatus¶
Bases:
enum.StrEnum
Enum where members are also (and must be) strings
Initialize self. See help(type(self)) for accurate signature.
- PENDING = 'pending'¶
- SAVED = 'saved'¶
- ERROR = 'error'¶
- class ducpy.utils.enums.ElementType¶
Bases:
enum.StrEnum
Enum where members are also (and must be) strings
Initialize self. See help(type(self)) for accurate signature.
- SELECTION = 'selection'¶
- RECTANGLE = 'rectangle'¶
- DIAMOND = 'diamond'¶
- ELLIPSE = 'ellipse'¶
- ARROW = 'arrow'¶
- LINE = 'line'¶
- FREEDRAW = 'freedraw'¶
- TEXT = 'text'¶
- IMAGE = 'image'¶
- POLYGON = 'polygon'¶
- TABLE = 'table'¶
- DOC = 'doc'¶
- FRAME = 'frame'¶
- MAGIC_FRAME = 'magic_frame'¶
- GROUP = 'group'¶
- EMBEDDABLE = 'embeddable'¶
- LASER = 'laser'¶
- CUSTOM = 'custom'¶
- class ducpy.utils.enums.ToolType¶
Bases:
enum.StrEnum
Enum where members are also (and must be) strings
Initialize self. See help(type(self)) for accurate signature.
- SELECTION = 'selection'¶
- RECTANGLE = 'rectangle'¶
- DIAMOND = 'diamond'¶
- ELLIPSE = 'ellipse'¶
- ARROW = 'arrow'¶
- LINE = 'line'¶
- FREEDRAW = 'freedraw'¶
- TEXT = 'text'¶
- IMAGE = 'image'¶
- ERASER = 'eraser'¶
- HAND = 'hand'¶
- FRAME = 'frame'¶
- MAGICFRAME = 'magicframe'¶
- EMBEDDABLE = 'embeddable'¶
- RULER = 'ruler'¶
- LASER = 'laser'¶
- CUSTOM = 'custom'¶