pub struct QRect { /* private fields */ }Expand description
C++ class: QRect.
Implementations§
Source§impl QRect
impl QRect
Sourcepub unsafe fn add_assign(
&self,
margins: impl CastInto<Ref<QMargins>>,
) -> Ref<QRect>
pub unsafe fn add_assign( &self, margins: impl CastInto<Ref<QMargins>>, ) -> Ref<QRect>
Calls C++ function: QRect& QRect::operator+=(const QMargins& margins).
Sourcepub unsafe fn adjust(&self, x1: c_int, y1: c_int, x2: c_int, y2: c_int)
pub unsafe fn adjust(&self, x1: c_int, y1: c_int, x2: c_int, y2: c_int)
Calls C++ function: void QRect::adjust(int x1, int y1, int x2, int y2).
Sourcepub unsafe fn adjusted(
&self,
x1: c_int,
y1: c_int,
x2: c_int,
y2: c_int,
) -> CppBox<QRect>
pub unsafe fn adjusted( &self, x1: c_int, y1: c_int, x2: c_int, y2: c_int, ) -> CppBox<QRect>
Calls C++ function: QRect QRect::adjusted(int x1, int y1, int x2, int y2) const.
Sourcepub unsafe fn bit_and_assign(&self, r: impl CastInto<Ref<QRect>>) -> Ref<QRect>
pub unsafe fn bit_and_assign(&self, r: impl CastInto<Ref<QRect>>) -> Ref<QRect>
Calls C++ function: QRect& QRect::operator&=(const QRect& r).
Sourcepub unsafe fn bit_or_assign(&self, r: impl CastInto<Ref<QRect>>) -> Ref<QRect>
pub unsafe fn bit_or_assign(&self, r: impl CastInto<Ref<QRect>>) -> Ref<QRect>
Calls C++ function: QRect& QRect::operator|=(const QRect& r).
Sourcepub unsafe fn bottom_left(&self) -> CppBox<QPoint>
pub unsafe fn bottom_left(&self) -> CppBox<QPoint>
Calls C++ function: QPoint QRect::bottomLeft() const.
Sourcepub unsafe fn bottom_right(&self) -> CppBox<QPoint>
pub unsafe fn bottom_right(&self) -> CppBox<QPoint>
Calls C++ function: QPoint QRect::bottomRight() const.
Sourcepub unsafe fn center(&self) -> CppBox<QPoint>
pub unsafe fn center(&self) -> CppBox<QPoint>
Calls C++ function: QPoint QRect::center() const.
Sourcepub unsafe fn contains_q_rect_bool(
&self,
r: impl CastInto<Ref<QRect>>,
proper: bool,
) -> bool
pub unsafe fn contains_q_rect_bool( &self, r: impl CastInto<Ref<QRect>>, proper: bool, ) -> bool
Calls C++ function: bool QRect::contains(const QRect& r, bool proper = …) const.
Sourcepub unsafe fn contains_q_point_bool(
&self,
p: impl CastInto<Ref<QPoint>>,
proper: bool,
) -> bool
pub unsafe fn contains_q_point_bool( &self, p: impl CastInto<Ref<QPoint>>, proper: bool, ) -> bool
Calls C++ function: bool QRect::contains(const QPoint& p, bool proper = …) const.
Sourcepub unsafe fn contains_2_int(&self, x: c_int, y: c_int) -> bool
pub unsafe fn contains_2_int(&self, x: c_int, y: c_int) -> bool
Calls C++ function: bool QRect::contains(int x, int y) const.
Sourcepub unsafe fn contains_2_int_bool(
&self,
x: c_int,
y: c_int,
proper: bool,
) -> bool
pub unsafe fn contains_2_int_bool( &self, x: c_int, y: c_int, proper: bool, ) -> bool
Calls C++ function: bool QRect::contains(int x, int y, bool proper) const.
Sourcepub unsafe fn contains_q_rect(&self, r: impl CastInto<Ref<QRect>>) -> bool
pub unsafe fn contains_q_rect(&self, r: impl CastInto<Ref<QRect>>) -> bool
Calls C++ function: bool QRect::contains(const QRect& r) const.
Sourcepub unsafe fn contains_q_point(&self, p: impl CastInto<Ref<QPoint>>) -> bool
pub unsafe fn contains_q_point(&self, p: impl CastInto<Ref<QPoint>>) -> bool
Calls C++ function: bool QRect::contains(const QPoint& p) const.
Sourcepub unsafe fn copy_from(&self, other: impl CastInto<Ref<QRect>>) -> Ref<QRect>
pub unsafe fn copy_from(&self, other: impl CastInto<Ref<QRect>>) -> Ref<QRect>
Calls C++ function: QRect& QRect::operator=(const QRect& other).
Sourcepub unsafe fn get_coords(
&self,
x1: *mut c_int,
y1: *mut c_int,
x2: *mut c_int,
y2: *mut c_int,
)
pub unsafe fn get_coords( &self, x1: *mut c_int, y1: *mut c_int, x2: *mut c_int, y2: *mut c_int, )
Calls C++ function: void QRect::getCoords(int* x1, int* y1, int* x2, int* y2) const.
Sourcepub unsafe fn get_rect(
&self,
x: *mut c_int,
y: *mut c_int,
w: *mut c_int,
h: *mut c_int,
)
pub unsafe fn get_rect( &self, x: *mut c_int, y: *mut c_int, w: *mut c_int, h: *mut c_int, )
Calls C++ function: void QRect::getRect(int* x, int* y, int* w, int* h) const.
Sourcepub unsafe fn intersected(
&self,
other: impl CastInto<Ref<QRect>>,
) -> CppBox<QRect>
pub unsafe fn intersected( &self, other: impl CastInto<Ref<QRect>>, ) -> CppBox<QRect>
Calls C++ function: QRect QRect::intersected(const QRect& other) const.
Sourcepub unsafe fn intersects(&self, r: impl CastInto<Ref<QRect>>) -> bool
pub unsafe fn intersects(&self, r: impl CastInto<Ref<QRect>>) -> bool
Calls C++ function: bool QRect::intersects(const QRect& r) const.
Sourcepub unsafe fn margins_added(
&self,
margins: impl CastInto<Ref<QMargins>>,
) -> CppBox<QRect>
pub unsafe fn margins_added( &self, margins: impl CastInto<Ref<QMargins>>, ) -> CppBox<QRect>
Calls C++ function: QRect QRect::marginsAdded(const QMargins& margins) const.
Sourcepub unsafe fn margins_removed(
&self,
margins: impl CastInto<Ref<QMargins>>,
) -> CppBox<QRect>
pub unsafe fn margins_removed( &self, margins: impl CastInto<Ref<QMargins>>, ) -> CppBox<QRect>
Calls C++ function: QRect QRect::marginsRemoved(const QMargins& margins) const.
Sourcepub unsafe fn move_bottom(&self, pos: c_int)
pub unsafe fn move_bottom(&self, pos: c_int)
Calls C++ function: void QRect::moveBottom(int pos).
Sourcepub unsafe fn move_bottom_left(&self, p: impl CastInto<Ref<QPoint>>)
pub unsafe fn move_bottom_left(&self, p: impl CastInto<Ref<QPoint>>)
Calls C++ function: void QRect::moveBottomLeft(const QPoint& p).
Sourcepub unsafe fn move_bottom_right(&self, p: impl CastInto<Ref<QPoint>>)
pub unsafe fn move_bottom_right(&self, p: impl CastInto<Ref<QPoint>>)
Calls C++ function: void QRect::moveBottomRight(const QPoint& p).
Sourcepub unsafe fn move_center(&self, p: impl CastInto<Ref<QPoint>>)
pub unsafe fn move_center(&self, p: impl CastInto<Ref<QPoint>>)
Calls C++ function: void QRect::moveCenter(const QPoint& p).
Sourcepub unsafe fn move_right(&self, pos: c_int)
pub unsafe fn move_right(&self, pos: c_int)
Calls C++ function: void QRect::moveRight(int pos).
Sourcepub unsafe fn move_to_2a(&self, x: c_int, t: c_int)
pub unsafe fn move_to_2a(&self, x: c_int, t: c_int)
Calls C++ function: void QRect::moveTo(int x, int t).
Sourcepub unsafe fn move_to_1a(&self, p: impl CastInto<Ref<QPoint>>)
pub unsafe fn move_to_1a(&self, p: impl CastInto<Ref<QPoint>>)
Calls C++ function: void QRect::moveTo(const QPoint& p).
Sourcepub unsafe fn move_top_left(&self, p: impl CastInto<Ref<QPoint>>)
pub unsafe fn move_top_left(&self, p: impl CastInto<Ref<QPoint>>)
Calls C++ function: void QRect::moveTopLeft(const QPoint& p).
Sourcepub unsafe fn move_top_right(&self, p: impl CastInto<Ref<QPoint>>)
pub unsafe fn move_top_right(&self, p: impl CastInto<Ref<QPoint>>)
Calls C++ function: void QRect::moveTopRight(const QPoint& p).
Sourcepub unsafe fn from_2_q_point(
topleft: impl CastInto<Ref<QPoint>>,
bottomright: impl CastInto<Ref<QPoint>>,
) -> CppBox<QRect>
pub unsafe fn from_2_q_point( topleft: impl CastInto<Ref<QPoint>>, bottomright: impl CastInto<Ref<QPoint>>, ) -> CppBox<QRect>
Calls C++ function: [constructor] void QRect::QRect(const QPoint& topleft, const QPoint& bottomright).
Sourcepub unsafe fn from_q_point_q_size(
topleft: impl CastInto<Ref<QPoint>>,
size: impl CastInto<Ref<QSize>>,
) -> CppBox<QRect>
pub unsafe fn from_q_point_q_size( topleft: impl CastInto<Ref<QPoint>>, size: impl CastInto<Ref<QSize>>, ) -> CppBox<QRect>
Calls C++ function: [constructor] void QRect::QRect(const QPoint& topleft, const QSize& size).
Sourcepub unsafe fn from_4_int(
left: c_int,
top: c_int,
width: c_int,
height: c_int,
) -> CppBox<QRect>
pub unsafe fn from_4_int( left: c_int, top: c_int, width: c_int, height: c_int, ) -> CppBox<QRect>
Calls C++ function: [constructor] void QRect::QRect(int left, int top, int width, int height).
Sourcepub unsafe fn new_copy(other: impl CastInto<Ref<QRect>>) -> CppBox<QRect>
pub unsafe fn new_copy(other: impl CastInto<Ref<QRect>>) -> CppBox<QRect>
Calls C++ function: [constructor] void QRect::QRect(const QRect& other).
Sourcepub unsafe fn normalized(&self) -> CppBox<QRect>
pub unsafe fn normalized(&self) -> CppBox<QRect>
Calls C++ function: QRect QRect::normalized() const.
Sourcepub unsafe fn set_bottom(&self, pos: c_int)
pub unsafe fn set_bottom(&self, pos: c_int)
Calls C++ function: void QRect::setBottom(int pos).
Sourcepub unsafe fn set_bottom_left(&self, p: impl CastInto<Ref<QPoint>>)
pub unsafe fn set_bottom_left(&self, p: impl CastInto<Ref<QPoint>>)
Calls C++ function: void QRect::setBottomLeft(const QPoint& p).
Sourcepub unsafe fn set_bottom_right(&self, p: impl CastInto<Ref<QPoint>>)
pub unsafe fn set_bottom_right(&self, p: impl CastInto<Ref<QPoint>>)
Calls C++ function: void QRect::setBottomRight(const QPoint& p).
Sourcepub unsafe fn set_coords(&self, x1: c_int, y1: c_int, x2: c_int, y2: c_int)
pub unsafe fn set_coords(&self, x1: c_int, y1: c_int, x2: c_int, y2: c_int)
Calls C++ function: void QRect::setCoords(int x1, int y1, int x2, int y2).
Sourcepub unsafe fn set_height(&self, h: c_int)
pub unsafe fn set_height(&self, h: c_int)
Calls C++ function: void QRect::setHeight(int h).
Sourcepub unsafe fn set_rect(&self, x: c_int, y: c_int, w: c_int, h: c_int)
pub unsafe fn set_rect(&self, x: c_int, y: c_int, w: c_int, h: c_int)
Calls C++ function: void QRect::setRect(int x, int y, int w, int h).
Sourcepub unsafe fn set_size(&self, s: impl CastInto<Ref<QSize>>)
pub unsafe fn set_size(&self, s: impl CastInto<Ref<QSize>>)
Calls C++ function: void QRect::setSize(const QSize& s).
Sourcepub unsafe fn set_top_left(&self, p: impl CastInto<Ref<QPoint>>)
pub unsafe fn set_top_left(&self, p: impl CastInto<Ref<QPoint>>)
Calls C++ function: void QRect::setTopLeft(const QPoint& p).
Sourcepub unsafe fn set_top_right(&self, p: impl CastInto<Ref<QPoint>>)
pub unsafe fn set_top_right(&self, p: impl CastInto<Ref<QPoint>>)
Calls C++ function: void QRect::setTopRight(const QPoint& p).
Sourcepub unsafe fn sub_assign(
&self,
margins: impl CastInto<Ref<QMargins>>,
) -> Ref<QRect>
pub unsafe fn sub_assign( &self, margins: impl CastInto<Ref<QMargins>>, ) -> Ref<QRect>
Calls C++ function: QRect& QRect::operator-=(const QMargins& margins).
Sourcepub unsafe fn top_left(&self) -> CppBox<QPoint>
pub unsafe fn top_left(&self) -> CppBox<QPoint>
Calls C++ function: QPoint QRect::topLeft() const.
Sourcepub unsafe fn top_right(&self) -> CppBox<QPoint>
pub unsafe fn top_right(&self) -> CppBox<QPoint>
Calls C++ function: QPoint QRect::topRight() const.
Sourcepub unsafe fn translate_2a(&self, dx: c_int, dy: c_int)
pub unsafe fn translate_2a(&self, dx: c_int, dy: c_int)
Calls C++ function: void QRect::translate(int dx, int dy).
Sourcepub unsafe fn translate_1a(&self, p: impl CastInto<Ref<QPoint>>)
pub unsafe fn translate_1a(&self, p: impl CastInto<Ref<QPoint>>)
Calls C++ function: void QRect::translate(const QPoint& p).
Sourcepub unsafe fn translated_2a(&self, dx: c_int, dy: c_int) -> CppBox<QRect>
pub unsafe fn translated_2a(&self, dx: c_int, dy: c_int) -> CppBox<QRect>
Calls C++ function: QRect QRect::translated(int dx, int dy) const.
Sourcepub unsafe fn translated_1a(
&self,
p: impl CastInto<Ref<QPoint>>,
) -> CppBox<QRect>
pub unsafe fn translated_1a( &self, p: impl CastInto<Ref<QPoint>>, ) -> CppBox<QRect>
Calls C++ function: QRect QRect::translated(const QPoint& p) const.
Sourcepub unsafe fn transposed(&self) -> CppBox<QRect>
pub unsafe fn transposed(&self) -> CppBox<QRect>
Calls C++ function: QRect QRect::transposed() const.