aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-06-28 20:36:01 -0700
committerJoe Wilm <jwilm@users.noreply.github.com>2017-10-08 22:20:58 -0700
commit6c74c51ceff3ec1af0b3973e373aba6e315beffa (patch)
treeae4d738d6896790b5fa0eb7cdc32204afcd02ee4 /docs
parent65065e06d19216ed5de9b1db952db76a5457492e (diff)
downloadr-alacritty-6c74c51ceff3ec1af0b3973e373aba6e315beffa.tar.gz
r-alacritty-6c74c51ceff3ec1af0b3973e373aba6e315beffa.tar.bz2
r-alacritty-6c74c51ceff3ec1af0b3973e373aba6e315beffa.zip
Extend and improve FcPattern bindings
The fontconfig `FcPattern` type is wrapped as `fc::Pattern` and `fc::Pattern` ref. All methods for accessing data on the pattern now return an `Iterator`. This API turns out to be much more ergonomic than providing an integer index. We also override the default `nth` implementation of `Iterator` on these accessors to allow random (incremental only) access. For instance, accessing `family` attributes from a pattern: let families = pattern.family(); let second = pattern.nth(1); Or printing available styles for style in pattern.style() { println!("style={}", style); }
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions