Aller au contenu

Message HrzProtocol.ImageSprite

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

Fields

name: string

The name of the sprite is optional. This is the name that can be used to refer to this sprite during styling.

size: HrzProtocol.Vec2i
offset: HrzProtocol.Vec2i
content: HrzProtocol.Bboxi

This defines the box in which content will be placed. Of course an image doesn’t have content as it is a leaf node in the symbol elements tree. So this defines the region that we apply the parent’s constraints to, and then whatever is outside that overflows outside.

stretch_x: HrzProtocol.Rangei[]

Defines regions on the horizontal axis where the sprite can stretch.

stretch_y: HrzProtocol.Rangei[]

Defines regions on the vertical axis where the sprite can stretch.