Struct spreadsheet_ods::format::ValueFormat [−][src]
pub struct ValueFormat { /* fields omitted */ }
Actual textual formatting of values.
Implementations
impl ValueFormat
[src]
impl ValueFormat
[src]pub fn new() -> Self
[src]
New, empty.
pub fn new_with_name<S: Into<String>>(name: S, value_type: ValueType) -> Self
[src]
New, with name.
pub fn format_ref(&self) -> ValueFormatRef
[src]
Returns a reference name for this value format.
pub fn set_name<S: Into<String>>(&mut self, name: S)
[src]
Sets the name.
pub fn name(&self) -> &String
[src]
Returns the name.
pub fn set_country<S: Into<String>>(&mut self, country: S)
[src]
Sets the country.
pub fn country(&self) -> Option<&String>
[src]
Country
pub fn set_language<S: Into<String>>(&mut self, language: S)
[src]
Sets the language.
pub fn language(&self) -> Option<&String>
[src]
Language
pub fn set_script<S: Into<String>>(&mut self, script: S)
[src]
Sets the Script.
pub fn script(&self) -> Option<&String>
[src]
Script
pub fn set_value_type(&mut self, value_type: ValueType)
[src]
Sets the value type.
pub fn value_type(&self) -> ValueType
[src]
Returns the value type.
pub fn set_origin(&mut self, origin: StyleOrigin)
[src]
Sets the origin.
pub fn origin(&self) -> StyleOrigin
[src]
Returns the origin.
pub fn set_styleuse(&mut self, styleuse: StyleUse)
[src]
Style usage.
pub fn styleuse(&self) -> StyleUse
[src]
Returns the usage.
pub fn textstyle(&self) -> &AttrMap2
[src]
Text style attributes.
pub fn textstyle_mut(&mut self) -> &mut AttrMap2
[src]
Text style attributes.
pub fn set_color(&mut self, color: Rgb<u8>)
[src]
Text color
pub fn set_font_name<S: Into<String>>(&mut self, name: S)
[src]
Text font.
pub fn set_font_attr(&mut self, size: Length, bold: bool, italic: bool)
[src]
Combined font attributes.
pub fn set_font_size(&mut self, size: Length)
[src]
Font size.
pub fn set_font_size_percent(&mut self, size: f64)
[src]
Font size as a percentage.
pub fn set_font_italic(&mut self)
[src]
Set to italic.
pub fn set_font_style(&mut self, style: FontStyle)
[src]
Set font style.
pub fn set_font_bold(&mut self)
[src]
Set to bold.
pub fn set_font_weight(&mut self, weight: FontWeight)
[src]
Sets the font weight.
pub fn set_letter_spacing(&mut self, spacing: Length)
[src]
Sets the letter spacing.
pub fn set_letter_spacing_normal(&mut self)
[src]
Sets the letter spacing to normal.
pub fn set_text_shadow(
&mut self,
x_offset: Length,
y_offset: Length,
blur: Option<Length>,
color: Rgb<u8>
)
[src]
&mut self,
x_offset: Length,
y_offset: Length,
blur: Option<Length>,
color: Rgb<u8>
)
Text shadow.
pub fn set_text_position(&mut self, pos: TextPosition)
[src]
Text positioning.
pub fn set_text_transform(&mut self, trans: TextTransform)
[src]
Transforms on the text.
pub fn set_font_relief(&mut self, relief: TextRelief)
[src]
Font style relief.
pub fn set_font_line_through_color(&mut self, color: Rgb<u8>)
[src]
Color
pub fn set_font_line_through_style(&mut self, lstyle: LineStyle)
[src]
Line through
pub fn set_font_line_through_mode(&mut self, lmode: LineMode)
[src]
Line through
pub fn set_font_line_through_type(&mut self, ltype: LineType)
[src]
Line through
pub fn set_font_line_through_text<S: Into<String>>(&mut self, text: S)
[src]
Line through
pub fn set_font_line_through_text_style(&mut self, style_ref: TextStyleRef)
[src]
References a text-style.
pub fn set_font_line_through_width(&mut self, lwidth: LineWidth)
[src]
Line through
pub fn set_font_text_outline(&mut self, outline: bool)
[src]
Outline
pub fn set_font_underline_color(&mut self, color: Rgb<u8>)
[src]
Underlining
pub fn set_font_underline_style(&mut self, lstyle: LineStyle)
[src]
Underlining
pub fn set_font_underline_type(&mut self, ltype: LineType)
[src]
Underlining
pub fn set_font_underline_mode(&mut self, lmode: LineMode)
[src]
Underlining
pub fn set_font_underline_width(&mut self, lwidth: LineWidth)
[src]
Underlining
pub fn set_font_overline_color(&mut self, color: Rgb<u8>)
[src]
Overlining
pub fn set_font_overline_style(&mut self, lstyle: LineStyle)
[src]
Overlining
pub fn set_font_overline_type(&mut self, ltype: LineType)
[src]
Overlining
pub fn set_font_overline_mode(&mut self, lmode: LineMode)
[src]
Overlining
pub fn set_font_overline_width(&mut self, lwidth: LineWidth)
[src]
Overlining
pub fn push_boolean(&mut self)
[src]
Appends a format part.
pub fn push_number(&mut self, decimal: u8, grouping: bool)
[src]
Appends a format part.
pub fn push_number_fix(&mut self, decimal: u8, grouping: bool)
[src]
Appends a format part.
pub fn push_fraction(
&mut self,
denominator: u32,
min_den_digits: u8,
min_int_digits: u8,
min_num_digits: u8,
grouping: bool
)
[src]
&mut self,
denominator: u32,
min_den_digits: u8,
min_int_digits: u8,
min_num_digits: u8,
grouping: bool
)
Appends a format part.
pub fn push_scientific(&mut self, dec_places: u8)
[src]
Appends a format part.
pub fn push_currency<S1, S2, S3>(
&mut self,
country: S1,
language: S2,
symbol: S3
) where
S1: Into<String>,
S2: Into<String>,
S3: Into<String>,
[src]
&mut self,
country: S1,
language: S2,
symbol: S3
) where
S1: Into<String>,
S2: Into<String>,
S3: Into<String>,
Appends a format part.
pub fn push_day(&mut self, number: FormatNumberStyle)
[src]
Appends a format part.
pub fn push_month(&mut self, number: FormatNumberStyle, text: bool)
[src]
Appends a format part.
pub fn push_year(&mut self, number: FormatNumberStyle)
[src]
Appends a format part.
pub fn push_era(
&mut self,
number: FormatNumberStyle,
calendar: FormatCalendarStyle
)
[src]
&mut self,
number: FormatNumberStyle,
calendar: FormatCalendarStyle
)
Appends a format part.
pub fn push_day_of_week(
&mut self,
number: FormatNumberStyle,
calendar: FormatCalendarStyle
)
[src]
&mut self,
number: FormatNumberStyle,
calendar: FormatCalendarStyle
)
Appends a format part.
pub fn push_week_of_year(&mut self, calendar: FormatCalendarStyle)
[src]
Appends a format part.
pub fn push_quarter(
&mut self,
number: FormatNumberStyle,
calendar: FormatCalendarStyle
)
[src]
&mut self,
number: FormatNumberStyle,
calendar: FormatCalendarStyle
)
Appends a format part.
pub fn push_hours(&mut self, number: FormatNumberStyle)
[src]
Appends a format part.
pub fn push_minutes(&mut self, number: FormatNumberStyle)
[src]
Appends a format part.
pub fn push_seconds(&mut self, number: FormatNumberStyle)
[src]
Appends a format part.
pub fn push_am_pm(&mut self)
[src]
Appends a format part.
pub fn push_embedded_text(&mut self, position: u8)
[src]
Appends a format part.
pub fn push_text<S: Into<String>>(&mut self, text: S)
[src]
Appends a format part.
pub fn push_text_content(&mut self)
[src]
Appends a format part.
pub fn push_part(&mut self, part: FormatPart)
[src]
Adds a format part.
pub fn push_parts(&mut self, partvec: &mut Vec<FormatPart>)
[src]
Adds all format parts.
pub fn parts(&self) -> &Vec<FormatPart>
[src]
Returns the parts.
pub fn parts_mut(&mut self) -> &mut Vec<FormatPart>
[src]
Returns the mutable parts.
pub fn push_stylemap(&mut self, stylemap: StyleMap)
[src]
Adds a stylemap.
pub fn stylemaps(&self) -> Option<&Vec<StyleMap>>
[src]
Returns the stylemaps
pub fn stylemaps_mut(&mut self) -> &mut Vec<StyleMap>
[src]
Returns the mutable stylemap.
pub fn format_boolean(&self, b: bool) -> String
[src]
Tries to format. If there are no matching parts, does nothing.
pub fn format_float(&self, f: f64) -> String
[src]
Tries to format. If there are no matching parts, does nothing.
pub fn format_str<'a, S: Into<&'a str>>(&self, s: S) -> String
[src]
Tries to format. If there are no matching parts, does nothing.
pub fn format_datetime(&self, d: &NaiveDateTime) -> String
[src]
Tries to format. If there are no matching parts, does nothing. Should work reasonably. Don’t ask me about other calenders.
pub fn format_time_duration(&self, d: &Duration) -> String
[src]
Tries to format. Should work reasonably. If there are no matching parts, does nothing.
Trait Implementations
impl AttrMap2Trait for ValueFormat
[src]
impl AttrMap2Trait for ValueFormat
[src]fn attrmap(&self) -> &AttrMap2
[src]
fn attrmap_mut(&mut self) -> &mut AttrMap2
[src]
fn is_empty(&self) -> bool
[src]
fn add_all(&mut self, data: &[(&str, String)])
[src]
fn set_attr(&mut self, name: &str, value: String)
[src]
fn clear_attr(&mut self, name: &str) -> Option<String>
[src]
fn attr(&self, name: &str) -> Option<&String>
[src]
impl Clone for ValueFormat
[src]
impl Clone for ValueFormat
[src]fn clone(&self) -> ValueFormat
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for ValueFormat
[src]
impl Default for ValueFormat
[src]fn default() -> ValueFormat
[src]
Auto Trait Implementations
impl RefUnwindSafe for ValueFormat
impl RefUnwindSafe for ValueFormat
impl Send for ValueFormat
impl Send for ValueFormat
impl Sync for ValueFormat
impl Sync for ValueFormat
impl Unpin for ValueFormat
impl Unpin for ValueFormat
impl UnwindSafe for ValueFormat
impl UnwindSafe for ValueFormat