[][src]Struct qt_charts::QPieLegendMarker

#[repr(C)]
pub struct QPieLegendMarker { /* fields omitted */ }

C++ class: QtCharts::QPieLegendMarker.

Methods

impl QPieLegendMarker[src]

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* QtCharts::QPieLegendMarker::metaObject() const.

pub unsafe fn new_4a(
    series: impl CastInto<MutPtr<QPieSeries>>,
    slice: impl CastInto<MutPtr<QPieSlice>>,
    legend: impl CastInto<MutPtr<QLegend>>,
    parent: impl CastInto<MutPtr<QObject>>
) -> CppBox<QPieLegendMarker>
[src]

Calls C++ function: [constructor] void QtCharts::QPieLegendMarker::QPieLegendMarker(QtCharts::QPieSeries* series, QtCharts::QPieSlice* slice, QtCharts::QLegend* legend, QObject* parent = …).

pub unsafe fn new_3a(
    series: impl CastInto<MutPtr<QPieSeries>>,
    slice: impl CastInto<MutPtr<QPieSlice>>,
    legend: impl CastInto<MutPtr<QLegend>>
) -> CppBox<QPieLegendMarker>
[src]

Calls C++ function: [constructor] void QtCharts::QPieLegendMarker::QPieLegendMarker(QtCharts::QPieSeries* series, QtCharts::QPieSlice* slice, QtCharts::QLegend* legend).

pub unsafe fn qt_metacall(
    &mut self,
    arg1: Call,
    arg2: c_int,
    arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]

Calls C++ function: virtual int QtCharts::QPieLegendMarker::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(
    &mut self,
    arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]

Calls C++ function: virtual void* QtCharts::QPieLegendMarker::qt_metacast(const char* arg1).

pub unsafe fn series(&mut self) -> MutPtr<QPieSeries>[src]

Reimplements: QLegendMarker::series().

Calls C++ function: virtual QtCharts::QPieSeries* QtCharts::QPieLegendMarker::series().

C++ documentation:

Reimplements: QLegendMarker::series().

pub unsafe fn slice(&mut self) -> MutPtr<QPieSlice>[src]

Returns the slice of the pie related to the marker.

Calls C++ function: QtCharts::QPieSlice* QtCharts::QPieLegendMarker::slice().

C++ documentation:

Returns the slice of the pie related to the marker.

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn tr(
    s: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QtCharts::QPieLegendMarker::tr(const char* s, const char* c, int n).

pub unsafe fn tr_utf8(
    s: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QtCharts::QPieLegendMarker::trUtf8(const char* s, const char* c, int n).

pub unsafe fn type_(&mut self) -> LegendMarkerType[src]

Reimplements: QLegendMarker::type().

Calls C++ function: virtual QtCharts::QLegendMarker::LegendMarkerType QtCharts::QPieLegendMarker::type().

C++ documentation:

Reimplements: QLegendMarker::type().

Methods from Deref<Target = QLegendMarker>

pub fn clicked(&self) -> Signal<()>[src]

This signal is emitted when the legend marker is clicked.

Returns a built-in Qt signal QtCharts::QLegendMarker::clicked that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the legend marker is clicked.

pub fn hovered(&self) -> Signal<(bool,)>[src]

This signal is emitted when a mouse is hovered over the legend marker. When the mouse moves over the marker, status turns true, and when the mouse moves away again, it turns false.

Returns a built-in Qt signal QtCharts::QLegendMarker::hovered that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when a mouse is hovered over the legend marker. When the mouse moves over the marker, status turns true, and when the mouse moves away again, it turns false.

pub fn label_changed(&self) -> Signal<()>[src]

This signal is emitted when the label of the legend marker has changed.

Returns a built-in Qt signal QtCharts::QLegendMarker::labelChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the label of the legend marker has changed.

Note: Notifier signal for property label.

pub fn label_brush_changed(&self) -> Signal<()>[src]

This signal is emitted when the label brush of the legend marker has changed.

Returns a built-in Qt signal QtCharts::QLegendMarker::labelBrushChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the label brush of the legend marker has changed.

Note: Notifier signal for property labelBrush.

pub fn font_changed(&self) -> Signal<()>[src]

This signal is emitted when the (label) font of the legend marker has changed.

Returns a built-in Qt signal QtCharts::QLegendMarker::fontChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the (label) font of the legend marker has changed.

Note: Notifier signal for property font.

pub fn pen_changed(&self) -> Signal<()>[src]

This signal is emitted when the pen of the legend marker has changed.

Returns a built-in Qt signal QtCharts::QLegendMarker::penChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the pen of the legend marker has changed.

Note: Notifier signal for property pen.

pub fn brush_changed(&self) -> Signal<()>[src]

This signal is emitted when the brush of the legend marker has changed.

Returns a built-in Qt signal QtCharts::QLegendMarker::brushChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the brush of the legend marker has changed.

Note: Notifier signal for property brush.

pub fn visible_changed(&self) -> Signal<()>[src]

This signal is emitted when the visibility of the legend marker has changed.

Returns a built-in Qt signal QtCharts::QLegendMarker::visibleChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the visibility of the legend marker has changed.

Note: Notifier signal for property visible.

pub fn shape_changed(&self) -> Signal<()>[src]

The shape of the legend marker. Defaults to QLegend::MarkerShapeDefault, which indicates the shape is determined by QLegend::markerShape property.

Returns a built-in Qt signal QtCharts::QLegendMarker::shapeChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

The shape of the legend marker. Defaults to QLegend::MarkerShapeDefault, which indicates the shape is determined by QLegend::markerShape property.

Access functions:

QLegend::MarkerShape shape() const
void setShape(QLegend::MarkerShape shape)

Notifier signal:

void shapeChanged()

pub unsafe fn brush(&self) -> CppBox<QBrush>[src]

This property holds the brush used to fill the icon.

Calls C++ function: QBrush QtCharts::QLegendMarker::brush() const.

C++ documentation:

This property holds the brush used to fill the icon.

Access functions:

QBrush brush() const
void setBrush(const QBrush &brush)

Notifier signal:

void brushChanged()

pub unsafe fn font(&self) -> CppBox<QFont>[src]

This property holds the font of the label.

Calls C++ function: QFont QtCharts::QLegendMarker::font() const.

C++ documentation:

This property holds the font of the label.

Access functions:

QFont font() const
void setFont(const QFont &font)

Notifier signal:

void fontChanged()

pub unsafe fn is_visible(&self) -> bool[src]

Returns the visibility of the marker.

Calls C++ function: bool QtCharts::QLegendMarker::isVisible() const.

C++ documentation:

Returns the visibility of the marker.

Note: Getter function for property visible.

pub unsafe fn label(&self) -> CppBox<QString>[src]

This property holds the text shown in the legend for a legend marker.

Calls C++ function: QString QtCharts::QLegendMarker::label() const.

C++ documentation:

This property holds the text shown in the legend for a legend marker.

Access functions:

QString label() const
void setLabel(const QString &label)

Notifier signal:

void labelChanged()

pub unsafe fn label_brush(&self) -> CppBox<QBrush>[src]

This property holds the brush of the label.

Calls C++ function: QBrush QtCharts::QLegendMarker::labelBrush() const.

C++ documentation:

This property holds the brush of the label.

Access functions:

QBrush labelBrush() const
void setLabelBrush(const QBrush &brush)

Notifier signal:

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* QtCharts::QLegendMarker::metaObject() const.

pub unsafe fn pen(&self) -> CppBox<QPen>[src]

This property holds the pen used to draw the outline of the icon.

Calls C++ function: QPen QtCharts::QLegendMarker::pen() const.

C++ documentation:

This property holds the pen used to draw the outline of the icon.

Access functions:

QPen pen() const
void setPen(const QPen &pen)

Notifier signal:

void penChanged()

pub unsafe fn qt_metacall(
    &mut self,
    arg1: Call,
    arg2: c_int,
    arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]

Calls C++ function: virtual int QtCharts::QLegendMarker::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(
    &mut self,
    arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]

Calls C++ function: virtual void* QtCharts::QLegendMarker::qt_metacast(const char* arg1).

pub unsafe fn series(&mut self) -> MutPtr<QAbstractSeries>[src]

Returns a pointer to the series that is related to this legend marker. A legend marker is always related to a series.

Calls C++ function: pure virtual QtCharts::QAbstractSeries* QtCharts::QLegendMarker::series().

C++ documentation:

Returns a pointer to the series that is related to this legend marker. A legend marker is always related to a series.

pub unsafe fn set_brush(&mut self, brush: impl CastInto<Ref<QBrush>>)[src]

Sets the brush used to fill the icon to brush.

Calls C++ function: void QtCharts::QLegendMarker::setBrush(const QBrush& brush).

C++ documentation:

Sets the brush used to fill the icon to brush.

Note: Changing the color of the series also changes the color of the icon.

Note: Setter function for property brush.

See also brush().

pub unsafe fn set_font(&mut self, font: impl CastInto<Ref<QFont>>)[src]

Sets the font of the label to font.

Calls C++ function: void QtCharts::QLegendMarker::setFont(const QFont& font).

C++ documentation:

Sets the font of the label to font.

Note: Setter function for property font.

See also font().

pub unsafe fn set_label(&mut self, label: impl CastInto<Ref<QString>>)[src]

Sets the label of the marker to label.

Calls C++ function: void QtCharts::QLegendMarker::setLabel(const QString& label).

C++ documentation:

Sets the label of the marker to label.

Note: Changing the name of a series also changes the label of its marker.

Note: Setter function for property label.

See also label().

pub unsafe fn set_label_brush(&mut self, brush: impl CastInto<Ref<QBrush>>)[src]

Sets the the brush used to draw to label to brush.

Calls C++ function: void QtCharts::QLegendMarker::setLabelBrush(const QBrush& brush).

C++ documentation:

Sets the the brush used to draw to label to brush.

Note: Setter function for property labelBrush.

See also labelBrush().

pub unsafe fn set_pen(&mut self, pen: impl CastInto<Ref<QPen>>)[src]

Sets the pen used to draw the outline of the icon to pen.

Calls C++ function: void QtCharts::QLegendMarker::setPen(const QPen& pen).

C++ documentation:

Sets the pen used to draw the outline of the icon to pen.

Note: Setter function for property pen.

See also pen().

pub unsafe fn set_shape(&mut self, shape: MarkerShape)[src]

The shape of the legend marker. Defaults to QLegend::MarkerShapeDefault, which indicates the shape is determined by QLegend::markerShape property.

Calls C++ function: void QtCharts::QLegendMarker::setShape(QtCharts::QLegend::MarkerShape shape).

C++ documentation:

The shape of the legend marker. Defaults to QLegend::MarkerShapeDefault, which indicates the shape is determined by QLegend::markerShape property.

Access functions:

QLegend::MarkerShape shape() const
void setShape(QLegend::MarkerShape shape)

Notifier signal:

void shapeChanged()

pub unsafe fn set_visible(&mut self, visible: bool)[src]

Sets the marker's visibility to visible.

Calls C++ function: void QtCharts::QLegendMarker::setVisible(bool visible).

C++ documentation:

Sets the marker's visibility to visible.

Note: Setter function for property visible.

See also isVisible().

pub unsafe fn shape(&self) -> MarkerShape[src]

The shape of the legend marker. Defaults to QLegend::MarkerShapeDefault, which indicates the shape is determined by QLegend::markerShape property.

Calls C++ function: QtCharts::QLegend::MarkerShape QtCharts::QLegendMarker::shape() const.

C++ documentation:

The shape of the legend marker. Defaults to QLegend::MarkerShapeDefault, which indicates the shape is determined by QLegend::markerShape property.

Access functions:

QLegend::MarkerShape shape() const
void setShape(QLegend::MarkerShape shape)

Notifier signal:

void shapeChanged()

pub unsafe fn type_(&mut self) -> LegendMarkerType[src]

Returns the type of the legend marker for the related series, pie slice, or bar set.

Calls C++ function: pure virtual QtCharts::QLegendMarker::LegendMarkerType QtCharts::QLegendMarker::type().

C++ documentation:

Returns the type of the legend marker for the related series, pie slice, or bar set.

See also LegendMarkerType.

Trait Implementations

impl CppDeletable for QPieLegendMarker[src]

unsafe fn delete(&mut self)[src]

Removes the legend marker for a pie series.

Calls C++ function: virtual [destructor] void QtCharts::QPieLegendMarker::~QPieLegendMarker().

C++ documentation:

Removes the legend marker for a pie series.

impl Deref for QPieLegendMarker[src]

type Target = QLegendMarker

The resulting type after dereferencing.

fn deref(&self) -> &QLegendMarker[src]

Calls C++ function: QtCharts::QLegendMarker* static_cast<QtCharts::QLegendMarker*>(QtCharts::QPieLegendMarker* ptr).

impl DerefMut for QPieLegendMarker[src]

fn deref_mut(&mut self) -> &mut QLegendMarker[src]

Calls C++ function: QtCharts::QLegendMarker* static_cast<QtCharts::QLegendMarker*>(QtCharts::QPieLegendMarker* ptr).

impl DynamicCast<QPieLegendMarker> for QLegendMarker[src]

unsafe fn dynamic_cast(ptr: Ptr<QLegendMarker>) -> Ptr<QPieLegendMarker>[src]

Calls C++ function: QtCharts::QPieLegendMarker* dynamic_cast<QtCharts::QPieLegendMarker*>(QtCharts::QLegendMarker* ptr).

unsafe fn dynamic_cast_mut(
    ptr: MutPtr<QLegendMarker>
) -> MutPtr<QPieLegendMarker>
[src]

Calls C++ function: QtCharts::QPieLegendMarker* dynamic_cast<QtCharts::QPieLegendMarker*>(QtCharts::QLegendMarker* ptr).

impl DynamicCast<QPieLegendMarker> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QPieLegendMarker>[src]

Calls C++ function: QtCharts::QPieLegendMarker* dynamic_cast<QtCharts::QPieLegendMarker*>(QObject* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<QPieLegendMarker>[src]

Calls C++ function: QtCharts::QPieLegendMarker* dynamic_cast<QtCharts::QPieLegendMarker*>(QObject* ptr).

impl StaticDowncast<QPieLegendMarker> for QLegendMarker[src]

unsafe fn static_downcast(ptr: Ptr<QLegendMarker>) -> Ptr<QPieLegendMarker>[src]

Calls C++ function: QtCharts::QPieLegendMarker* static_cast<QtCharts::QPieLegendMarker*>(QtCharts::QLegendMarker* ptr).

unsafe fn static_downcast_mut(
    ptr: MutPtr<QLegendMarker>
) -> MutPtr<QPieLegendMarker>
[src]

Calls C++ function: QtCharts::QPieLegendMarker* static_cast<QtCharts::QPieLegendMarker*>(QtCharts::QLegendMarker* ptr).

impl StaticDowncast<QPieLegendMarker> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QPieLegendMarker>[src]

Calls C++ function: QtCharts::QPieLegendMarker* static_cast<QtCharts::QPieLegendMarker*>(QObject* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<QPieLegendMarker>[src]

Calls C++ function: QtCharts::QPieLegendMarker* static_cast<QtCharts::QPieLegendMarker*>(QObject* ptr).

impl StaticUpcast<QLegendMarker> for QPieLegendMarker[src]

unsafe fn static_upcast(ptr: Ptr<QPieLegendMarker>) -> Ptr<QLegendMarker>[src]

Calls C++ function: QtCharts::QLegendMarker* static_cast<QtCharts::QLegendMarker*>(QtCharts::QPieLegendMarker* ptr).

unsafe fn static_upcast_mut(
    ptr: MutPtr<QPieLegendMarker>
) -> MutPtr<QLegendMarker>
[src]

Calls C++ function: QtCharts::QLegendMarker* static_cast<QtCharts::QLegendMarker*>(QtCharts::QPieLegendMarker* ptr).

impl StaticUpcast<QObject> for QPieLegendMarker[src]

unsafe fn static_upcast(ptr: Ptr<QPieLegendMarker>) -> Ptr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(QtCharts::QPieLegendMarker* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QPieLegendMarker>) -> MutPtr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(QtCharts::QPieLegendMarker* ptr).

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.