gtk_liststore_item
Automatic gtk::ListStore
struct derive for Rust.
Usage
In order to use this crate, you have to add the following dependencies into
your project's Cargo.toml
file:
[]
= "1.0.1"
Example
After the crate is installed, you can enjoy the ListStoreItem
derive!
use *;
use Gladis;
use ListStoreItem;
const GLADE_SRC: &str = r#"
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.22.2 -->
<interface>
<requires lib="gtk+" version="3.20"/>
<object class="GtkListStore" id="list_store">
<columns>
<!-- column-name name -->
<column type="gchararray"/>
<!-- column-name value -->
<column type="guint"/>
</columns>
</object>
</interface>
"#;
Without this crate, you would have to manually serialize each of the entries in your struct with their type and position:
This can become pretty boring, hence this crate to ease the process.
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.