struct ImGui::ImVector(T)

Overview

struct ImVector

Included Modules

Defined in:

custom.cr
obj.cr
types.cr

Constructors

Instance Method Summary

Instance methods inherited from module ImGui::StructType

to_unsafe to_unsafe

Constructor Detail

def self.new(size, capacity, data) #

[View source]

Instance Method Detail

def capacity : Int32 #

[View source]
def size : Int32 #
Description copied from module Indexable(T)

Returns the number of elements in this container.


[View source]
def to_unsafe : Pointer(T) #

[View source]
def unsafe_fetch(index : Int) #
Description copied from module Indexable(T)

Returns the element at the given index, without doing any bounds check.

Indexable makes sure to invoke this method with index in 0...size, so converting negative indices to positive ones is not needed here.

Clients never invoke this method directly. Instead, they access elements with #[](index) and #[]?(index).

This method should only be directly invoked if you are absolutely sure the index is in bounds, to avoid a bounds check for a small boost of performance.


[View source]