Label for CowString

This commit is contained in:
Jonathan Johnson 2024-01-13 06:02:22 -08:00
parent 0c36abf28e
commit 1b97b39857
No known key found for this signature in database
GPG key ID: A66D6A34D6620579

View file

@ -7,6 +7,7 @@ use figures::{Point, Round, Size};
use kludgine::text::{MeasuredText, Text, TextOrigin};
use kludgine::{CanRenderTo, Color, DrawableExt};
use super::input::CowString;
use crate::context::{GraphicsContext, LayoutContext, Trackable};
use crate::styles::components::TextColor;
use crate::value::{Dynamic, Generation, IntoReadOnly, ReadOnly, Value};
@ -125,6 +126,7 @@ macro_rules! impl_make_widget {
impl_make_widget!(
&'_ str => String,
String => String,
CowString => CowString,
Dynamic<String> => String,
Dynamic<&'static str> => &'static str,
Value<String> => String,