[][src]Struct qt_charts::QBarSet

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

C++ class: QtCharts::QBarSet.

Methods

impl QBarSet[src]

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

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

Returns a built-in Qt signal QtCharts::QBarSet::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 a bar set.

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

This signal is emitted when a mouse is hovered over the bar specified by index in a bar set. 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::QBarSet::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 a bar set. 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,)>[src]

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

Returns a built-in Qt signal QtCharts::QBarSet::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 a bar set and holds down the mouse button.

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

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

Returns a built-in Qt signal QtCharts::QBarSet::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 a bar set.

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

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

Returns a built-in Qt signal QtCharts::QBarSet::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 a bar set.

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

This signal is emitted when the pen used to draw the bar set changes.

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

C++ documentation:

This signal is emitted when the pen used to draw the bar set changes.

Note: Notifier signal for property pen.

See also pen.

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

This signal is emitted when the brush used to draw the bar set changes.

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

C++ documentation:

This signal is emitted when the brush used to draw the bar set changes.

Note: Notifier signal for property brush.

See also brush.

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

This signal is emitted when the label of the bar set changes.

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

C++ documentation:

This signal is emitted when the label of the bar set changes.

Note: Notifier signal for property label.

See also label.

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

This signal is emitted when the brush used to draw the bar set's label changes.

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

C++ documentation:

This signal is emitted when the brush used to draw the bar set's label changes.

Note: Notifier signal for property labelBrush.

See also labelBrush.

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

This signal is emitted when the font of the bar set's label changes.

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

C++ documentation:

This signal is emitted when the font of the bar set's label changes.

Note: Notifier signal for property labelFont.

See also labelBrush.

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

This signal is emitted when the fill (brush) color of the bar set changes to color.

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

C++ documentation:

This signal is emitted when the fill (brush) color of the bar set changes to color.

Note: Notifier signal for property color.

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

This signal is emitted when the line (pen) color of the bar set changes to color.

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

C++ documentation:

This signal is emitted when the line (pen) color of the bar set changes to color.

Note: Notifier signal for property borderColor.

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

This signal is emitted when the text (label) color of the bar set changes to color.

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

C++ documentation:

This signal is emitted when the text (label) color of the bar set changes to color.

Note: Notifier signal for property labelColor.

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

This signal is emitted when new values are added to the bar set. index indicates the position of the first inserted value, and count is the number of inserted values.

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

C++ documentation:

This signal is emitted when new values are added to the bar set. index indicates the position of the first inserted value, and count is the number of inserted values.

See also append() and insert().

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

This signal is emitted when values are removed from the bar set. index indicates the position of the first removed value, and count is the number of removed values.

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

C++ documentation:

This signal is emitted when values are removed from the bar set. index indicates the position of the first removed value, and count is the number of removed values.

See also remove().

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

This signal is emitted when the value at the position specified by index is modified.

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

C++ documentation:

This signal is emitted when the value at the position specified by index is modified.

See also at().

pub unsafe fn append_double(&self, value: c_double)[src]

Appends the new value specified by value to the end of the bar set.

Calls C++ function: void QtCharts::QBarSet::append(double value).

C++ documentation:

Appends the new value specified by value to the end of the bar set.

pub unsafe fn append_q_list_of_double(
    &self,
    values: impl CastInto<Ref<QListOfDouble>>
)
[src]

Appends the list of real values specified by values to the end of the bar set.

Calls C++ function: void QtCharts::QBarSet::append(const QList<double>& values).

C++ documentation:

Appends the list of real values specified by values to the end of the bar set.

See also append().

pub unsafe fn at(&self, index: c_int) -> c_double[src]

Returns the value specified by index from the bar set. If the index is out of bounds, 0.0 is returned.

Calls C++ function: double QtCharts::QBarSet::at(int index) const.

C++ documentation:

Returns the value specified by index from the bar set. If the index is out of bounds, 0.0 is returned.

pub unsafe fn border_color(&self) -> CppBox<QColor>[src]

This property holds the line (pen) color of the bar set.

Calls C++ function: QColor QtCharts::QBarSet::borderColor().

C++ documentation:

This property holds the line (pen) color of the bar set.

Access functions:

QColor borderColor()
void setBorderColor(QColor color)

Notifier signal:

void borderColorChanged(QColor color)

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

This property holds the brush used to fill the bars in the bar set.

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

C++ documentation:

This property holds the brush used to fill the bars in the bar set.

Access functions:

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

Notifier signal:

void brushChanged()

pub unsafe fn color(&self) -> CppBox<QColor>[src]

This property holds the fill (brush) color of the bar set.

Calls C++ function: QColor QtCharts::QBarSet::color().

C++ documentation:

This property holds the fill (brush) color of the bar set.

Access functions:

QColor color()
void setColor(QColor color)

Notifier signal:

void colorChanged(QColor color)

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

Returns the number of values in a bar set.

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

C++ documentation:

Returns the number of values in a bar set.

pub unsafe fn index(&self, index: c_int) -> c_double[src]

Returns the value of the bar set specified by index. If the index is out of bounds, 0.0 is returned.

Calls C++ function: double QtCharts::QBarSet::operator[](int index) const.

C++ documentation:

Returns the value of the bar set specified by index. If the index is out of bounds, 0.0 is returned.

pub unsafe fn insert(&self, index: c_int, value: c_double)[src]

Inserts value in the position specified by index. The values following the inserted value are moved up one position.

Calls C++ function: void QtCharts::QBarSet::insert(int index, double value).

C++ documentation:

Inserts value in the position specified by index. The values following the inserted value are moved up one position.

See also remove().

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

This property holds the label of the bar set.

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

C++ documentation:

This property holds the label of the bar set.

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 used to draw the bar set's label.

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

C++ documentation:

This property holds the brush used to draw the bar set's label.

Access functions:

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

Notifier signal:

pub unsafe fn label_color(&self) -> CppBox<QColor>[src]

This property holds the text (label) color of the bar set.

Calls C++ function: QColor QtCharts::QBarSet::labelColor().

C++ documentation:

This property holds the text (label) color of the bar set.

Access functions:

QColor labelColor()
void setLabelColor(QColor color)

Notifier signal:

void labelColorChanged(QColor color)

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

This property holds the font used to draw the bar set's label.

Calls C++ function: QFont QtCharts::QBarSet::labelFont() const.

C++ documentation:

This property holds the font used to draw the bar set's label.

Access functions:

QFont labelFont() const
void setLabelFont(const QFont &font)

Notifier signal:

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

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

pub unsafe fn new_2a(
    label: impl CastInto<Ref<QString>>,
    parent: impl CastInto<Ptr<QObject>>
) -> QBox<QBarSet>
[src]

Calls C++ function: [constructor] void QtCharts::QBarSet::QBarSet(QString label, QObject* parent = …).

pub unsafe fn new_1a(label: impl CastInto<Ref<QString>>) -> QBox<QBarSet>[src]

Calls C++ function: [constructor] void QtCharts::QBarSet::QBarSet(QString label).

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

This property holds the pen used to draw the lines of bars in the bar set.

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

C++ documentation:

This property holds the pen used to draw the lines of bars in the bar set.

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

pub unsafe fn remove_2a(&self, index: c_int, count: c_int)[src]

Removes the number of values specified by count from the bar set starting with the value specified by index.

Calls C++ function: void QtCharts::QBarSet::remove(int index, int count = …).

C++ documentation:

Removes the number of values specified by count from the bar set starting with the value specified by index.

See also insert().

pub unsafe fn remove_1a(&self, index: c_int)[src]

Removes the number of values specified by count from the bar set starting with the value specified by index.

Calls C++ function: void QtCharts::QBarSet::remove(int index).

C++ documentation:

Removes the number of values specified by count from the bar set starting with the value specified by index.

See also insert().

pub unsafe fn replace(&self, index: c_int, value: c_double)[src]

Adds the value specified by value to the bar set at the position specified by index.

Calls C++ function: void QtCharts::QBarSet::replace(int index, double value).

C++ documentation:

Adds the value specified by value to the bar set at the position specified by index.

pub unsafe fn set_border_color(&self, color: impl CastInto<Ref<QColor>>)[src]

Sets the line color for the bar set to color.

Calls C++ function: void QtCharts::QBarSet::setBorderColor(QColor color).

C++ documentation:

Sets the line color for the bar set to color.

Note: Setter function for property borderColor.

See also borderColor().

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

Sets the brush used to fill the bars in the bar set to brush.

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

C++ documentation:

Sets the brush used to fill the bars in the bar set to brush.

Note: Setter function for property brush.

See also brush().

pub unsafe fn set_color(&self, color: impl CastInto<Ref<QColor>>)[src]

Sets the fill color for the bar set to color.

Calls C++ function: void QtCharts::QBarSet::setColor(QColor color).

C++ documentation:

Sets the fill color for the bar set to color.

Note: Setter function for property color.

See also color().

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

Sets label as the new label for the bar set.

Calls C++ function: void QtCharts::QBarSet::setLabel(QString label).

C++ documentation:

Sets label as the new label for the bar set.

Note: Setter function for property label.

See also label().

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

Sets the brush used to draw values on top of this bar set to brush.

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

C++ documentation:

Sets the brush used to draw values on top of this bar set to brush.

Note: Setter function for property labelBrush.

See also labelBrush().

pub unsafe fn set_label_color(&self, color: impl CastInto<Ref<QColor>>)[src]

Sets the text color for the bar set to color.

Calls C++ function: void QtCharts::QBarSet::setLabelColor(QColor color).

C++ documentation:

Sets the text color for the bar set to color.

Note: Setter function for property labelColor.

See also labelColor().

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

Sets the font used to draw values on top of this bar set to font.

Calls C++ function: void QtCharts::QBarSet::setLabelFont(const QFont& font).

C++ documentation:

Sets the font used to draw values on top of this bar set to font.

Note: Setter function for property labelFont.

See also labelFont().

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

Sets the pen used to draw the lines in the bar set to pen.

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

C++ documentation:

Sets the pen used to draw the lines in the bar set to pen.

Note: Setter function for property pen.

See also pen().

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

Returns a reference to the staticMetaObject field.

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

Returns the sum of all values in the bar set.

Calls C++ function: double QtCharts::QBarSet::sum() const.

C++ documentation:

Returns the sum of all values in the bar set.

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

Calls C++ function: static QString QtCharts::QBarSet::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::QBarSet::trUtf8(const char* s, const char* c, int n).

Trait Implementations

impl CppDeletable for QBarSet[src]

unsafe fn delete(&self)[src]

Removes the bar set.

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

C++ documentation:

Removes the bar set.

impl Deref for QBarSet[src]

type Target = QObject

The resulting type after dereferencing.

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

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

impl DynamicCast<QBarSet> for QObject[src]

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

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

impl<'_> Shl<*const f64> for &'_ QBarSet[src]

type Output = Ref<QBarSet>

The resulting type after applying the << operator.

fn shl(self, value: *const c_double) -> Ref<QBarSet>[src]

A convenience operator for appending the real value specified by value to the end of the bar set.

Calls C++ function: QtCharts::QBarSet& QtCharts::QBarSet::operator<<(const double& value).

C++ documentation:

A convenience operator for appending the real value specified by value to the end of the bar set.

See also append().

impl StaticDowncast<QBarSet> for QObject[src]

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

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

impl StaticUpcast<QObject> for QBarSet[src]

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

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

Auto Trait Implementations

impl RefUnwindSafe for QBarSet

impl Send for QBarSet

impl Sync for QBarSet

impl Unpin for QBarSet

impl UnwindSafe for QBarSet

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.