Aller au contenu

Message HrzProtocol.DecoratedShapeSymbolElement

Defined in hrz/protocol/vector/symbol_repr.proto.


fit_mode: HrzProtocol.BoxFit

Gives the mode to fit the shape relative to the received constraints.


aspect_ratio: float

When using fit modes that respect the aspect ratio, this is the ratio value. Use 0 when you want to keep the aspect ratio of the received constraints.


alignment: HrzProtocol.Vec2f

Used to align the decorated shape relative to the received constraints when necessary.


color: HrzProtocol.ColorProperty

Main colour of the shape.


border_color: HrzProtocol.ColorProperty

Border colour of the shape when the border size is not 0.


border_size: HrzProtocol.FloatProperty

Outline width of the shape in the unit defined by the anchor.


border_radius: HrzProtocol.FloatProperty

Border radius to make the angles of polygons rounder. The unit is the one defined by the anchor.


shape_type: HrzProtocol.DecoratedShapeType

regular_polygon: HrzProtocol.DecoratedRegularPolygon

Only set when shape_type is DECORATED_SHAPE_REGULAR_POLYGON.