[−][src]Struct qt_charts::QBarSet
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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)
.
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]
&self,
values: impl CastInto<Ref<QListOfDouble>>
)
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)
.
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
.
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()
.
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
.
This property holds the brush used to fill the bars in the bar set.
Access functions:
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()
.
This property holds the fill (brush) color of the bar set.
Access functions:
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
.
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
.
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)
.
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
.
This property holds the label of the bar set.
Access functions:
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
.
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:
void | labelBrushChanged() |
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()
.
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
.
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:
void | labelFontChanged() |
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]
label: impl CastInto<Ref<QString>>,
parent: impl CastInto<Ptr<QObject>>
) -> QBox<QBarSet>
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
.
This property holds the pen used to draw the lines of bars in the bar set.
Access functions:
Notifier signal:
void | penChanged() |
pub unsafe fn qt_metacall(
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
[src]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
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 = …)
.
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)
.
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)
.
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)
.
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)
.
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)
.
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)
.
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)
.
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)
.
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)
.
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)
.
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
.
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]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
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]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
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()
.
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)
.
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]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,