Class: Sapphire::UI::VirtualUI

Inherits:
Object
  • Object
show all
Defined in:
lib/sapphire/UI/VirtualUI.rb

Instance Method Summary collapse

Instance Method Details

#CloseObject



58
59
60
61
62
63
64
65
# File 'lib/sapphire/UI/VirtualUI.rb', line 58

def Close()
  $isVirtual = false
  result = UI::CloseDesktop(@off_screen)

  if(result == 0)
    raise "Could not close the virtual desktop :("
  end
end

#CreateObject



46
47
48
49
50
51
52
53
54
55
56
# File 'lib/sapphire/UI/VirtualUI.rb', line 46

def Create()

  @off_screen = UI::CreateDesktop("test", nil, nil, 0, 0x02000000, nil)

  if(@off_screen == nil)
    raise "Could not create a virtual desktop :("
  end

  $isVirtual = true

end