Class: Raylib::FilePathList

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/raylib/core/structs/file_path_list.rb

Overview

File path list

Class Method Summary collapse

Instance Method Summary collapse

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

#capacityInteger

Filepaths max entries

Returns:

  • (Integer)

    capacity



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

#countInteger

Filepaths entries count

Returns:

  • (Integer)

    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

#pathsArray<String>

Filepaths entries

Returns:

  • (Array<String>)

    paths



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_sObject



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