Class: Windows::Structures::Desktop

Inherits:
Struct
  • Object
show all
Defined in:
lib/windows/structures/desktop.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#geometryObject

Returns the value of attribute geometry

Returns:

  • (Object)

    the current value of geometry



3
4
5
# File 'lib/windows/structures/desktop.rb', line 3

def geometry
  @geometry
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



3
4
5
# File 'lib/windows/structures/desktop.rb', line 3

def id
  @id
end

Instance Method Details

#heightObject



8
9
10
# File 'lib/windows/structures/desktop.rb', line 8

def height
  geometry[3]
end

#widthObject



4
5
6
# File 'lib/windows/structures/desktop.rb', line 4

def width
  geometry[2]
end

#x_offsetObject



12
13
14
# File 'lib/windows/structures/desktop.rb', line 12

def x_offset
  geometry[0]
end

#y_offsetObject



16
17
18
# File 'lib/windows/structures/desktop.rb', line 16

def y_offset
  geometry[1]
end