class HexaPDF::Type::Annotations::Widget::MarkerStyle

Parent

Describes the marker style of a check box, radio button or push button widget.

Attributes

color[R]

A device color object representing the color of the marker - see HexaPDF::Content::ColorSpace.

font_name[R]

The resource name of the font that should be used for the caption.

This is only used for push button widgets.

size[R]

The size of the marker in PDF points that is shown inside the widget. The special value 0 means that the marker should be auto-sized based on the widget’s rectangle.

style[R]

The kind of marker that is shown inside the widget.

Radion buttons and check boxes

Can either be one of the symbols :check, :circle, :cross, :diamond, :square or :star, or a one character string. The latter is interpreted using the ZapfDingbats font.

If an empty string is set, it is treated as if nil was set, i.e. it shows the default marker for the field type.

Push buttons:

The caption string.

Public Class Methods

new(style, size, color, font_name)

Creates a new instance with the given values.