[][src]Struct qt_charts::QStackedBarSeries

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

C++ class: QtCharts::QStackedBarSeries.

Methods

impl QStackedBarSeries[src]

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

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

pub unsafe fn new_1a(
    parent: impl CastInto<Ptr<QObject>>
) -> QBox<QStackedBarSeries>
[src]

Calls C++ function: [constructor] void QtCharts::QStackedBarSeries::QStackedBarSeries(QObject* parent = …).

pub unsafe fn new_0a() -> QBox<QStackedBarSeries>[src]

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

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::QStackedBarSeries::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::QStackedBarSeries::qt_metacast(const char* arg1).

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::QStackedBarSeries::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::QStackedBarSeries::trUtf8(const char* s, const char* c, int n).

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

Reimplements: QAbstractSeries::type() const.

Calls C++ function: virtual QtCharts::QAbstractSeries::SeriesType QtCharts::QStackedBarSeries::type() const.

C++ documentation:

Reimplements: QAbstractSeries::type() const.

Returns the stacked bar series.

Methods from Deref<Target = QAbstractBarSeries>

pub fn clicked(&self) -> Signal<(c_int, *mut QBarSet)>[src]

This signal is emitted when the user clicks the bar specified by index in the bar set specified by barset.

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

C++ documentation:

This signal is emitted when the user clicks the bar specified by index in the bar set specified by barset.

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

This signal is emitted when a mouse is hovered over the bar specified by index in the bar set specified by barset. When the mouse moves over the bar, status turns true, and when the mouse moves away again, it turns false.

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

C++ documentation:

This signal is emitted when a mouse is hovered over the bar specified by index in the bar set specified by barset. When the mouse moves over the bar, status turns true, and when the mouse moves away again, it turns false.

pub fn pressed(&self) -> Signal<(c_int, *mut QBarSet)>[src]

This signal is emitted when the user clicks the bar specified by index in the bar set specified by barset and holds down the mouse button.

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

C++ documentation:

This signal is emitted when the user clicks the bar specified by index in the bar set specified by barset and holds down the mouse button.

pub fn released(&self) -> Signal<(c_int, *mut QBarSet)>[src]

This signal is emitted when the user releases the mouse press on the bar specified by index in the bar set specified by barset.

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

C++ documentation:

This signal is emitted when the user releases the mouse press on the bar specified by index in the bar set specified by barset.

pub fn double_clicked(&self) -> Signal<(c_int, *mut QBarSet)>[src]

This signal is emitted when the user double-clicks the bar specified by index in the bar set specified by barset.

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

C++ documentation:

This signal is emitted when the user double-clicks the bar specified by index in the bar set specified by barset.

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

This signal is emitted when the number of bar sets is changed, for example by append() or remove().

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

C++ documentation:

This signal is emitted when the number of bar sets is changed, for example by append() or remove().

Note: Notifier signal for property count.

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

This signal is emitted when the labels' visibility changes.

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

C++ documentation:

This signal is emitted when the labels' visibility changes.

Note: Notifier signal for property labelsVisible.

See also isLabelsVisible() and setLabelsVisible().

pub fn labels_format_changed(&self) -> Signal<(*const QString,)>[src]

This signal is emitted when the format of data value labels changes.

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

C++ documentation:

This signal is emitted when the format of data value labels changes.

Note: Notifier signal for property labelsFormat.

pub fn labels_position_changed(&self) -> Signal<(LabelsPosition,)>[src]

This signal is emitted when the position of value labels changes.

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

C++ documentation:

This signal is emitted when the position of value labels changes.

Note: Notifier signal for property labelsPosition.

pub fn labels_angle_changed(&self) -> Signal<(c_double,)>[src]

This signal is emitted when the angle of the value labels changes.

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

C++ documentation:

This signal is emitted when the angle of the value labels changes.

Note: Notifier signal for property labelsAngle.

pub fn labels_precision_changed(&self) -> Signal<(c_int,)>[src]

This signal is emitted when the precision of the value labels changes.

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

C++ documentation:

This signal is emitted when the precision of the value labels changes.

Note: Notifier signal for property labelsPrecision.

pub fn barsets_added(&self) -> Signal<(*const QListOfQBarSet,)>[src]

This signal is emitted when the bar sets specified by sets are added to the series.

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

C++ documentation:

This signal is emitted when the bar sets specified by sets are added to the series.

See also append() and insert().

pub fn barsets_removed(&self) -> Signal<(*const QListOfQBarSet,)>[src]

This signal is emitted when the bar sets specified by sets are removed from the series.

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

C++ documentation:

This signal is emitted when the bar sets specified by sets are removed from the series.

See also remove().

pub unsafe fn append_q_bar_set(&self, set: impl CastInto<Ptr<QBarSet>>) -> bool[src]

Adds a set of bars specified by set to the bar series and takes ownership of it. If the set is null or it already belongs to the series, it will not be appended. Returns true if appending succeeded.

Calls C++ function: bool QtCharts::QAbstractBarSeries::append(QtCharts::QBarSet* set).

C++ documentation:

Adds a set of bars specified by set to the bar series and takes ownership of it. If the set is null or it already belongs to the series, it will not be appended. Returns true if appending succeeded.

pub unsafe fn append_q_list_of_q_bar_set(
    &self,
    sets: impl CastInto<Ref<QListOfQBarSet>>
) -> bool
[src]

Adds a list of bar sets specified by sets to a bar series and takes ownership of the sets. Returns true if all sets were appended successfully. If any of the sets is null or was previously appended to the series, nothing is appended and this function returns false. If any of the sets appears in the list more than once, nothing is appended and this function returns false.

Calls C++ function: bool QtCharts::QAbstractBarSeries::append(QList<QtCharts::QBarSet*> sets).

C++ documentation:

Adds a list of bar sets specified by sets to a bar series and takes ownership of the sets. Returns true if all sets were appended successfully. If any of the sets is null or was previously appended to the series, nothing is appended and this function returns false. If any of the sets appears in the list more than once, nothing is appended and this function returns false.

pub unsafe fn bar_sets(&self) -> CppBox<QListOfQBarSet>[src]

Returns a list of bar sets in a bar series. Keeps the ownership of the bar sets.

Calls C++ function: QList<QtCharts::QBarSet*> QtCharts::QAbstractBarSeries::barSets() const.

C++ documentation:

Returns a list of bar sets in a bar series. Keeps the ownership of the bar sets.

pub unsafe fn bar_width(&self) -> c_double[src]

This property holds the width of the bars of the series.

Calls C++ function: double QtCharts::QAbstractBarSeries::barWidth() const.

C++ documentation:

This property holds the width of the bars of the series.

The unit of width is the unit of the x-axis. The minimum width for bars is zero, and negative values are treated as zero. Setting the width to zero means that the width of the bar on the screen is one pixel regardless of the scale of the x-axis. Bars wider than zero are scaled using the x-axis scale.

Note: When used with QBarSeries, this value specifies the width of a group of bars instead of that of a single bar.

Access functions:

qreal barWidth() const
void setBarWidth(qreal width)

See also QBarSeries.

pub unsafe fn clear(&self)[src]

Removes all bar sets from the series and permanently deletes them.

Calls C++ function: void QtCharts::QAbstractBarSeries::clear().

C++ documentation:

Removes all bar sets from the series and permanently deletes them.

pub unsafe fn count(&self) -> c_int[src]

This property holds the number of bar sets in a bar series.

Calls C++ function: int QtCharts::QAbstractBarSeries::count() const.

C++ documentation:

This property holds the number of bar sets in a bar series.

Access functions:

int count() const

Notifier signal:

void countChanged()

pub unsafe fn insert(
    &self,
    index: c_int,
    set: impl CastInto<Ptr<QBarSet>>
) -> bool
[src]

Inserts a bar set specified by set to a series at the position specified by index and takes ownership of the set. If the set is null or already belongs to the series, it will not be appended. Returns true if inserting succeeds.

Calls C++ function: bool QtCharts::QAbstractBarSeries::insert(int index, QtCharts::QBarSet* set).

C++ documentation:

Inserts a bar set specified by set to a series at the position specified by index and takes ownership of the set. If the set is null or already belongs to the series, it will not be appended. Returns true if inserting succeeds.

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

Returns the visibility of labels.

Calls C++ function: bool QtCharts::QAbstractBarSeries::isLabelsVisible() const.

C++ documentation:

Returns the visibility of labels.

Note: Getter function for property labelsVisible.

pub unsafe fn labels_angle(&self) -> c_double[src]

This property holds the angle of the value labels in degrees.

Calls C++ function: double QtCharts::QAbstractBarSeries::labelsAngle() const.

C++ documentation:

This property holds the angle of the value labels in degrees.

Access functions:

qreal labelsAngle() const
void setLabelsAngle(qreal angle)

Notifier signal:

void labelsAngleChanged(qreal angle)

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

This property holds the format used for showing labels in a bar series.

Calls C++ function: QString QtCharts::QAbstractBarSeries::labelsFormat() const.

C++ documentation:

This property holds the format used for showing labels in a bar series.

QAbstractBarSeries supports the following format tag:

@valueThe value of the bar

For example, the following usage of the format tags would produce labels that show the value followed by the unit (u):

series->setLabelsFormat("@value u");

By default, the labels show the value of the bar. For the percent bar series, % is added after the value. The labels are shown on the plot area, whereas labels on the edge of the plot area are cut. If the bars are close to each other, the labels may overlap.

Access functions:

QString labelsFormat() const
void setLabelsFormat(const QString &format)

Notifier signal:

void labelsFormatChanged(const QString &format)

See also labelsVisible, labelsPosition, and labelsPrecision.

pub unsafe fn labels_position(&self) -> LabelsPosition[src]

This property holds the position of value labels.

Calls C++ function: QtCharts::QAbstractBarSeries::LabelsPosition QtCharts::QAbstractBarSeries::labelsPosition() const.

C++ documentation:

This property holds the position of value labels.

Access functions:

QAbstractBarSeries::LabelsPosition labelsPosition() const
void setLabelsPosition(QAbstractBarSeries::LabelsPosition position)

Notifier signal:

void labelsPositionChanged(QAbstractBarSeries::LabelsPosition position)

See also labelsVisible and labelsFormat.

pub unsafe fn labels_precision(&self) -> c_int[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.14.0" only.

This property holds the maximum amount of significant digits shown in value labels.

Calls C++ function: int QtCharts::QAbstractBarSeries::labelsPrecision() const.

C++ documentation:

This property holds the maximum amount of significant digits shown in value labels.

Default value is 6.

Access functions:

int labelsPrecision() const
void setLabelsPrecision(int precision)

Notifier signal:

void labelsPrecisionChanged(int precision)

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

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

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::QAbstractBarSeries::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::QAbstractBarSeries::qt_metacast(const char* arg1).

pub unsafe fn remove(&self, set: impl CastInto<Ptr<QBarSet>>) -> bool[src]

Removes the bar set specified by set from the series and permanently deletes it if the removal succeeds. Returns true if the set was removed.

Calls C++ function: bool QtCharts::QAbstractBarSeries::remove(QtCharts::QBarSet* set).

C++ documentation:

Removes the bar set specified by set from the series and permanently deletes it if the removal succeeds. Returns true if the set was removed.

pub unsafe fn set_bar_width(&self, width: c_double)[src]

Sets the width of the bars of the series to width.

Calls C++ function: void QtCharts::QAbstractBarSeries::setBarWidth(double width).

C++ documentation:

Sets the width of the bars of the series to width.

Note: Setter function for property barWidth.

See also barWidth().

pub unsafe fn set_labels_angle(&self, angle: c_double)[src]

This property holds the angle of the value labels in degrees.

Calls C++ function: void QtCharts::QAbstractBarSeries::setLabelsAngle(double angle).

C++ documentation:

This property holds the angle of the value labels in degrees.

Access functions:

qreal labelsAngle() const
void setLabelsAngle(qreal angle)

Notifier signal:

void labelsAngleChanged(qreal angle)

pub unsafe fn set_labels_format(&self, format: impl CastInto<Ref<QString>>)[src]

This property holds the format used for showing labels in a bar series.

Calls C++ function: void QtCharts::QAbstractBarSeries::setLabelsFormat(const QString& format).

C++ documentation:

This property holds the format used for showing labels in a bar series.

QAbstractBarSeries supports the following format tag:

@valueThe value of the bar

For example, the following usage of the format tags would produce labels that show the value followed by the unit (u):

series->setLabelsFormat("@value u");

By default, the labels show the value of the bar. For the percent bar series, % is added after the value. The labels are shown on the plot area, whereas labels on the edge of the plot area are cut. If the bars are close to each other, the labels may overlap.

Access functions:

QString labelsFormat() const
void setLabelsFormat(const QString &format)

Notifier signal:

void labelsFormatChanged(const QString &format)

See also labelsVisible, labelsPosition, and labelsPrecision.

pub unsafe fn set_labels_position(&self, position: LabelsPosition)[src]

This property holds the position of value labels.

Calls C++ function: void QtCharts::QAbstractBarSeries::setLabelsPosition(QtCharts::QAbstractBarSeries::LabelsPosition position).

C++ documentation:

This property holds the position of value labels.

Access functions:

QAbstractBarSeries::LabelsPosition labelsPosition() const
void setLabelsPosition(QAbstractBarSeries::LabelsPosition position)

Notifier signal:

void labelsPositionChanged(QAbstractBarSeries::LabelsPosition position)

See also labelsVisible and labelsFormat.

pub unsafe fn set_labels_precision(&self, precision: c_int)[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.14.0" only.

This property holds the maximum amount of significant digits shown in value labels.

Calls C++ function: void QtCharts::QAbstractBarSeries::setLabelsPrecision(int precision).

C++ documentation:

This property holds the maximum amount of significant digits shown in value labels.

Default value is 6.

Access functions:

int labelsPrecision() const
void setLabelsPrecision(int precision)

Notifier signal:

void labelsPrecisionChanged(int precision)

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

Sets the visibility of labels in a bar series to visible.

Calls C++ function: void QtCharts::QAbstractBarSeries::setLabelsVisible(bool visible = …).

C++ documentation:

Sets the visibility of labels in a bar series to visible.

Note: Setter function for property labelsVisible.

See also isLabelsVisible().

pub unsafe fn set_labels_visible_0a(&self)[src]

Sets the visibility of labels in a bar series to visible.

Calls C++ function: void QtCharts::QAbstractBarSeries::setLabelsVisible().

C++ documentation:

Sets the visibility of labels in a bar series to visible.

Note: Setter function for property labelsVisible.

See also isLabelsVisible().

pub unsafe fn take(&self, set: impl CastInto<Ptr<QBarSet>>) -> bool[src]

Takes a single set from the series. Does not delete the bar set object.

Calls C++ function: bool QtCharts::QAbstractBarSeries::take(QtCharts::QBarSet* set).

C++ documentation:

Takes a single set from the series. Does not delete the bar set object.

Note: The series remains the barset's parent object. You must set the parent object to take full ownership.

Returns true if the take operation succeeds.

Trait Implementations

impl CppDeletable for QStackedBarSeries[src]

unsafe fn delete(&self)[src]

Removes the bar series from the chart.

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

C++ documentation:

Removes the bar series from the chart.

impl Deref for QStackedBarSeries[src]

type Target = QAbstractBarSeries

The resulting type after dereferencing.

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

Calls C++ function: QtCharts::QAbstractBarSeries* static_cast<QtCharts::QAbstractBarSeries*>(QtCharts::QStackedBarSeries* ptr).

impl DynamicCast<QStackedBarSeries> for QAbstractBarSeries[src]

unsafe fn dynamic_cast(ptr: Ptr<QAbstractBarSeries>) -> Ptr<QStackedBarSeries>[src]

Calls C++ function: QtCharts::QStackedBarSeries* dynamic_cast<QtCharts::QStackedBarSeries*>(QtCharts::QAbstractBarSeries* ptr).

impl DynamicCast<QStackedBarSeries> for QAbstractSeries[src]

unsafe fn dynamic_cast(ptr: Ptr<QAbstractSeries>) -> Ptr<QStackedBarSeries>[src]

Calls C++ function: QtCharts::QStackedBarSeries* dynamic_cast<QtCharts::QStackedBarSeries*>(QtCharts::QAbstractSeries* ptr).

impl DynamicCast<QStackedBarSeries> for QObject[src]

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

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

impl StaticDowncast<QStackedBarSeries> for QAbstractBarSeries[src]

unsafe fn static_downcast(
    ptr: Ptr<QAbstractBarSeries>
) -> Ptr<QStackedBarSeries>
[src]

Calls C++ function: QtCharts::QStackedBarSeries* static_cast<QtCharts::QStackedBarSeries*>(QtCharts::QAbstractBarSeries* ptr).

impl StaticDowncast<QStackedBarSeries> for QAbstractSeries[src]

unsafe fn static_downcast(ptr: Ptr<QAbstractSeries>) -> Ptr<QStackedBarSeries>[src]

Calls C++ function: QtCharts::QStackedBarSeries* static_cast<QtCharts::QStackedBarSeries*>(QtCharts::QAbstractSeries* ptr).

impl StaticDowncast<QStackedBarSeries> for QObject[src]

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

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

impl StaticUpcast<QAbstractBarSeries> for QStackedBarSeries[src]

unsafe fn static_upcast(ptr: Ptr<QStackedBarSeries>) -> Ptr<QAbstractBarSeries>[src]

Calls C++ function: QtCharts::QAbstractBarSeries* static_cast<QtCharts::QAbstractBarSeries*>(QtCharts::QStackedBarSeries* ptr).

impl StaticUpcast<QAbstractSeries> for QStackedBarSeries[src]

unsafe fn static_upcast(ptr: Ptr<QStackedBarSeries>) -> Ptr<QAbstractSeries>[src]

Calls C++ function: QtCharts::QAbstractSeries* static_cast<QtCharts::QAbstractSeries*>(QtCharts::QStackedBarSeries* ptr).

impl StaticUpcast<QObject> for QStackedBarSeries[src]

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

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