Home
last modified time | relevance | path

Searched refs:color (Results 1 – 13 of 13) sorted by relevance

/StarryEngine/starry_client/src/base/
H A Drenderer.rs4 color::Color,
46 fn pixel(&mut self, x: i32, y: i32, color: Color) { in pixel()
56 let new_color = color.data; in pixel()
85 fn char(&mut self, x: i32, y: i32, c: char, color: Color) { in char()
97 self.pixel(x + col, y + row, color); in char()
224 fn arc(&mut self, x0: i32, y0: i32, radius: i32, parts: u8, color: Color) { in arc()
232 self.rect(x0 - x, y0 + y, x as u32, 1, color); in arc()
235 self.rect(x0, y0 + y, x as u32 + 1, 1, color); in arc()
238 self.rect(x0 - y, y0 + x, y as u32, 1, color); in arc()
241 self.rect(x0, y0 + x, y as u32 + 1, 1, color); in arc()
[all …]
H A Dmod.rs1 pub mod color; module
/StarryEngine/starry_toolkit/src/widgets/
H A Dimage.rs7 use starry_client::base::{color::Color, renderer::Renderer};
35 pub fn new_from_color(width: u32, height: u32, color: Color) -> Arc<Self> { in new_from_color()
39 color, in new_from_color()
76 pub fn set_from_color(&self, color: Color) { in set_from_color()
80 color, in set_from_color()
H A Dlabel.rs8 use starry_client::base::{color::Color, renderer::Renderer};
248 fn set_text_color(&self, color: Color) -> &Self { in set_text_color()
249 self.text_color.set(color); in set_text_color()
/StarryEngine/starry_toolkit/src/base/
H A Dpanel.rs3 color::Color,
103 pub fn new(rect: Rect, title: &str, color: Color) -> Arc<Panel> { in new()
105 Window::new(rect.x, rect.y, rect.width, rect.height, title, color), in new()
258 fn draw_rect_wireframe(renderer: &mut dyn Renderer, rect: Rect, color: Color) { in draw_rect_wireframe()
267 color, in draw_rect_wireframe()
/StarryEngine/starry_server/src/base/
H A Ddisplay.rs1 use starry_client::base::{color::Color, renderer::Renderer};
34 pub fn rect(&mut self, rect: &Rect, color: Color) { in rect()
40 color, in rect()
H A Dimage.rs6 color::Color,
250 pub fn from_color(width: i32, height: i32, color: Color) -> Self { in from_color()
254 vec![color; (width * height) as usize].into_boxed_slice(), in from_color()
/StarryEngine/starry_client/src/
H A Dwindow.rs9 color::Color,
96 pub fn new(x: i32, y: i32, w: u32, h: u32, title: &str, color: Color) -> Self { in new()
107 data_opt: Some(vec![color; (w * h) as usize].into_boxed_slice()), in new()
/StarryEngine/starry_toolkit/src/traits/
H A Dtext.rs1 use starry_client::base::color::Color;
6 fn set_text_color(&self, color: Color) -> &Self; in set_text_color()
/StarryEngine/starry_toolkit/src/
H A Dmain.rs1 use starry_client::base::color::Color;
/StarryEngine/starry_applications/src/asset_manager/code/
H A Dasset_item_list.rs8 use starry_client::base::{color::Color, renderer::Renderer};
H A Dasset_item_grid.rs8 use starry_client::base::{color::Color, renderer::Renderer};
H A Dmod.rs4 use starry_client::base::color::Color;