Class: Sigma::BoxSelection
- Inherits:
-
Object
- Object
- Sigma::BoxSelection
- Extended by:
- FFI::Library
- Defined in:
- lib/sigma/box_selection.rb
Instance Attribute Summary collapse
-
#pointer ⇒ Object
Returns the value of attribute pointer.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#pointer ⇒ Object
Returns the value of attribute pointer.
16 17 18 |
# File 'lib/sigma/box_selection.rb', line 16 def pointer @pointer end |
Class Method Details
.create(ergo_boxes:, change_ergo_boxes:) ⇒ Object
18 19 20 21 22 |
# File 'lib/sigma/box_selection.rb', line 18 def self.create(ergo_boxes:, change_ergo_boxes:) pointer = FFI::MemoryPointer.new(:pointer) ergo_lib_box_selection_new(ergo_boxes.pointer, change_ergo_boxes.pointer, pointer) init(pointer) end |
.with_raw_pointer(pointer) ⇒ Object
24 25 26 |
# File 'lib/sigma/box_selection.rb', line 24 def self.with_raw_pointer(pointer) init(pointer) end |
Instance Method Details
#==(bs_two) ⇒ Object
40 41 42 |
# File 'lib/sigma/box_selection.rb', line 40 def ==(bs_two) ergo_lib_box_selection_eq(self.pointer, bs_two.pointer) end |
#get_boxes ⇒ Object
28 29 30 31 32 |
# File 'lib/sigma/box_selection.rb', line 28 def get_boxes pointer = FFI::MemoryPointer.new(:pointer) ergo_lib_box_selection_boxes(self.pointer, pointer) Sigma::ErgoBoxes.with_raw_pointer(pointer) end |
#get_change_boxes ⇒ Object
34 35 36 37 38 |
# File 'lib/sigma/box_selection.rb', line 34 def get_change_boxes pointer = FFI::MemoryPointer.new(:pointer) ergo_lib_box_selection_change(self.pointer, pointer) Sigma::ErgoBoxAssetsDataList.with_raw_pointer(pointer) end |