Searched refs:buf_info (Results 1 – 3 of 3) sorted by relevance
219 pub buf_info: ScmBufferInfo, field230 buf_info: ScmBufferInfo::new( in new()242 pub fn buf_info(&self) -> ScmBufferInfo { in buf_info() method243 return self.buf_info.clone(); in buf_info()245 pub fn set_buf_info(&mut self, buf_info: ScmBufferInfo) { in set_buf_info()246 self.buf_info = buf_info; in set_buf_info()312 video_refresh_manager().set_refresh_target(&metadata.buf_info)?; in scm_framework_enable()354 let buf_info = ScmBufferInfo::new(ScmBufferFlag::SCM_BF_DB | ScmBufferFlag::SCM_BF_PIXEL)?; in scm_enable_double_buffer() localVariable358 .set_refresh_target(&buf_info) in scm_enable_double_buffer()366 .change(buf_info)?; in scm_enable_double_buffer()[all …]
79 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()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()432 let mut _binding = textui_framework().metadata.read().buf_info(); in textui_refresh_character()949 AtomicI32::new((metadata.buf_info().height() / TEXTUI_CHAR_HEIGHT) as i32); in new()983 fn change(&self, buf_info: ScmBufferInfo) -> Result<i32, SystemError> { in change()984 let old_buf = textui_framework().metadata.read().buf_info(); in change()986 textui_framework().metadata.write().set_buf_info(buf_info); in change()988 let mut new_buf = textui_framework().metadata.read().buf_info(); in change()
137 pub fn set_refresh_target(&self, buf_info: &ScmBufferInfo) -> Result<(), SystemError> { in set_refresh_target()139 if let ScmBuffer::DoubleBuffer(double_buffer) = &buf_info.buf { in set_refresh_target()