Trait TextTraitConst

Source
pub trait TextTraitConst {
    // Required method
    fn as_raw_Text(&self) -> *const c_void;

    // Provided methods
    fn text(&self) -> String { ... }
    fn org(&self) -> Point { ... }
    fn ff(&self) -> i32 { ... }
    fn fs(&self) -> f64 { ... }
    fn color(&self) -> Scalar { ... }
    fn thick(&self) -> i32 { ... }
    fn lt(&self) -> i32 { ... }
    fn bottom_left_origin(&self) -> bool { ... }
}
Expand description

Constant methods for crate::gapi::Text

Required Methods§

Provided Methods§

Source

fn text(&self) -> String

The text string to be drawn

Source

fn org(&self) -> Point

The bottom-left corner of the text string in the image

Source

fn ff(&self) -> i32

The font type, see #HersheyFonts

Source

fn fs(&self) -> f64

The font scale factor that is multiplied by the font-specific base size

Source

fn color(&self) -> Scalar

The text color

Source

fn thick(&self) -> i32

The thickness of the lines used to draw a text

Source

fn lt(&self) -> i32

The line type. See #LineTypes

Source

fn bottom_left_origin(&self) -> bool

When true, the image data origin is at the bottom-left corner. Otherwise, it is at the top-left corner

Implementors§