Struct iup::image::ImageRgba [] [src]

pub struct ImageRgba(_);

A four-channel image to be shown on a label, button, toggle, or as a cursor.

See the IUP Image Documentation.

Trait Implementations

impl ImageElement for ImageRgba

type Pixel = (u8, u8, u8, u8)

fn new<U>(width: u32, height: u32, pixels: U) -> ImageRgba where U: AsRef<[(u8, u8, u8, u8)]>

fn with<'a>(pixels: InPixels<'a, Self::Pixel>) -> Self

impl Element for ImageRgba

fn raw(&self) -> *mut Ihandle

unsafe fn from_raw_unchecked(ih: *mut Ihandle) -> Self

unsafe fn target_classname() -> &'static str

fn from_handle(handle: Handle) -> Result<Self, Handle>

fn from_name<S: Into<String>>(name: S) -> Option<Handle>

fn from_raw(ih: *mut Ihandle) -> Self

unsafe fn classname(&self) -> &CStr

fn destroy(self)

fn does_attrib_exist(&self, cname: &CString) -> bool

fn attribs(&self) -> Vec<String>

fn set_attrib<S1, S2>(&mut self, name: S1, value: S2) -> Self where S1: Into<String>, S2: Into<String>

fn attrib<S: Into<String>>(&self, name: S) -> Option<String>

fn set_attrib_data<S1>(&mut self, name: S1, data: *const c_void) -> Self where S1: Into<String>

fn attrib_data<S1>(&mut self, name: S1) -> *mut c_void where S1: Into<String>

fn set_attrib_handle<S1, E>(&mut self, name: S1, elem: E) -> Self where S1: Into<String>, E: Element

fn attrib_handle<S1>(&mut self, name: S1) -> Option<Handle> where S1: Into<String>

fn clear_attrib<S: Into<String>>(&mut self, name: S) -> Self

fn reset_attrib<S: Into<String>>(&mut self, name: S) -> Self

fn handle_name(&self) -> Option<String>

fn add_handle_name<S: Into<String>>(&self, name: S) -> Option<Handle>

fn clear_handle_name<S: Into<String>>(name: S) -> Option<Handle>

impl Debug for ImageRgba

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

impl Copy for ImageRgba

impl Clone for ImageRgba

fn clone(&self) -> ImageRgba

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

impl DestroyCb for ImageRgba

fn set_destroy_cb<F>(&mut self, cb: F) -> Self where F: Callback<(Self,)>

fn remove_destroy_cb(&mut self) -> Option<Box<Callback<(Self,)>>>