Lines Matching refs:data
28 fn data(&self) -> &[Color]; in data() method
53 let data = self.data_mut(); in pixel() localVariable
56 let new_color = color.data; in pixel()
58 let old_color = &mut data[y as usize * w as usize + x as usize].data; in pixel()
113 fn image(&mut self, start_x: i32, start_y: i32, w: u32, h: u32, data: &[Color]) { in image()
115 RenderMode::Blend => self.image_fast(start_x, start_y, w, h, data), in image()
116 RenderMode::Overwrite => self.image_opaque(start_x, start_y, w, h, data), in image()
201 let new = image_data[i].data; in image_fast()
204 let old = &mut window_data[start + k].data; in image_fast()
471 let alpha = (color.data >> 24) & 0xFF; in rect()
474 let data = self.data_mut(); in rect() localVariable
475 let data_ptr = data.as_mut_ptr(); in rect()
500 let data = self.data_mut(); in set() localVariable
501 let data_ptr = data.as_mut_ptr(); in set()
502 for i in 0..data.len() as isize { in set()
526 if p >= self.data().len() { in get_pixel()
530 return self.data()[p]; in get_pixel()