Class: HexaPDF::Type::Annotations::Widget::BorderStyle

Inherits:
Struct
  • Object
show all
Defined in:
lib/hexapdf/type/annotations/widget.rb

Overview

Describes the border of an annotation.

The color property is either nil if the border is transparent or else a device color object - see HexaPDF::Content::ColorSpace.

The style property can be one of the following:

:solid

Solid line.

:beveled

Embossed rectangle seemingly raised above the surface of the page.

:inset

Engraved rectangle receeding into the page.

:underlined

Underlined, i.e. only the bottom border is draw.

Array: Dash array describing how to dash the line.

Instance Attribute Summary collapse

Instance Attribute Details

#colorObject

Returns the value of attribute color

Returns:

  • (Object)

    the current value of color



137
138
139
# File 'lib/hexapdf/type/annotations/widget.rb', line 137

def color
  @color
end

#horizontal_corner_radiusObject

Returns the value of attribute horizontal_corner_radius

Returns:

  • (Object)

    the current value of horizontal_corner_radius



137
138
139
# File 'lib/hexapdf/type/annotations/widget.rb', line 137

def horizontal_corner_radius
  @horizontal_corner_radius
end

#styleObject

Returns the value of attribute style

Returns:

  • (Object)

    the current value of style



137
138
139
# File 'lib/hexapdf/type/annotations/widget.rb', line 137

def style
  @style
end

#vertical_corner_radiusObject

Returns the value of attribute vertical_corner_radius

Returns:

  • (Object)

    the current value of vertical_corner_radius



137
138
139
# File 'lib/hexapdf/type/annotations/widget.rb', line 137

def vertical_corner_radius
  @vertical_corner_radius
end

#widthObject

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



137
138
139
# File 'lib/hexapdf/type/annotations/widget.rb', line 137

def width
  @width
end