/DragonOS/kernel/src/libs/lib_ui/font/ |
H A D | mod.rs | 33 bytes_per_char: (size.width + 7) / 8 * size.height, in new() 37 pub const fn width(&self) -> u32 { in width() method 38 self.size.width as u32 in width() 58 pub width: usize, field 63 pub const fn new(width: usize, height: usize) -> Self { in new() 64 Self { width, height } in new() 76 pub const fn new(data: &'static [u8], width: usize) -> Self { in new() 78 width: 128, in new() 79 height: data.len() / width / 8, in new()
|
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/ |
H A D | framebuffer_console.rs | 137 let image_line_byte = image.width as usize / 8; in bit_put_string() 139 let byte_width = vc_data.font.width as usize / 8; in bit_put_string() 203 vc_data.font.width = font.width; in con_init() 225 vc_data.cols = (fb.current_fb_var().xres / vc_data.font.width) as usize; in con_init() 252 width: usize, in con_clear() 256 if height == 0 || width == 0 { in con_clear() 269 width as u32, in con_clear() 276 width as u32, in con_clear() 284 width as u32, in con_clear() 574 width: u32, in bmove() [all …]
|
H A D | mod.rs | 387 width: u32, in bmove() 403 width: u32, in clear() 480 let width = (vc_data.font.width + 7) / 8; in update_attr() localVariable 481 let cellsize = (vc_data.font.height * width) as usize; in update_attr() 484 offset = cellsize - (offset * width as usize); in update_attr()
|
/DragonOS/kernel/src/libs/lib_ui/ |
H A D | textui_no_alloc.rs | 26 let width = video_refresh_manager().device_buffer().width(); in textui_init_no_alloc() localVariable 29 CHAR_PER_LINE.store((width / TEXTUI_CHAR_WIDTH) as i32, Ordering::SeqCst); in textui_init_no_alloc()
|
H A D | screen_manager.rs | 58 width: u32, // 帧缓冲区宽度(pixel或columns) field 101 width: device_buffer_guard.width, in new() 120 width: u32, in new_device_buffer() 130 width, in new_device_buffer() 153 pub fn width(&self) -> u32 { in width() method 154 self.width in width()
|
H A D | textui.rs | 81 let chars_num = (metadata.buf_info().width() / TEXTUI_CHAR_WIDTH) as usize; in textui_framwork_init() 371 textui_framework().metadata.read().buf_info().width() as usize + now_index in get_index_of_next_line() 374 textui_framework().metadata.read().buf_info().width() as usize * y + x in get_index_by_x_y() 401 pub fn is_frcolor(&self, height: usize, width: usize) -> bool { in is_frcolor() 403 let testbit = 1 << (8 - width); in is_frcolor() 467 let buf_width = video_refresh_manager().device_buffer().width(); in no_init_textui_render_chromatic()
|
/DragonOS/kernel/src/arch/x86_64/init/ |
H A D | multiboot2.rs | 106 let width = fb_tag.width(); in early_init_framebuffer_info() localVariable 115 scinfo.lfb_width = width; in early_init_framebuffer_info() 127 scinfo.origin_video_cols = width as u8; in early_init_framebuffer_info() 134 scinfo.lfb_size = (width * height * ((scinfo.lfb_depth as u32 + 7) / 8)) as usize; in early_init_framebuffer_info()
|
/DragonOS/kernel/src/libs/font/font_type/ |
H A D | vga8x16.rs | 6 width: 8,
|
H A D | vga8x8.rs | 7 width: 8,
|
/DragonOS/kernel/src/driver/video/fbdev/base/ |
H A D | mod.rs | 106 && image.width & (32 / bit_per_pixel - 1) == 0 in generic_imageblit() 129 let spitch = (image.width + 7) / 8; in fast_imageblit() 150 let k = image.width / ppw; in fast_imageblit() 237 _image.width, in slow_imageblit() 487 pub width: u32, field 498 pub fn new(dx: u32, dy: u32, width: u32, height: u32, color: u32, rop: FillRectROP) -> Self { in new() 502 width, in new() 530 pub width: u32, field 541 pub fn new(dx: i32, dy: i32, width: u32, height: u32, sx: i32, sy: i32) -> Self { in new() 545 width, in new() [all …]
|
/DragonOS/kernel/src/driver/video/fbdev/ |
H A D | vesafb.rs | 63 width: None, 408 for x in rect.dx..(rect.dx + rect.width) { in fb_fillrect() 417 for x in rect.dx..(rect.dx + rect.width) { in fb_fillrect() 426 for x in rect.dx..(rect.dx + rect.width) { in fb_fillrect() 453 || (data.sx + data.width as i32) < 0 in fb_copyarea() 455 || (data.dx + data.width as i32) < 0 in fb_copyarea() 463 (0, (data.width - ((-data.sx) as u32)).min(var.xres)) in fb_copyarea() 465 let w = if data.sx as u32 + data.width > var.xres { in fb_copyarea() 468 data.width in fb_copyarea() 486 (0, (data.width - ((-data.dx) as u32)).min(var.xres)) in fb_copyarea() [all …]
|
/DragonOS/kernel/src/driver/tty/ |
H A D | mod.rs | 36 pub width: u32, field
|
H A D | console.rs | 37 width: usize, in con_clear()
|
/DragonOS/kernel/src/libs/font/ |
H A D | mod.rs | 9 pub width: u32, field
|
/DragonOS/ |
H A D | README.md | 2 <img width="40%" src="docs/_static/dragonos-logo.svg" alt="dragonos-logo"></br>
|
H A D | README_EN.md | 2 <img width="40%" src="docs/_static/dragonos-logo.svg" alt="dragonos-logo"></br>
|
/DragonOS/kernel/src/driver/tty/virtual_terminal/ |
H A D | virtual_console.rs | 1539 let mut width = 1; in console_write_normal() localVariable 1543 width = 2; in console_write_normal() 1619 width -= 1; in console_write_normal() 1620 if width <= 0 { in console_write_normal()
|