ImVec2

Type Alias ImVec2 

Source
pub type ImVec2 = ImVec2_c;

Aliased Type§

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

Fields§

§x: f32§y: f32

Implementations§

Source§

impl ImVec2

Source

pub const fn new(x: f32, y: f32) -> ImVec2

Source

pub const fn zero() -> ImVec2

Trait Implementations§

Source§

impl From<[f32; 2]> for ImVec2

Source§

fn from(array: [f32; 2]) -> ImVec2

Converts to this type from the input type.
Source§

impl From<(f32, f32)> for ImVec2

Source§

fn from((x, y): (f32, f32)) -> ImVec2

Converts to this type from the input type.
Source§

impl From<Vector2<f32>> for ImVec2

Source§

fn from(v: Vector2<f32>) -> ImVec2

Converts to this type from the input type.