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§