Class: Fzeet::Menu
- Inherits:
-
Handle
- Object
- Handle
- Fzeet::Menu
- Includes:
- Windows::MenuMethods
- Defined in:
- lib/fzeet/windows/user/Menu.rb
Instance Attribute Summary collapse
-
#submenus ⇒ Object
readonly
Returns the value of attribute submenus.
Instance Method Summary collapse
- #dispose ⇒ Object
-
#initialize ⇒ Menu
constructor
A new instance of Menu.
Methods included from Windows::MenuMethods
#[], #append, #images=, #rdetach
Constructor Details
#initialize ⇒ Menu
219 220 221 222 223 |
# File 'lib/fzeet/windows/user/Menu.rb', line 219 def initialize = [] @handle = Windows.DetonateLastError(FFI::Pointer::NULL, :CreateMenu); attach end |
Instance Attribute Details
#submenus ⇒ Object (readonly)
Returns the value of attribute submenus.
225 226 227 |
# File 'lib/fzeet/windows/user/Menu.rb', line 225 def end |
Instance Method Details
#dispose ⇒ Object
227 |
# File 'lib/fzeet/windows/user/Menu.rb', line 227 def dispose; Windows.DestroyMenu(@handle); rdetach end |