Commit bf7c760 1 parent 056d93e commit bf7c760 Copy full SHA for bf7c760
File tree 1 file changed +8
-0
lines changed
crates/cxx-qt-lib/src/gui
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,10 @@ mod ffi {
119
119
#[ rust_name = "draw_polyline" ]
120
120
fn drawPolyline ( self : Pin < & mut QPainter > , points : & QPolygon ) ;
121
121
122
+ /// Draws the current rectangle with the current pen and brush.
123
+ #[ rust_name = "draw_rect_f" ]
124
+ fn drawRect ( self : Pin < & mut QPainter > , rectangle : & QRectF ) ;
125
+
122
126
/// Draws the given text with the currently defined text direction, beginning at the given position.
123
127
#[ rust_name = "draw_text" ]
124
128
fn drawText ( self : Pin < & mut QPainter > , point : & QPoint , text : & QString ) ;
@@ -212,6 +216,10 @@ mod ffi {
212
216
/// Translates the coordinate system by the given offset.
213
217
fn translate ( self : Pin < & mut QPainter > , offset : & QPoint ) ;
214
218
219
+ /// Returns true if view transformation is enabled; otherwise returns false.
220
+ #[ rust_name = "view_transform_enabled" ]
221
+ fn viewTransformEnabled ( self : & QPainter ) -> bool ;
222
+
215
223
/// Returns the window rectangle.
216
224
fn window ( self : & QPainter ) -> QRect ;
217
225
}
You can’t perform that action at this time.
0 commit comments