Class: VRWinComponent
- Inherits:
-
SWin::Window
- Object
- SWin::Window
- VRWinComponent
show all
- Defined in:
- lib/vr/contrib/vrwincomponent.rb,
lib/vr/vruby.rb
Overview
Defined Under Namespace
Modules: VRInitBlocker
Classes: ExWinStyle, Flags, WinStyle
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
Returns the value of attribute parent.
108
109
110
|
# File 'lib/vr/vruby.rb', line 108
def parent
@parent
end
|
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
120
|
# File 'lib/vr/vruby.rb', line 120
def _init() self.vrinit(); end
|
125
126
127
128
129
|
# File 'lib/vr/vruby.rb', line 125
def create
@created=true
super
self.vrinit
end
|
#exwinstyle ⇒ Object
200
201
202
|
# File 'lib/vr/vruby.rb', line 200
def exwinstyle
ExWinStyle.new(self)
end
|
131
132
133
|
# File 'lib/vr/vruby.rb', line 131
def hide
self.show 0
end
|
#maximizebox ⇒ Object
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
|
#minimizebox ⇒ Object
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
|
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
|
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
|
196
197
198
|
# File 'lib/vr/vruby.rb', line 196
def winstyle
WinStyle.new(self)
end
|