#[allow(clippy::wildcard_imports)]
use super::*;
impl<'a> BlobTextureDraft<'a> {
#[must_use]
pub fn new(raster_format: &'a str, raster_code: &'a str) -> Self {
Self {
repeat_s: false,
repeat_t: false,
mode: None,
texture_transform: None,
parameter: &[],
raster_format,
raster_code,
}
}
#[must_use]
pub fn repeat_s(mut self, value: bool) -> Self {
self.repeat_s = value;
self
}
#[must_use]
pub fn repeat_t(mut self, value: bool) -> Self {
self.repeat_t = value;
self
}
#[must_use]
pub fn mode(mut self, value: &'a str) -> Self {
self.mode = Some(value);
self
}
#[must_use]
pub fn texture_transform(mut self, value: EntityId) -> Self {
self.texture_transform = Some(value);
self
}
#[must_use]
pub fn parameter(mut self, value: &'a [&'a str]) -> Self {
self.parameter = value;
self
}
}
impl<'a> TextModelDraft<'a> {
#[must_use]
pub fn new() -> Self {
Self::default()
}
#[must_use]
pub fn text_indent(mut self, value: SizeValue<'a>) -> Self {
self.text_indent = Some(value);
self
}
#[must_use]
pub fn text_align(mut self, value: &'a str) -> Self {
self.text_align = Some(value);
self
}
#[must_use]
pub fn text_decoration(mut self, value: &'a str) -> Self {
self.text_decoration = Some(value);
self
}
#[must_use]
pub fn letter_spacing(mut self, value: SizeValue<'a>) -> Self {
self.letter_spacing = Some(value);
self
}
#[must_use]
pub fn word_spacing(mut self, value: SizeValue<'a>) -> Self {
self.word_spacing = Some(value);
self
}
#[must_use]
pub fn text_transform(mut self, value: &'a str) -> Self {
self.text_transform = Some(value);
self
}
#[must_use]
pub fn line_height(mut self, value: SizeValue<'a>) -> Self {
self.line_height = Some(value);
self
}
}