Google

"DTD/xhtml1-strict.dtd">
Class Imlib2::Border
In: ./imlib2.c
Methods
bottom    bottom=    initialize    left    left=    new    right    right=    top    top=   
Public Class methods
new(int argc, VALUE *argv, VALUE klass)

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
Public Instance methods
initialize(int argc, VALUE *argv, VALUE self)

Imlib2::Border constructor.

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

left(VALUE self)

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

Examples:

  edge = border.left
  edge = border.l
left=(VALUE self, VALUE val)

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

Examples:

  border.left = 10
  border.l = 10
right(VALUE self)

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

Examples:

  edge = border.right
  edge = border.r
right=(VALUE self, VALUE val)

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

Examples:

  border.right = 10
  border.r = 10
top(VALUE self)

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

Examples:

  edge = border.top
  edge = border.t
top=(VALUE self, VALUE val)

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

Examples:

  border.top = 10
  border.t = 10
bottom(VALUE self)

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

Examples:

  edge = border.bottom
  edge = border.b
bottom=(VALUE self, VALUE val)

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

Examples:

  border.bottom = 10
  border.b = 10