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()
192 pub fn new(num: i32) -> Self { in new() method
203 LineIndex::new(self.0 + rhs.0) in add()
211 LineIndex::new(self.0 + rhs) in add()
218 LineIndex::new(self.0 - rhs) in sub()
241 pub const BLUE: FontColor = FontColor::new(0, 0, 0xff);
242 pub const RED: FontColor = FontColor::new(0xff, 0, 0);
243 pub const GREEN: FontColor = FontColor::new(0, 0xff, 0);
244 pub const WHITE: FontColor = FontColor::new(0xff, 0xff, 0xff);
245 pub const BLACK: FontColor = FontColor::new(0, 0, 0);
246 pub const YELLOW: FontColor = FontColor::new(0xff, 0xff, 0);
247 pub const ORANGE: FontColor = FontColor::new(0xff, 0x80, 0);
248 pub const INDIGO: FontColor = FontColor::new(0x00, 0xff, 0xff);
249 pub const PURPLE: FontColor = FontColor::new(0x80, 0x00, 0xff);
251 pub const fn new(r: u8, g: u8, b: u8) -> Self { in new() method
306 pub fn new(buf: &mut ScmBufferInfo) -> TextuiBuf { in new() method
409 pub fn new(c: Option<char>, frcolor: FontColor, bkcolor: FontColor) -> Self { in new() method
434 let mut buf = TextuiBuf::new(&mut _binding); in textui_refresh_character()
537 pub fn new(char_num: usize) -> Self { in new() method
540 index: LineIndex::new(0), in new()
544 r.chars.push(TextuiCharChromatic::new( in new()
565 pub fn new() -> Self { in new() method
566 static MAX_ID: AtomicU32 = AtomicU32::new(0); in new()
599 pub fn new(flags: WindowFlag, vlines_num: i32, chars_num: i32) -> Self { in new() method
600 let mut initial_vlines = Vec::new(); in new()
603 let vline = TextuiVlineChromatic::new(chars_num as usize); in new()
608 id: WindowId::new(), in new()
612 top_vline: LineId::new(0), in new()
614 vline_operating: LineId::new(0), in new()
678 LineIndex::new(0), in textui_refresh_vline()
693 self.textui_refresh_vline(LineId::new(i))?; in textui_refresh_vlines()
699 self.textui_refresh_vline(LineId::new(refresh_start))?; in textui_refresh_vlines()
716 self.vline_operating = LineId::new(0); in textui_new_line()
729 vline.index = LineIndex::new(0); in textui_new_line()
737 self.top_vline = LineId::new(0); in textui_new_line()
762 let mut line_index = LineIndex::new(0); //操作的列号 in true_textui_putchar_window()
875 vline.index = LineIndex::new(0); in textui_putchar_window()
924 top_vline: LineId::new(0), in default()
925 vlines: Vec::new(), in default()
926 vline_operating: LineId::new(0), in default()
942 pub fn new( in new() method
949 AtomicI32::new((metadata.buf_info().height() / TEXTUI_CHAR_HEIGHT) as i32); in new()
951 metadata: RwLock::new(metadata), in new()