Class: Syskit::GUI::RuntimeState::EventWidget

Inherits:
Struct
  • Object
show all
Defined in:
lib/syskit/gui/runtime_state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hookObject

Returns the value of attribute hook

Returns:

  • (Object)

    the current value of hook



375
376
377
# File 'lib/syskit/gui/runtime_state.rb', line 375

def hook
  @hook
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



375
376
377
# File 'lib/syskit/gui/runtime_state.rb', line 375

def name
  @name
end

#widgetObject

Returns the value of attribute widget

Returns:

  • (Object)

    the current value of widget



375
376
377
# File 'lib/syskit/gui/runtime_state.rb', line 375

def widget
  @widget
end

Instance Method Details

#hideObject



379
380
381
# File 'lib/syskit/gui/runtime_state.rb', line 379

def hide
    widget.hide
end

#showObject



376
377
378
# File 'lib/syskit/gui/runtime_state.rb', line 376

def show
    widget.show
end

#update(*args) ⇒ Object



382
383
384
# File 'lib/syskit/gui/runtime_state.rb', line 382

def update(*args)
    hook.call(*args)
end