Home
last modified time | relevance | path

Searched refs:buf_info (Results 1 – 3 of 3) sorted by relevance

/DragonOS-0.1.9/kernel/src/libs/lib_ui/
Dscreen_manager.rs213 pub buf_info: ScmBufferInfo, field
224 buf_info: ScmBufferInfo::new( in new()
236 pub fn buf_info(&self) -> ScmBufferInfo { in buf_info() method
237 return self.buf_info.clone(); in buf_info()
239 pub fn set_buf_info(&mut self, buf_info: ScmBufferInfo) { in set_buf_info()
240 self.buf_info = buf_info; in set_buf_info()
305 video_refresh_manager().set_refresh_target(&metadata.buf_info)?; in scm_framework_enable()
347 let buf_info = ScmBufferInfo::new(ScmBufferFlag::SCM_BF_DB | ScmBufferFlag::SCM_BF_PIXEL)?; in scm_enable_double_buffer() localVariable
351 .set_refresh_target(&buf_info) in scm_enable_double_buffer()
359 .change(buf_info)?; in scm_enable_double_buffer()
[all …]
Dtextui.rs79 let vlines_num = (metadata.buf_info().height() / TEXTUI_CHAR_HEIGHT) as usize; in textui_framwork_init()
81 let chars_num = (metadata.buf_info().width() / TEXTUI_CHAR_WIDTH) as usize; in textui_framwork_init()
340 textui_framework().metadata.read().buf_info().width() as usize + now_index in get_index_of_next_line()
343 textui_framework().metadata.read().buf_info().width() as usize * y + x in get_index_by_x_y()
400 let mut _binding = textui_framework().metadata.read().buf_info(); in textui_refresh_character()
905 AtomicI32::new((&metadata.buf_info().height() / TEXTUI_CHAR_HEIGHT) as i32); in new()
939 fn change(&self, buf_info: ScmBufferInfo) -> Result<i32, SystemError> { in change()
940 let old_buf = textui_framework().metadata.read().buf_info(); in change()
942 textui_framework().metadata.write().set_buf_info(buf_info); in change()
944 let mut new_buf = textui_framework().metadata.read().buf_info(); in change()
/DragonOS-0.1.9/kernel/src/driver/video/
Dmod.rs147 pub fn set_refresh_target(&self, buf_info: &ScmBufferInfo) -> Result<(), SystemError> { in set_refresh_target()
149 if let ScmBuffer::DoubleBuffer(double_buffer) = &buf_info.buf { in set_refresh_target()