Class: HexaPDF::Type::Annotations::BorderStyling::BorderStyle

Inherits:
Struct
  • Object
show all
Defined in:
lib/hexapdf/type/annotations/border_styling.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



63
64
65
# File 'lib/hexapdf/type/annotations/border_styling.rb', line 63

def color
  @color
end

#horizontal_corner_radiusObject

Returns the value of attribute horizontal_corner_radius

Returns:

  • (Object)

    the current value of horizontal_corner_radius



63
64
65
# File 'lib/hexapdf/type/annotations/border_styling.rb', line 63

def horizontal_corner_radius
  @horizontal_corner_radius
end

#styleObject

Returns the value of attribute style

Returns:

  • (Object)

    the current value of style



63
64
65
# File 'lib/hexapdf/type/annotations/border_styling.rb', line 63

def style
  @style
end

#vertical_corner_radiusObject

Returns the value of attribute vertical_corner_radius

Returns:

  • (Object)

    the current value of vertical_corner_radius



63
64
65
# File 'lib/hexapdf/type/annotations/border_styling.rb', line 63

def vertical_corner_radius
  @vertical_corner_radius
end

#widthObject

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



63
64
65
# File 'lib/hexapdf/type/annotations/border_styling.rb', line 63

def width
  @width
end