/// 
/// **Overloads**
/// Adds the given *text* to this path as a set of closed subpaths created
/// from the *font* supplied. The subpaths are positioned so that the left
/// end of the text's baseline lies at the point specified by ( *x,* *y).*
/// 
/// Adds the given *text* to this path as a set of closed subpaths
/// created from the *font* supplied. The subpaths are positioned so
/// that the left end of the text's baseline lies at the specified *point.*
/// 
/// * ![qpainterpath-addtext.png](qpainterpath-addtext.png)
/// 
/// 
/// 
/// **See also:** QPainter::drawText()
/// {QPainterPath#Composing a
/// QPainterPath}{Composing a QPainterPath}
Overloads
Adds the given *text* to this path as a set of closed subpaths created
from the *font* supplied. The subpaths are positioned so that the left
end of the text's baseline lies at the point specified by ( *x,* *y).

Adds the given *text* to this path as a set of closed subpaths
created from the *font* supplied. The subpaths are positioned so
that the left end of the text's baseline lies at the specified *point.






Overloads Adds the given * text * to this path as a set of closed subpaths created from the * font * supplied . The subpaths are positioned so that the left end of the text ' s baseline lies at the point specified by ( * x * * y ) . Adds the given * text * to this path as a set of closed subpaths created from the * font * supplied . The subpaths are positioned so that the left end of the text ' s baseline lies at the specified * point .
fn add_text<F: FontType<'a>>(&self, x: f32, y: f32, f: &F, text: &str) -> &Self {
        let (obj_f_3, _funcs) = f.get_font_obj_funcs();
        let str_in_text_4 = CString::new(text).unwrap();
        let (obj_data, funcs) = self.get_painter_path_obj_funcs();
        unsafe {
            ((*funcs).add_text)(obj_data, x, y, obj_f_3, str_in_text_4.as_ptr());
        }
        self
    }
fn add_text < F : FontType < ' a > > ( & self , x : f32 , y : f32 , f : & F , text : & str ) -> & Self { let ( obj_f_3 , _funcs ) = f . get_font_obj_funcs ( ) ; let str_in_text_4 = CString :: new ( text ) . unwrap ( ) ; let ( obj_data , funcs ) = self . get_painter_path_obj_funcs ( ) ; unsafe { ( ( * funcs ) . add_text ) ( obj_data , x , y , obj_f_3 , str_in_text_4 . as_ptr ( ) ) ; } self }
Overloads
Adds the given *text* to this path as a set of closed subpaths created
from the *font* supplied.
Overloads Adds the given * text * to this path as a set of closed subpaths created from the * font * supplied .
&self
x
f32
y
f32
f
&F
text
&str