Class: VRWinComponent

Inherits:
SWin::Window
  • Object
show all
Defined in:
lib/vr/contrib/vrwincomponent.rb,
lib/vr/vruby.rb

Overview

#

VRWinComponent Class

Direct Known Subclasses

VRControl, VRForm

Defined Under Namespace

Modules: VRInitBlocker Classes: ExWinStyle, Flags, WinStyle

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#parentObject (readonly)

Returns the value of attribute parent.



108
109
110
# File 'lib/vr/vruby.rb', line 108

def parent
  @parent
end

#screenObject (readonly)

VRWinComponent

Root of all window class.

Methods

— hide

Hides window (this calls SWin::Window#show(0)

— winstyle

Returns an instance of the style utilizing class

— exwinstyle

Returns an instance of the exstyle utilizing class


107
108
109
# File 'lib/vr/vruby.rb', line 107

def screen
  @screen
end

Instance Method Details

#_initObject



120
# File 'lib/vr/vruby.rb', line 120

def _init() self.vrinit(); end

#createObject



125
126
127
128
129
# File 'lib/vr/vruby.rb', line 125

def create
  @created=true
  super
  self.vrinit
end

#exwinstyleObject



200
201
202
# File 'lib/vr/vruby.rb', line 200

def exwinstyle
  ExWinStyle.new(self)
end

#hideObject



131
132
133
# File 'lib/vr/vruby.rb', line 131

def hide
  self.show 0
end

#maximizeboxObject

#

Instance Methods



18
19
20
# File 'lib/vr/contrib/vrwincomponent.rb', line 18

def maximizebox
  return self.winstyle.getter(WStyle::WS_MAXIMIZEBOX)
end

#maximizebox=(bool) ⇒ Object



22
23
24
# File 'lib/vr/contrib/vrwincomponent.rb', line 22

def maximizebox=(bool)
  self.winstyle.setter(WStyle::WS_MAXIMIZEBOX, bool)
end

#minimizeboxObject



26
27
28
# File 'lib/vr/contrib/vrwincomponent.rb', line 26

def minimizebox
  return self.winstyle.getter(WStyle::WS_MINIMIZEBOX)
end

#minimizebox=(bool) ⇒ Object



30
31
32
# File 'lib/vr/contrib/vrwincomponent.rb', line 30

def minimizebox=(bool)
  self.winstyle.setter(WStyle::WS_MINIMIZEBOX, bool)
end

#setscreen(scr) ⇒ Object



122
123
124
# File 'lib/vr/vruby.rb', line 122

def setscreen(scr)
  @screen=scr
end

#sizeboxObject



34
35
36
# File 'lib/vr/contrib/vrwincomponent.rb', line 34

def sizebox
  return self.winstyle.getter(WStyle::WS_SIZEBOX)
end

#sizebox=(bool) ⇒ Object



38
39
40
# File 'lib/vr/contrib/vrwincomponent.rb', line 38

def sizebox=(bool)
  self.winstyle.setter(WStyle::WS_SIZEBOX, bool)
end

#tabstopObject



42
43
44
# File 'lib/vr/contrib/vrwincomponent.rb', line 42

def tabstop
  return self.winstyle.getter(WStyle::WS_TABSTOP)
end

#tabstop=(bool) ⇒ Object



46
47
48
# File 'lib/vr/contrib/vrwincomponent.rb', line 46

def tabstop=(bool)
  self.winstyle.setter(WStyle::WS_TABSTOP, bool)
end

#vrinitObject



116
117
118
# File 'lib/vr/vruby.rb', line 116

def vrinit
  extend VRWinComponent::VRInitBlocker
end

#winstyleObject



196
197
198
# File 'lib/vr/vruby.rb', line 196

def winstyle
  WinStyle.new(self)
end