1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! wedi-widget - 可嵌入的編輯器 Widget
//!
//! 提供可在其他 TUI 應用程式中嵌入的編輯器元件。
//!
//! # 主要類型
//!
//! - [`EditorConfig`] - 編輯器配置選項
//! - [`ScreenLayout`] - 螢幕佈局管理
//! - [`LineLayout`] - 行佈局處理
//!
//! # 使用範例
//!
//! ```rust
//! use wedi_widget::{EditorConfig, ScreenLayout};
//!
//! let config = EditorConfig::new()
//! .with_line_numbers(true)
//! .with_tab_width(4);
//!
//! let layout = ScreenLayout::new(24, 80);
//! ```
// 重新匯出 wedi-core 的主要類型供便利使用
pub use ;
// 重新匯出本地類型
pub use EditorConfig;
pub use ;