Class: Raylib::FilePathList
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Raylib::FilePathList
- Defined in:
- lib/raylib/core/structs/file_path_list.rb
Overview
File path list
Class Method Summary collapse
Instance Method Summary collapse
-
#capacity ⇒ Integer
Filepaths max entries.
-
#capacity=(new_capacity) ⇒ Object
Sets Filepaths max entries.
-
#count ⇒ Integer
Filepaths entries count.
-
#count=(new_count) ⇒ Object
Sets Filepaths entries count.
-
#paths ⇒ Array<String>
Filepaths entries.
-
#paths=(new_paths) ⇒ Object
Sets Filepaths entries.
- #to_s ⇒ Object
Class Method Details
.create(capacity, count, paths) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/raylib/core/structs/file_path_list.rb', line 10 def self.create(capacity, count, paths) new.tap do |instance| instance[:capacity] = capacity instance[:count] = count instance[:paths] = paths end end |
Instance Method Details
#capacity ⇒ Integer
Filepaths max entries
24 |
# File 'lib/raylib/core/structs/file_path_list.rb', line 24 def capacity = self[:capacity] |
#capacity=(new_capacity) ⇒ Object
Sets Filepaths max entries
27 28 29 |
# File 'lib/raylib/core/structs/file_path_list.rb', line 27 def capacity=(new_capacity) self[:capacity] = new_capacity end |
#count ⇒ Integer
Filepaths entries count
33 |
# File 'lib/raylib/core/structs/file_path_list.rb', line 33 def count = self[:count] |
#count=(new_count) ⇒ Object
Sets Filepaths entries count
36 37 38 |
# File 'lib/raylib/core/structs/file_path_list.rb', line 36 def count=(new_count) self[:count] = new_count end |
#paths ⇒ Array<String>
Filepaths entries
42 43 44 |
# File 'lib/raylib/core/structs/file_path_list.rb', line 42 def paths self[:paths].get_array_of_string(0, count) end |
#paths=(new_paths) ⇒ Object
Sets Filepaths entries
47 48 49 |
# File 'lib/raylib/core/structs/file_path_list.rb', line 47 def paths=(new_paths) self[:paths] = new_paths end |
#to_s ⇒ Object
18 19 20 |
# File 'lib/raylib/core/structs/file_path_list.rb', line 18 def to_s "Raylib::FilePathList##{object_id} capacity=#{capacity} count=#{count} paths=#{paths}" end |