ImVec4

Type Alias ImVec4 

Source
pub type ImVec4 = ImVec4_c;

Aliased Type§

#[repr(C)]
pub struct ImVec4 { pub x: f32, pub y: f32, pub z: f32, pub w: f32, }

Fields§

§x: f32§y: f32§z: f32§w: f32

Implementations§

Source§

impl ImVec4

Source

pub const fn new(x: f32, y: f32, z: f32, w: f32) -> ImVec4

Source

pub const fn zero() -> ImVec4

Trait Implementations§

Source§

impl From<[f32; 4]> for ImVec4

Source§

fn from(array: [f32; 4]) -> ImVec4

Converts to this type from the input type.
Source§

impl From<(f32, f32, f32, f32)> for ImVec4

Source§

fn from((x, y, z, w): (f32, f32, f32, f32)) -> ImVec4

Converts to this type from the input type.
Source§

impl From<Vector4<f32>> for ImVec4

Source§

fn from(v: Vector4<f32>) -> ImVec4

Converts to this type from the input type.