Class: Imlib2::Border

Class | Imlib2::Border
In: | imlib2.c (CVS)
Parent: | Object

### Methods

[] []= b b= bottom bottom= l l= left left= new new r r= right right= t t= top top=

### Public Class methods

new(...)

Returns a new Imlib2::Border object.

Examples:

      left, top, right, bottom = 10, 10, 20, 20
      border = Imlib2::Border.new left, top, right, bottom

      values = [10, 10, 20, 20]
      border = Imlib2::Border.new values

      edges = {
        'left'   => 10,
        'right'  => 20,
        'top'    => 10,
        'bottom' => 20,
      }
      border = Imlib2::Border.new edges

new(...)

Imlib2::Border constructor.

Parameters are identical to Imlib2::Border::new.

### Public Instance methods

[]()
[]=(p1, p2)
b()

Alias for bottom

b=(p1)

Alias for bottom=

bottom()

Get the bottom height (in pixels) of a border.

Examples:

      edge = border.bottom
      edge = border.b

bottom=(p1)

Set the bottom height (in pixels) of a border.

Examples:

      border.bottom = 10
      border.b = 10

l()

Alias for left

l=(p1)

Alias for left=

left()

Get the left width (in pixels) of a border.

Examples:

      edge = border.left
      edge = border.l

left=(p1)

Set the left width (in pixels) of a border.

Examples:

      border.left = 10
      border.l = 10

r()

Alias for right

r=(p1)

Alias for right=

right()

Get the right width (in pixels) of a border.

Examples:

      edge = border.right
      edge = border.r

right=(p1)

Set the right width (in pixels) of a border.

Examples:

      border.right = 10
      border.r = 10

t()

Alias for top

t=(p1)

Alias for top=

top()

Get the top height (in pixels) of a border.

Examples:

      edge = border.top
      edge = border.t

top=(p1)

Set the top height (in pixels) of a border.

Examples:

      border.top = 10
      border.t = 10

[Validate]