Rust bindings for the Newt console UI library.
Basic components have been implemented, but API is subject to change as development continues further and I become more familiar with Rust as a programming language.
newt-sys
crate to provide library bindings.The get_current()
function for Listbox
and CheckboxTree
now
returns Option
, rather than panic!
ing when there are no entries.
Implemented internal trait Data
that's accepted as an argument for
certain Listbox
and CheckboxTree
functions. Added implementations of
the Data
trait to integer primitives.
Added newt::components::component::Data
tuple struct that implements the
Data
trait. This can be used to wrap references to complex data types.
CheckboxTree::add_item()
indexes parameter is now an Option
.
Copyright (C) 2018 Robert Gill
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA