Class: Wx::Position

Inherits:
Object
  • Object
show all
Defined in:
lib/wx_sugar/wx_classes/position.rb

Instance Method Summary collapse

Instance Method Details

#default?Boolean

Checks if this equal to Wx::DEFAULT_POSITION (i.e. no explicit co-ordinates set)

Returns:

  • (Boolean)


4
5
6
# File 'lib/wx_sugar/wx_classes/position.rb', line 4

def default?
  x == -1 and y == -1
end