Skip to content

Commit ab005e2

Browse files
authored
Merge pull request #682 from kas-gui/push-lytuxqxptqmx
Add struct `kas::text::ConfiguredDisplay`; replace trait Editor with struct
2 parents 625251b + a8195f9 commit ab005e2

File tree

30 files changed

+1106
-906
lines changed

30 files changed

+1106
-906
lines changed

crates/kas-core/src/draw/draw.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ impl<'a, DS: DrawSharedImpl> DrawIface<'a, DS> {
127127
/// Text is drawn from `pos` and clipped to `bounding_box`.
128128
///
129129
/// The `text` display must be prepared prior to calling this method.
130-
/// Typically this is done using a [`crate::theme::Text`] object.
130+
/// Typically this is done using a [`crate::text::Text`] object.
131131
pub fn text_with_color(
132132
&mut self,
133133
pos: Vec2,
@@ -263,7 +263,7 @@ pub trait Draw {
263263
/// Text is drawn from `pos` and clipped to `bounding_box`.
264264
///
265265
/// The `text` display must be prepared prior to calling this method.
266-
/// Typically this is done using a [`crate::theme::Text`] object.
266+
/// Typically this is done using a [`crate::text::Text`] object.
267267
fn text(
268268
&mut self,
269269
pos: Vec2,
@@ -280,7 +280,7 @@ pub trait Draw {
280280
/// Draw text decorations (e.g. underlines)
281281
///
282282
/// The `text` display must be prepared prior to calling this method.
283-
/// Typically this is done using a [`crate::theme::Text`] object.
283+
/// Typically this is done using a [`crate::text::Text`] object.
284284
fn decorate_text(
285285
&mut self,
286286
pos: Vec2,

crates/kas-core/src/draw/draw_shared.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ pub trait DrawSharedImpl: Any {
193193
/// Text is drawn from `pos` and clipped to `bounding_box`.
194194
///
195195
/// The `text` display must be prepared prior to calling this method.
196-
/// Typically this is done using a [`crate::theme::Text`] object.
196+
/// Typically this is done using a [`crate::text::Text`] object.
197197
fn draw_text(
198198
&mut self,
199199
draw: &mut Self::Draw,
@@ -208,7 +208,7 @@ pub trait DrawSharedImpl: Any {
208208
/// Draw text decorations (e.g. underlines)
209209
///
210210
/// The `text` display must be prepared prior to calling this method.
211-
/// Typically this is done using a [`crate::theme::Text`] object.
211+
/// Typically this is done using a [`crate::text::Text`] object.
212212
fn decorate_text(
213213
&mut self,
214214
draw: &mut Self::Draw,

0 commit comments

Comments
 (0)