Lines Matching refs:new
42 static ENABLE_PUT_TO_WINDOW: AtomicBool = AtomicBool::new(false);
76 let metadata = ScmUiFrameworkMetadata::new("TextUI".to_string(), ScmFramworkType::Text); in textui_framwork_init()
83 let initial_window = TextuiWindow::new( in textui_framwork_init()
89 let current_window: Arc<SpinLock<TextuiWindow>> = Arc::new(SpinLock::new(initial_window)); in textui_framwork_init()
95 Arc::new(SpinLock::new(LinkedList::new())); in textui_framwork_init()
99 __TEXTUI_FRAMEWORK = Some(Arc::new(TextUiFramework::new( in textui_framwork_init()
136 pub fn new(num: i32) -> Self { in new() method
151 LineId::new(self.0 + rhs) in add()
158 LineId::new(self.0 - rhs) in sub()
193 pub fn new(num: i32) -> Self { in new() method
204 LineIndex::new(self.0 + rhs.0) in add()
212 LineIndex::new(self.0 + rhs) in add()
219 LineIndex::new(self.0 - rhs) in sub()
242 pub const BLUE: FontColor = FontColor::new(0, 0, 0xff);
243 pub const RED: FontColor = FontColor::new(0xff, 0, 0);
244 pub const GREEN: FontColor = FontColor::new(0, 0xff, 0);
245 pub const WHITE: FontColor = FontColor::new(0xff, 0xff, 0xff);
246 pub const BLACK: FontColor = FontColor::new(0, 0, 0);
247 pub const YELLOW: FontColor = FontColor::new(0xff, 0xff, 0);
248 pub const ORANGE: FontColor = FontColor::new(0xff, 0x80, 0);
249 pub const INDIGO: FontColor = FontColor::new(0x00, 0xff, 0xff);
250 pub const PURPLE: FontColor = FontColor::new(0x80, 0x00, 0xff);
252 pub const fn new(r: u8, g: u8, b: u8) -> Self { in new() method
304 pub fn new(buf: &mut ScmBufferInfo) -> TextuiBuf { in new() method
377 pub fn new(c: Option<char>, frcolor: FontColor, bkcolor: FontColor) -> Self { in new() method
402 let mut buf = TextuiBuf::new(&mut _binding); in textui_refresh_character()
488 pub fn new(char_num: usize) -> Self { in new() method
491 index: LineIndex::new(0), in new()
495 r.chars.push(TextuiCharChromatic::new( in new()
516 pub fn new() -> Self { in new() method
517 static MAX_ID: AtomicU32 = AtomicU32::new(0); in new()
550 pub fn new(flags: WindowFlag, vlines_num: i32, chars_num: i32) -> Self { in new() method
551 let mut initial_vlines = Vec::new(); in new()
554 let vline = TextuiVlineChromatic::new(chars_num as usize); in new()
559 id: WindowId::new(), in new()
563 top_vline: LineId::new(0), in new()
565 vline_operating: LineId::new(0), in new()
630 LineIndex::new(0), in textui_refresh_vline()
645 self.textui_refresh_vline(LineId::new(i))?; in textui_refresh_vlines()
651 self.textui_refresh_vline(LineId::new(refresh_start))?; in textui_refresh_vlines()
669 self.vline_operating = LineId::new(0); in textui_new_line()
682 vline.index = LineIndex::new(0); in textui_new_line()
690 self.top_vline = LineId::new(0); in textui_new_line()
716 let mut line_index = LineIndex::new(0); //操作的列号 in true_textui_putchar_window()
829 vline.index = LineIndex::new(0); in textui_putchar_window()
880 top_vline: LineId::new(0), in default()
881 vlines: Vec::new(), in default()
882 vline_operating: LineId::new(0), in default()
898 pub fn new( in new() method
905 AtomicI32::new((&metadata.buf_info().height() / TEXTUI_CHAR_HEIGHT) as i32); in new()
907 metadata: RwLock::new(metadata), in new()