Struct imgui_sys::ImVec2 [] [src]

pub struct ImVec2 {
    pub x: c_float,
    pub y: c_float,
}

Fields

x: c_float y: c_float

Methods

impl ImVec2
[src]

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

Trait Implementations

impl PartialEq for ImVec2
[src]

fn eq(&self, __arg_0: &ImVec2) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &ImVec2) -> bool

This method tests for !=.

impl Default for ImVec2
[src]

fn default() -> ImVec2

Returns the "default value" for a type. Read more

impl Debug for ImVec2
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for ImVec2
[src]

fn clone(&self) -> ImVec2

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for ImVec2
[src]

impl From<[f32; 2]> for ImVec2
[src]

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

Performs the conversion.

impl From<(f32, f32)> for ImVec2
[src]

fn from(tuple: (f32, f32)) -> ImVec2

Performs the conversion.

impl Attribute for ImVec2
[src]

fn get_type() -> AttributeType

Get the type of data.

fn is_supported<C>(caps: &C) -> bool where C: CapabilitiesSource

Returns true if the backend supports this type of attribute.