naut_image_engine 0.14.22

Component of the naut cli: provides abstractions for (the application of) image operations.
Documentation
#![cfg(feature = "imageproc-ops")]

use crate::wrapper::font_options::FontOptions;

#[derive(Debug, Clone, PartialEq)]
pub struct DrawTextInner {
    text: String,
    coord: (u32, u32),
    font_options: FontOptions,
}

impl DrawTextInner {
    pub fn new(text: String, coord: (u32, u32), font_options: FontOptions) -> Self {
        DrawTextInner {
            text,
            coord,
            font_options,
        }
    }

    pub fn text(&self) -> &str {
        &self.text
    }

    pub fn coords(&self) -> (u32, u32) {
        self.coord
    }

    pub fn font_options(&self) -> &FontOptions {
        &self.font_options
    }
}