brown.interface.path_element_interface

classes

permalink view source

PathElementInterface

An element of a path or subpath.

Becuase QPainterPath::Element instances can't be directly created, to instantiate an instance of this class you should query the parent PathInterface.elements[-1] after creating an element, and pass its result to the constructor here.

TODO: Figure out how to elegantly bind these with their PathElement counterparts

__init__ (qt_object, parent_path, index, element_type) permalink view source

arguments:

qt_object (QtGui.Element): The Qt object this element refers to

parent_path (PathInterface): The path this element belongs to

index (int): The position of this element in the parent path.

element_type (PathElementType or int enum value): The type of element this represents.

properties

path_interface: PathInterface The path interface this element belongs in. permalink view source

read-only.

index: int The index of this element in the parent path permalink view source

read-only.

element_type: PathElementType The type of this element. permalink view source

This has a 1:1 correspondence with PathElement.element_type.

read-only.

methods

update_element_in_path_interface () permalink view source

Push element properties to self.qt_object and the parent path

returns:

None