Commit Graph

61 Commits (1e69b48bbd05e0db1d53261bcf240f4a5d3e7652)

Author SHA1 Message Date
joseLuís 08b000de28 rust: remove no_std; fix #1119 4 years ago
joseLuís 08a0da358e rust: continue reworking the API & improve documentation
- remove _IO_FILE import and usage.
- create handy constructors for NcDirect & Notcurses.
  (but can't implement destructors for copy types…).
- when possible substitute mutable pointers `*mut` for mutable references `&mut`
  with associated lifetimes.
- new widgets module, starting with NcReader & NcReaderOptions constructors
4 years ago
joseLuís 4673a86ea2 rust: API refactor & improve documentation
- rename EGC to Egc, EGCBackstop to EgcBackstop and ChannelPair to Channels.
- make the original type aliased structs non-public (e.g. ncdirect, ncalign…)
- fix and improve documentation for several types.
- revert renaming crate to nc on use.
- directly import the used types at the beginning of the module.

Now the rustdoc generated documentation is much cleaner.
4 years ago
joseLuís d59d05990b rust: direct mode changes
- rename ncdirect_start to ncdirect_new
- add direct mode option flags
- fix examples
- refactor comments
4 years ago
joseLuís bcc5481899 rust: update example
- use ncdirect_flush function for flushing
4 years ago
joseLuís a09ed747ca rust: update example direct-cursor 4 years ago
joseLuís ed748a5162 rust: new example: direct cursor
issue: only updates the screen after a newline
4 years ago
joseLuís 9dc847c8b5 rust: add simple wrapper over ncdirect_init 4 years ago
joseLuís 4382487652 rust: update example 4 years ago
joseLuís d9596883d3 rust: make examples no_std compatible too 4 years ago
joseLuís e22232774d rust: add direct-image example 4 years ago