Repository Details
Shared by
HelloGitHub Rating
0 ratings
Free•MPL-2.0
Claim
Discuss
Collect
Share
5.9k
Stars
No
Chinese
Rust
Language
Yes
Active
38
Contributors
51
Issues
No
Organization
None
Latest
219
Forks
MPL-2.0
License
More
一个跨平台的 Rust 和 C/C++ 的 GUI 框架。使用 WebRender 渲染引擎和 CSS/HTML-like DOM 构建,可用于开发漂亮的原生桌面应用程序
```rust
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
use azul::prelude::*;
use azul_widgets::table_view::*;
struct TableDemo {
// cells: BTreeMap<TableCell, String>,
}
extern "C" fn layout(data: &mut RefAny, _: LayoutCallbackInfo) -> StyledDom {
let mut table_view_state = TableViewState::default();
table_view_state.set_cell_content(TableCellIndex { row: 2, column: 2 }, "Hello World");
table_view_state.set_selection(Some(TableCellSelection::from(3, 4).to(3, 4)));
TableView::new(table_view_state).dom().style(Css::empty())
}
fn main() {
let app = App::new(RefAny::new(TableDemo { }), AppConfig::new(LayoutSolver::Default));
app.run(WindowCreateOptions::new(layout));
}
```
Comments
Rating:
No comments yet