[][src]Struct qt_charts::QBarLegendMarker

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

C++ class: QtCharts::QBarLegendMarker.

Methods

impl QBarLegendMarker[src]

pub unsafe fn barset(&self) -> QPtr<QBarSet>[src]

Returns the bar set related to the marker.

Calls C++ function: QtCharts::QBarSet* QtCharts::QBarLegendMarker::barset().

C++ documentation:

Returns the bar set related to the marker.

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

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

pub unsafe fn new_4a(
    series: impl CastInto<Ptr<QAbstractBarSeries>>,
    barset: impl CastInto<Ptr<QBarSet>>,
    legend: impl CastInto<Ptr<QLegend>>,
    parent: impl CastInto<Ptr<QObject>>
) -> QBox<QBarLegendMarker>
[src]

Calls C++ function: [constructor] void QtCharts::QBarLegendMarker::QBarLegendMarker(QtCharts::QAbstractBarSeries* series, QtCharts::QBarSet* barset, QtCharts::QLegend* legend, QObject* parent = …).

pub unsafe fn new_3a(
    series: impl CastInto<Ptr<QAbstractBarSeries>>,
    barset: impl CastInto<Ptr<QBarSet>>,
    legend: impl CastInto<Ptr<QLegend>>
) -> QBox<QBarLegendMarker>
[src]

Calls C++ function: [constructor] void QtCharts::QBarLegendMarker::QBarLegendMarker(QtCharts::QAbstractBarSeries* series, QtCharts::QBarSet* barset, QtCharts::QLegend* legend).

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

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

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void[src]

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

pub unsafe fn series(&self) -> QPtr<QAbstractBarSeries>[src]

Reimplements: QLegendMarker::series().

Calls C++ function: virtual QtCharts::QAbstractBarSeries* QtCharts::QBarLegendMarker::series().

C++ documentation:

Reimplements: QLegendMarker::series().

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

Returns a reference to the staticMetaObject field.

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

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

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

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

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

Reimplements: QLegendMarker::type().

Calls C++ function: virtual QtCharts::QLegendMarker::LegendMarkerType QtCharts::QBarLegendMarker::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(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *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(&self, arg1: *const c_char) -> *mut c_void[src]

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

pub unsafe fn series(&self) -> QPtr<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(&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(&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(&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(&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(&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(&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(&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_(&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 QBarLegendMarker[src]

unsafe fn delete(&self)[src]

Removes the legend marker for a bar set.

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

C++ documentation:

Removes the legend marker for a bar set.

impl Deref for QBarLegendMarker[src]

type Target = QLegendMarker

The resulting type after dereferencing.

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

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

impl DynamicCast<QBarLegendMarker> for QLegendMarker[src]

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

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

impl DynamicCast<QBarLegendMarker> for QObject[src]

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

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

impl StaticDowncast<QBarLegendMarker> for QLegendMarker[src]

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

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

impl StaticDowncast<QBarLegendMarker> for QObject[src]

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

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

impl StaticUpcast<QLegendMarker> for QBarLegendMarker[src]

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

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

impl StaticUpcast<QObject> for QBarLegendMarker[src]

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

Calls C++ function: QObject* static_cast<QObject*>(QtCharts::QBarLegendMarker* 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.