Class: VRToolbar::VRToolbarButton
Instance Attribute Summary collapse
-
#etc ⇒ Object
readonly
Returns the value of attribute etc.
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#toolbar ⇒ Object
readonly
Returns the value of attribute toolbar.
Instance Method Summary collapse
- #_vr_cmdhandlers ⇒ Object
- #checked? ⇒ Boolean
-
#initialize(i, toolbar) ⇒ VRToolbarButton
constructor
A new instance of VRToolbarButton.
- #state ⇒ Object
Constructor Details
#initialize(i, toolbar) ⇒ VRToolbarButton
Returns a new instance of VRToolbarButton.
237 238 239 |
# File 'lib/vr/contrib/toolbar.rb', line 237 def initialize(i,) @index,@toolbar = i, end |
Instance Attribute Details
#etc ⇒ Object (readonly)
Returns the value of attribute etc.
229 230 231 |
# File 'lib/vr/contrib/toolbar.rb', line 229 def etc @etc end |
#index ⇒ Object (readonly)
Returns the value of attribute index.
230 231 232 |
# File 'lib/vr/contrib/toolbar.rb', line 230 def index @index end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
228 229 230 |
# File 'lib/vr/contrib/toolbar.rb', line 228 def name @name end |
#toolbar ⇒ Object (readonly)
Returns the value of attribute toolbar.
231 232 233 |
# File 'lib/vr/contrib/toolbar.rb', line 231 def @toolbar end |
Instance Method Details
#_vr_cmdhandlers ⇒ Object
233 234 235 |
# File 'lib/vr/contrib/toolbar.rb', line 233 def _vr_cmdhandlers {0=>[["clicked",MSGTYPE::ARGNONE,nil]]} end |
#checked? ⇒ Boolean
245 246 247 |
# File 'lib/vr/contrib/toolbar.rb', line 245 def checked? (state&1)==1 end |
#state ⇒ Object
241 242 243 |
# File 'lib/vr/contrib/toolbar.rb', line 241 def state @toolbar.getButtonStateOf(@etc) end |