Class: Wx::Size

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

Instance Method Summary collapse

Instance Method Details

#default?Boolean

Checks if this equal to Wx::DEFAULT_SIZE (i.e. no explicit dimensions set)

Returns:

  • (Boolean)


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

def default?
  get_width == -1 and get_height == -1
end