Class: Fzeet::Windows::UICollection
- Inherits:
-
Object
- Object
- Fzeet::Windows::UICollection
- Includes:
- Enumerable
- Defined in:
- lib/fzeet/windows/uiribbon.rb
Instance Method Summary collapse
- #add(unknown) ⇒ Object
- #clear ⇒ Object
- #count ⇒ Object (also: #size, #length)
- #each ⇒ Object
- #get(i) ⇒ Object
Instance Method Details
#add(unknown) ⇒ Object
302 |
# File 'lib/fzeet/windows/uiribbon.rb', line 302 def add(unknown) Add(unknown); self end |
#clear ⇒ Object
303 |
# File 'lib/fzeet/windows/uiribbon.rb', line 303 def clear; Clear(); self end |
#count ⇒ Object Also known as: size, length
297 |
# File 'lib/fzeet/windows/uiribbon.rb', line 297 def count; FFI::MemoryPointer.new(:uint) { |pc| GetCount(pc); return pc.get_uint(0) } end |
#each ⇒ Object
305 |
# File 'lib/fzeet/windows/uiribbon.rb', line 305 def each; length.times { |i| yield get(i) }; self end |
#get(i) ⇒ Object
301 |
# File 'lib/fzeet/windows/uiribbon.rb', line 301 def get(i) FFI::MemoryPointer.new(:pointer) { |punk| GetItem(i, punk); return Unknown.new(punk.read_pointer) } end |