pub struct AutomationEventList(/* private fields */);Implementations§
Source§impl AutomationEventList
impl AutomationEventList
Sourcepub unsafe fn unwrap(self) -> AutomationEventList
pub unsafe fn unwrap(self) -> AutomationEventList
Take the raw ffi type. Must manually free memory by calling the proper unload function
§Safety
The caller is responsible for freeing the returned value by calling the appropriate raylib unload function. Failure to do so will leak resources.
Source§impl AutomationEventList
impl AutomationEventList
Sourcepub fn to_raw(self) -> AutomationEventList
pub fn to_raw(self) -> AutomationEventList
returns the unwrapped raylib-sys object
Sourcepub unsafe fn from_raw(raw: AutomationEventList) -> Self
pub unsafe fn from_raw(raw: AutomationEventList) -> Self
converts raylib-sys object to a “safe” version. Make sure to call this function from the thread the resource was created.
§Safety
The caller must ensure raw is a valid, fully initialized raylib object
obtained from a raylib load function. Ownership is transferred to the
returned wrapper, which will call the appropriate unload function on drop.
Source§impl AutomationEventList
impl AutomationEventList
Sourcepub const fn capacity(&self) -> u32
pub const fn capacity(&self) -> u32
The amount of automation events that can be held in this list.
Sourcepub fn events(&self) -> Vec<AutomationEvent>
pub fn events(&self) -> Vec<AutomationEvent>
The events held in this list. NOTE: This will copy the values into a vector.
Sourcepub fn iter(&self) -> AutomationEventIter<'_> ⓘ
pub fn iter(&self) -> AutomationEventIter<'_> ⓘ
An iterator over the events held in this list.