Skip to main content

QMargins

Struct QMargins 

Source
pub struct QMargins { /* private fields */ }
Expand description

C++ class: QMargins.

Implementations§

Source§

impl QMargins

Source

pub unsafe fn add_assign_q_margins( &self, margins: impl CastInto<Ref<QMargins>>, ) -> Ref<QMargins>

Calls C++ function: QMargins& QMargins::operator+=(const QMargins& margins).

Source

pub unsafe fn add_assign_int(&self, arg1: c_int) -> Ref<QMargins>

Calls C++ function: QMargins& QMargins::operator+=(int arg1).

Source

pub unsafe fn bottom(&self) -> c_int

Calls C++ function: int QMargins::bottom() const.

Source

pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QMargins>>, ) -> Ref<QMargins>

Calls C++ function: QMargins& QMargins::operator=(const QMargins& other).

Source

pub unsafe fn div_assign_int(&self, arg1: c_int) -> Ref<QMargins>

Calls C++ function: QMargins& QMargins::operator/=(int arg1).

Source

pub unsafe fn div_assign_double(&self, arg1: c_double) -> Ref<QMargins>

Calls C++ function: QMargins& QMargins::operator/=(double arg1).

Source

pub unsafe fn is_null(&self) -> bool

Calls C++ function: bool QMargins::isNull() const.

Source

pub unsafe fn left(&self) -> c_int

Calls C++ function: int QMargins::left() const.

Source

pub unsafe fn mul_assign_int(&self, arg1: c_int) -> Ref<QMargins>

Calls C++ function: QMargins& QMargins::operator*=(int arg1).

Source

pub unsafe fn mul_assign_double(&self, arg1: c_double) -> Ref<QMargins>

Calls C++ function: QMargins& QMargins::operator*=(double arg1).

Source

pub unsafe fn neg(&self) -> CppBox<QMargins>

Calls C++ function: QMargins operator-(const QMargins& margins).

Source

pub unsafe fn new_0a() -> CppBox<QMargins>

Calls C++ function: [constructor] void QMargins::QMargins().

Source

pub unsafe fn new_4a( left: c_int, top: c_int, right: c_int, bottom: c_int, ) -> CppBox<QMargins>

Calls C++ function: [constructor] void QMargins::QMargins(int left, int top, int right, int bottom).

Source

pub unsafe fn new_copy(other: impl CastInto<Ref<QMargins>>) -> CppBox<QMargins>

Calls C++ function: [constructor] void QMargins::QMargins(const QMargins& other).

Source

pub unsafe fn right(&self) -> c_int

Calls C++ function: int QMargins::right() const.

Source

pub unsafe fn set_bottom(&self, bottom: c_int)

Calls C++ function: void QMargins::setBottom(int bottom).

Source

pub unsafe fn set_left(&self, left: c_int)

Calls C++ function: void QMargins::setLeft(int left).

Source

pub unsafe fn set_right(&self, right: c_int)

Calls C++ function: void QMargins::setRight(int right).

Source

pub unsafe fn set_top(&self, top: c_int)

Calls C++ function: void QMargins::setTop(int top).

Source

pub unsafe fn sub_assign_q_margins( &self, margins: impl CastInto<Ref<QMargins>>, ) -> Ref<QMargins>

Calls C++ function: QMargins& QMargins::operator-=(const QMargins& margins).

Source

pub unsafe fn sub_assign_int(&self, arg1: c_int) -> Ref<QMargins>

Calls C++ function: QMargins& QMargins::operator-=(int arg1).

Source

pub unsafe fn top(&self) -> c_int

Calls C++ function: int QMargins::top() const.

Source

pub unsafe fn unary_plus(&self) -> CppBox<QMargins>

Calls C++ function: QMargins operator+(const QMargins& margins).

Trait Implementations§

Source§

impl Add<Ref<QMargins>> for &QMargins

Source§

fn add(self, m2: Ref<QMargins>) -> CppBox<QMargins>

Calls C++ function: QMargins operator+(const QMargins& m1, const QMargins& m2).

Source§

type Output = CppBox<QMargins>

The resulting type after applying the + operator.
Source§

impl Add<Ref<QRect>> for &QMargins

Source§

fn add(self, rectangle: Ref<QRect>) -> CppBox<QRect>

Calls C++ function: QRect operator+(const QMargins& margins, const QRect& rectangle).

Source§

type Output = CppBox<QRect>

The resulting type after applying the + operator.
Source§

impl Add<i32> for &QMargins

Source§

fn add(self, rhs: c_int) -> CppBox<QMargins>

Calls C++ function: QMargins operator+(const QMargins& lhs, int rhs).

Source§

type Output = CppBox<QMargins>

The resulting type after applying the + operator.
Source§

impl CppDeletable for QMargins

Source§

unsafe fn delete(&self)

Calls C++ function: [destructor] void QMargins::~QMargins().

Source§

impl Div<f64> for &QMargins

Source§

fn div(self, divisor: c_double) -> CppBox<QMargins>

Calls C++ function: QMargins operator/(const QMargins& margins, double divisor).

Source§

type Output = CppBox<QMargins>

The resulting type after applying the / operator.
Source§

impl Div<i32> for &QMargins

Source§

fn div(self, divisor: c_int) -> CppBox<QMargins>

Calls C++ function: QMargins operator/(const QMargins& margins, int divisor).

Source§

type Output = CppBox<QMargins>

The resulting type after applying the / operator.
Source§

impl Mul<f64> for &QMargins

Source§

fn mul(self, factor: c_double) -> CppBox<QMargins>

Calls C++ function: QMargins operator*(const QMargins& margins, double factor).

Source§

type Output = CppBox<QMargins>

The resulting type after applying the * operator.
Source§

impl Mul<i32> for &QMargins

Source§

fn mul(self, factor: c_int) -> CppBox<QMargins>

Calls C++ function: QMargins operator*(const QMargins& margins, int factor).

Source§

type Output = CppBox<QMargins>

The resulting type after applying the * operator.
Source§

impl PartialEq<Ref<QMargins>> for QMargins

Source§

fn eq(&self, m2: &Ref<QMargins>) -> bool

Calls C++ function: bool operator==(const QMargins& m1, const QMargins& m2).

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Sub<Ref<QMargins>> for &QMargins

Source§

fn sub(self, m2: Ref<QMargins>) -> CppBox<QMargins>

Calls C++ function: QMargins operator-(const QMargins& m1, const QMargins& m2).

Source§

type Output = CppBox<QMargins>

The resulting type after applying the - operator.
Source§

impl Sub<i32> for &QMargins

Source§

fn sub(self, rhs: c_int) -> CppBox<QMargins>

Calls C++ function: QMargins operator-(const QMargins& lhs, int rhs).

Source§

type Output = CppBox<QMargins>

The resulting type after applying the - operator.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.