Class: FX::ShutterItem

Inherits:
Fox::FXShutterItem
  • Object
show all
Includes:
MiddleBtn, Responder
Defined in:
lib/libGUIb16.rb,
lib/libGUIb14.rb

Instance Method Summary collapse

Methods included from MiddleBtn

#handleMMB_Events, #onMiddleBtnPress, #onMiddleBtnRelease

Constructor Details

#initialize(p, opts = 0) ⇒ ShutterItem

Returns a new instance of ShutterItem.



819
820
821
822
823
824
825
826
# File 'lib/libGUIb16.rb', line 819

def initialize(p, opts = 0)
  super(p, "ShutterItem", nil, opts | Fox::LAYOUT_FILL_X | Fox::LAYOUT_TOP | Fox::LAYOUT_LEFT, 0, 0, 0, 0, 2, 2, 4, 4, 4, 4)
  button.padBottom = 3
  button.padTop = 3
  button.padLeft = 5
  button.padRight = 5
  handleMMB_Events
end

Instance Method Details

#textObject



832
833
834
# File 'lib/libGUIb16.rb', line 832

def text
  button.text
end

#text=(text) ⇒ Object



828
829
830
# File 'lib/libGUIb16.rb', line 828

def text=(text)
  button.text = text
end