Class: Glimmer::SWT::Rectangle

Inherits:
Struct
  • Object
show all
Defined in:
lib/glimmer/swt/rectangle.rb

Overview

emulating org.eclipse.swt.graphics.Rectangle

Instance Attribute Summary collapse

Instance Attribute Details

#heightObject

Returns the value of attribute height

Returns:

  • (Object)

    the current value of height



4
5
6
# File 'lib/glimmer/swt/rectangle.rb', line 4

def height
  @height
end

#widthObject

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



4
5
6
# File 'lib/glimmer/swt/rectangle.rb', line 4

def width
  @width
end

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



4
5
6
# File 'lib/glimmer/swt/rectangle.rb', line 4

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



4
5
6
# File 'lib/glimmer/swt/rectangle.rb', line 4

def y
  @y
end