Skip to content

Commit f4a89da

Browse files
committed
[cg] Add text module
1 parent ce9ec4e commit f4a89da

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

piet-coregraphics/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
//! The CoreGraphics backend for the Piet 2D graphics abstraction.
22
3+
mod text;
4+
35
use std::borrow::Cow;
46
use std::sync::Arc;
57

@@ -20,6 +22,8 @@ use piet::{
2022
StrokeStyle, Text, TextLayout, TextLayoutBuilder,
2123
};
2224

25+
pub use crate::text::{CoreGraphicsText, CoreGraphicsFont, CoreGraphicsFontBuilder, CoreGraphicsTextLayout, CoreGraphicsTextLayoutBuilder};
26+
2327
pub struct CoreGraphicsContext<'a> {
2428
// Cairo has this as Clone and with &self methods, but we do this to avoid
2529
// concurrency problems.

piet-coregraphics/src/text.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//! Text related stuff for the coregraphics backend
2+
3+
pub struct CoreGraphicsFont;
4+
5+
pub struct CoreGraphicsFontBuilder;
6+
7+
#[derive(Clone)]
8+
pub struct CoreGraphicsTextLayout;
9+
10+
pub struct CoreGraphicsTextLayoutBuilder {}
11+
12+
pub struct CoreGraphicsText;

0 commit comments

Comments
 (0)