Imlib2::Border (Class)

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

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

Imlib2::Border constructor.

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

Public Instance methods

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

Alias for bottom

b=(p1)

Alias for bottom=

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

Examples:

  edge = border.bottom
  edge = border.b

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=

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

Examples:

  edge = border.left
  edge = border.l

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=

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

Examples:

  edge = border.right
  edge = border.r

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=

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

Examples:

  edge = border.top
  edge = border.t

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

Examples:

  border.top = 10
  border.t = 10

[Validate]