module SDL2::WINDOWPOS

Used to indicate that you don’t care what the window position is.

Constants

CENTERED
CENTERED_MASK
UNDEFINED
UNEDFINED_MASK

Public Class Methods

centered_display(x) click to toggle source
# File lib/sdl2/window.rb, line 34
def self.centered_display(x)
  self::CENTERED_MASK | x
end
is_centered(x) click to toggle source
# File lib/sdl2/window.rb, line 40
def self.is_centered(x)
  (((x)&0xFFFF0000) == self::CENTERED_MASK)
end
is_undefined(x) click to toggle source

SDL_video.h doesn’t have much documentation on this, I think it is used internally, but may be useful for applications.

# File lib/sdl2/window.rb, line 28
def self.is_undefined(x)
  (((x)&0xFFFFF00000) == self::UNDEFINED_MASK)
end
undefined_display(x) click to toggle source

Used to generate the UNDEFINED constant, which if I understand correctly is just UNDEFINED_MASK anyways. I think this is to encourage divers/applications to write specific undefined codes? ‘</ramble>`

# File lib/sdl2/window.rb, line 20
def self.undefined_display(x)
  self::UNEDFINED_MASK|x
end