Struct imgui_sys::ImVec4 [] [src]

pub struct ImVec4 {
    pub x: c_float,
    pub y: c_float,
    pub z: c_float,
    pub w: c_float,
}

Fields

x: c_float y: c_float z: c_float w: c_float

Methods

impl ImVec4
[src]

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

Trait Implementations

impl Default for ImVec4
[src]

fn default() -> ImVec4

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

impl Debug for ImVec4
[src]

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

Formats the value using the given formatter.

impl Clone for ImVec4
[src]

fn clone(&self) -> ImVec4

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 ImVec4
[src]

impl From<[f32; 4]> for ImVec4
[src]

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

Performs the conversion.

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

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

Performs the conversion.

impl Attribute for ImVec4
[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.