1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -04:00

Enable colored text (and other misc fixes)

This commit is contained in:
Emil Ernerfeldt
2019-01-16 09:28:43 -06:00
parent 4dab7a1504
commit 7f83876005
9 changed files with 104 additions and 82 deletions

View File

@@ -120,13 +120,12 @@ pub enum GuiCmd {
min: f32,
value: f32,
},
/// Paint a single line of mono-space text.
/// The text should start at the given position and flow to the right.
/// The text should be vertically centered at the given position.
/// A string of text with a position for each character.
Text {
color: Option<Color>,
pos: Vec2,
text_style: TextStyle,
text: String,
text_style: TextStyle,
/// Start each character in the text, as offset from pos.
x_offsets: Vec<f32>,
},
@@ -153,9 +152,6 @@ pub enum PaintCmd {
outline: Option<Outline>,
radius: f32,
},
Clear {
fill_color: Color,
},
Line {
points: Vec<Vec2>,
color: Color,