[−][src]Struct qt_charts::QPieSlice
C++ class: QtCharts::QPieSlice
.
Methods
impl QPieSlice
[src]
pub fn clicked(&self) -> Signal<()>
[src]
This signal is emitted when the slice is clicked.
Returns a built-in Qt signal QtCharts::QPieSlice::clicked
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the slice is clicked.
See also QPieSeries::clicked().
pub fn hovered(&self) -> Signal<(bool,)>
[src]
This signal is emitted when a mouse is hovered over the slice. When the mouse moves over the slice, state turns true
, and when the mouse moves away again, it turns false
.
Returns a built-in Qt signal QtCharts::QPieSlice::hovered
that can be passed to qt_core::Signal::connect
.
This signal is emitted when a mouse is hovered over the slice. When the mouse moves over the slice, state turns true
, and when the mouse moves away again, it turns false
.
See also QPieSeries::hovered().
pub fn pressed(&self) -> Signal<()>
[src]
This signal is emitted when the user clicks the slice and holds down the mouse button.
Returns a built-in Qt signal QtCharts::QPieSlice::pressed
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the user clicks the slice and holds down the mouse button.
See also QPieSeries::pressed().
pub fn released(&self) -> Signal<()>
[src]
This signal is emitted when the user releases the mouse press on the slice.
Returns a built-in Qt signal QtCharts::QPieSlice::released
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the user releases the mouse press on the slice.
See also QPieSeries::released().
pub fn double_clicked(&self) -> Signal<()>
[src]
This signal is emitted when user double-clicks the slice.
Returns a built-in Qt signal QtCharts::QPieSlice::doubleClicked
that can be passed to qt_core::Signal::connect
.
This signal is emitted when user double-clicks the slice.
See also QPieSeries::doubleClicked().
pub fn label_changed(&self) -> Signal<()>
[src]
This signal is emitted when the slice label changes.
Returns a built-in Qt signal QtCharts::QPieSlice::labelChanged
that can be passed to qt_core::Signal::connect
.
pub fn value_changed(&self) -> Signal<()>
[src]
This signal is emitted when the slice value changes.
Returns a built-in Qt signal QtCharts::QPieSlice::valueChanged
that can be passed to qt_core::Signal::connect
.
pub fn label_visible_changed(&self) -> Signal<()>
[src]
This signal is emitted when the visibility of the slice label changes.
Returns a built-in Qt signal QtCharts::QPieSlice::labelVisibleChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the visibility of the slice label changes.
Note: Notifier signal for property labelVisible.
See also labelVisible.
pub fn pen_changed(&self) -> Signal<()>
[src]
This signal is emitted when the pen used to draw the slice border changes.
Returns a built-in Qt signal QtCharts::QPieSlice::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 fill the slice changes.
Returns a built-in Qt signal QtCharts::QPieSlice::brushChanged
that can be passed to qt_core::Signal::connect
.
pub fn label_brush_changed(&self) -> Signal<()>
[src]
This signal is emitted when the label brush of the slice changes.
Returns a built-in Qt signal QtCharts::QPieSlice::labelBrushChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the label brush of the slice changes.
Note: Notifier signal for property labelBrush.
See also labelBrush.
pub fn label_font_changed(&self) -> Signal<()>
[src]
This signal is emitted when the label font of the slice changes.
Returns a built-in Qt signal QtCharts::QPieSlice::labelFontChanged
that can be passed to qt_core::Signal::connect
.
pub fn percentage_changed(&self) -> Signal<()>
[src]
This signal is emitted when the percentage of the slice changes.
Returns a built-in Qt signal QtCharts::QPieSlice::percentageChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the percentage of the slice changes.
Note: Notifier signal for property percentage.
See also percentage.
pub fn start_angle_changed(&self) -> Signal<()>
[src]
This signal is emitted when the starting angle of the slice changes.
Returns a built-in Qt signal QtCharts::QPieSlice::startAngleChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the starting angle of the slice changes.
Note: Notifier signal for property startAngle.
See also startAngle.
pub fn angle_span_changed(&self) -> Signal<()>
[src]
This signal is emitted when the angle span of the slice changes.
Returns a built-in Qt signal QtCharts::QPieSlice::angleSpanChanged
that can be passed to qt_core::Signal::connect
.
pub fn color_changed(&self) -> Signal<()>
[src]
This signal is emitted when the slice color changes.
Returns a built-in Qt signal QtCharts::QPieSlice::colorChanged
that can be passed to qt_core::Signal::connect
.
pub fn border_color_changed(&self) -> Signal<()>
[src]
This signal is emitted when the slice border color changes.
Returns a built-in Qt signal QtCharts::QPieSlice::borderColorChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the slice border color changes.
Note: Notifier signal for property borderColor.
See also pen and borderColor.
pub fn border_width_changed(&self) -> Signal<()>
[src]
This signal is emitted when the slice border width changes.
Returns a built-in Qt signal QtCharts::QPieSlice::borderWidthChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the slice border width changes.
Note: Notifier signal for property borderWidth.
See also pen and borderWidth.
pub fn label_color_changed(&self) -> Signal<()>
[src]
This signal is emitted when the slice label color changes.
Returns a built-in Qt signal QtCharts::QPieSlice::labelColorChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the slice label color changes.
Note: Notifier signal for property labelColor.
See also labelColor.
pub unsafe fn angle_span(&self) -> c_double
[src]
This property holds the span of the slice in degrees. A full pie is 360 degrees, where 0 degrees is at 12 a'clock. Updated automatically once the slice is added to the series.
Calls C++ function: double QtCharts::QPieSlice::angleSpan() const
.
This property holds the span of the slice in degrees. A full pie is 360 degrees, where 0 degrees is at 12 a'clock. Updated automatically once the slice is added to the series.
Access functions:
qreal | angleSpan() const |
Notifier signal:
void | angleSpanChanged() |
pub unsafe fn border_color(&self) -> CppBox<QColor>
[src]
This property holds the color used to draw the slice border. This is a convenience property for modifying the slice pen.
Calls C++ function: QColor QtCharts::QPieSlice::borderColor()
.
This property holds the color used to draw the slice border. This is a convenience property for modifying the slice pen.
Access functions:
QColor | borderColor() |
void | setBorderColor(QColor color) |
Notifier signal:
void | borderColorChanged() |
See also pen and borderWidth.
pub unsafe fn border_width(&self) -> c_int
[src]
This property holds the width of the slice border. This is a convenience property for modifying the slice pen.
Calls C++ function: int QtCharts::QPieSlice::borderWidth()
.
This property holds the width of the slice border. This is a convenience property for modifying the slice pen.
Access functions:
int | borderWidth() |
void | setBorderWidth(int width) |
Notifier signal:
void | borderWidthChanged() |
See also pen and borderColor.
pub unsafe fn brush(&self) -> CppBox<QBrush>
[src]
This property holds the brush used to fill the slice.
Calls C++ function: QBrush QtCharts::QPieSlice::brush() const
.
This property holds the brush used to fill the slice.
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 slice. This is a convenience property for modifying the slice brush.
Calls C++ function: QColor QtCharts::QPieSlice::color()
.
This property holds the fill (brush) color of the slice. This is a convenience property for modifying the slice brush.
Access functions:
QColor | color() |
void | setColor(QColor color) |
Notifier signal:
void | colorChanged() |
See also brush.
pub unsafe fn explode_distance_factor(&self) -> c_double
[src]
Determines how far away from the pie the slice is exploded.
Calls C++ function: double QtCharts::QPieSlice::explodeDistanceFactor() const
.
Determines how far away from the pie the slice is exploded.
- 1.0 means that the distance is the same as the radius.
- 0.5 means that the distance is half of the radius.
By default, the distance is 0.15
Access functions:
qreal | explodeDistanceFactor() const |
void | setExplodeDistanceFactor(qreal factor) |
See also exploded.
pub unsafe fn is_exploded(&self) -> bool
[src]
This property holds whether the slice is separated from the pie.
Calls C++ function: bool QtCharts::QPieSlice::isExploded() const
.
This property holds whether the slice is separated from the pie.
Access functions:
bool | isExploded() const |
void | setExploded(bool exploded = true) |
See also explodeDistanceFactor.
pub unsafe fn is_label_visible(&self) -> bool
[src]
This property holds the visibility of the slice label. By default, the label is not visible.
Calls C++ function: bool QtCharts::QPieSlice::isLabelVisible() const
.
This property holds the visibility of the slice label. By default, the label is not visible.
Access functions:
bool | isLabelVisible() const |
void | setLabelVisible(bool visible = true) |
Notifier signal:
void | labelVisibleChanged() |
See also label, labelBrush, labelFont, and labelArmLengthFactor.
pub unsafe fn label(&self) -> CppBox<QString>
[src]
This property holds the label of the slice.
Calls C++ function: QString QtCharts::QPieSlice::label() const
.
This property holds the label of the slice.
Access functions:
QString | label() const |
void | setLabel(QString label) |
Notifier signal:
void | labelChanged() |
See also labelVisible, labelBrush, labelFont, and labelArmLengthFactor.
pub unsafe fn label_arm_length_factor(&self) -> c_double
[src]
This property holds the length of the label arm. The factor is relative to the pie radius. For example:
Calls C++ function: double QtCharts::QPieSlice::labelArmLengthFactor() const
.
This property holds the length of the label arm. The factor is relative to the pie radius. For example:
- 1.0 means that the length is the same as the radius.
- 0.5 means that the length is half of the radius.
By default, the arm length is 0.15
Access functions:
qreal | labelArmLengthFactor() const |
void | setLabelArmLengthFactor(qreal factor) |
See also label, labelVisible, labelBrush, and labelFont.
pub unsafe fn label_brush(&self) -> CppBox<QBrush>
[src]
This property holds the brush used to draw the label and label arm of the slice.
Calls C++ function: QBrush QtCharts::QPieSlice::labelBrush() const
.
This property holds the brush used to draw the label and label arm of the slice.
Access functions:
QBrush | labelBrush() const |
void | setLabelBrush(const QBrush &brush) |
Notifier signal:
void | labelBrushChanged() |
See also label, labelVisible, labelFont, and labelArmLengthFactor.
pub unsafe fn label_color(&self) -> CppBox<QColor>
[src]
This property holds the color used to draw the slice label. This is a convenience property for modifying the slice label brush.
Calls C++ function: QColor QtCharts::QPieSlice::labelColor()
.
This property holds the color used to draw the slice label. This is a convenience property for modifying the slice label brush.
Access functions:
QColor | labelColor() |
void | setLabelColor(QColor color) |
Notifier signal:
void | labelColorChanged() |
See also labelBrush.
pub unsafe fn label_font(&self) -> CppBox<QFont>
[src]
This property holds the font used for drawing the label text.
Calls C++ function: QFont QtCharts::QPieSlice::labelFont() const
.
This property holds the font used for drawing the label text.
Access functions:
QFont | labelFont() const |
void | setLabelFont(const QFont &font) |
Notifier signal:
void | labelFontChanged() |
See also label, labelVisible, and labelArmLengthFactor.
pub unsafe fn label_position(&self) -> LabelPosition
[src]
This property holds the position of the slice label.
Calls C++ function: QtCharts::QPieSlice::LabelPosition QtCharts::QPieSlice::labelPosition()
.
This property holds the position of the slice label.
Access functions:
QPieSlice::LabelPosition | labelPosition() |
void | setLabelPosition(QPieSlice::LabelPosition position) |
See also label and labelVisible.
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* QtCharts::QPieSlice::metaObject() const
.
pub unsafe fn new_1a(parent: impl CastInto<Ptr<QObject>>) -> QBox<QPieSlice>
[src]
Calls C++ function: [constructor] void QtCharts::QPieSlice::QPieSlice(QObject* parent = …)
.
pub unsafe fn new_3a(
label: impl CastInto<Ref<QString>>,
value: c_double,
parent: impl CastInto<Ptr<QObject>>
) -> QBox<QPieSlice>
[src]
label: impl CastInto<Ref<QString>>,
value: c_double,
parent: impl CastInto<Ptr<QObject>>
) -> QBox<QPieSlice>
Calls C++ function: [constructor] void QtCharts::QPieSlice::QPieSlice(QString label, double value, QObject* parent = …)
.
pub unsafe fn new_0a() -> QBox<QPieSlice>
[src]
Calls C++ function: [constructor] void QtCharts::QPieSlice::QPieSlice()
.
pub unsafe fn new_2a(
label: impl CastInto<Ref<QString>>,
value: c_double
) -> QBox<QPieSlice>
[src]
label: impl CastInto<Ref<QString>>,
value: c_double
) -> QBox<QPieSlice>
Calls C++ function: [constructor] void QtCharts::QPieSlice::QPieSlice(QString label, double value)
.
pub unsafe fn pen(&self) -> CppBox<QPen>
[src]
This property holds the pen used to draw the slice border.
Calls C++ function: QPen QtCharts::QPieSlice::pen() const
.
This property holds the pen used to draw the slice border.
Access functions:
QPen | pen() const |
void | setPen(const QPen &pen) |
Notifier signal:
void | penChanged() |
pub unsafe fn percentage(&self) -> c_double
[src]
This property holds the percentage of the slice compared to the sum of all slices in the series. The actual value ranges from 0.0 to 1.0. Updated automatically once the slice is added to the series.
Calls C++ function: double QtCharts::QPieSlice::percentage() const
.
This property holds the percentage of the slice compared to the sum of all slices in the series. The actual value ranges from 0.0 to 1.0. Updated automatically once the slice is added to the series.
Access functions:
qreal | percentage() const |
Notifier signal:
void | percentageChanged() |
See also value and QPieSeries::sum.
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::QPieSlice::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::QPieSlice::qt_metacast(const char* arg1)
.
pub unsafe fn series(&self) -> QPtr<QPieSeries>
[src]
Returns the series that this slice belongs to.
Calls C++ function: QtCharts::QPieSeries* QtCharts::QPieSlice::series() const
.
Returns the series that this slice belongs to.
See also QPieSeries::append().
pub unsafe fn set_border_color(&self, color: impl CastInto<Ref<QColor>>)
[src]
This property holds the color used to draw the slice border. This is a convenience property for modifying the slice pen.
Calls C++ function: void QtCharts::QPieSlice::setBorderColor(QColor color)
.
This property holds the color used to draw the slice border. This is a convenience property for modifying the slice pen.
Access functions:
QColor | borderColor() |
void | setBorderColor(QColor color) |
Notifier signal:
void | borderColorChanged() |
See also pen and borderWidth.
pub unsafe fn set_border_width(&self, width: c_int)
[src]
This property holds the width of the slice border. This is a convenience property for modifying the slice pen.
Calls C++ function: void QtCharts::QPieSlice::setBorderWidth(int width)
.
This property holds the width of the slice border. This is a convenience property for modifying the slice pen.
Access functions:
int | borderWidth() |
void | setBorderWidth(int width) |
Notifier signal:
void | borderWidthChanged() |
See also pen and borderColor.
pub unsafe fn set_brush(&self, brush: impl CastInto<Ref<QBrush>>)
[src]
This property holds the brush used to fill the slice.
Calls C++ function: void QtCharts::QPieSlice::setBrush(const QBrush& brush)
.
This property holds the brush used to fill the slice.
Access functions:
QBrush | brush() const |
void | setBrush(const QBrush &brush) |
Notifier signal:
void | brushChanged() |
pub unsafe fn set_color(&self, color: impl CastInto<Ref<QColor>>)
[src]
This property holds the fill (brush) color of the slice. This is a convenience property for modifying the slice brush.
Calls C++ function: void QtCharts::QPieSlice::setColor(QColor color)
.
This property holds the fill (brush) color of the slice. This is a convenience property for modifying the slice brush.
Access functions:
QColor | color() |
void | setColor(QColor color) |
Notifier signal:
void | colorChanged() |
See also brush.
pub unsafe fn set_explode_distance_factor(&self, factor: c_double)
[src]
Determines how far away from the pie the slice is exploded.
Calls C++ function: void QtCharts::QPieSlice::setExplodeDistanceFactor(double factor)
.
Determines how far away from the pie the slice is exploded.
- 1.0 means that the distance is the same as the radius.
- 0.5 means that the distance is half of the radius.
By default, the distance is 0.15
Access functions:
qreal | explodeDistanceFactor() const |
void | setExplodeDistanceFactor(qreal factor) |
See also exploded.
pub unsafe fn set_exploded_1a(&self, exploded: bool)
[src]
This property holds whether the slice is separated from the pie.
Calls C++ function: void QtCharts::QPieSlice::setExploded(bool exploded = …)
.
This property holds whether the slice is separated from the pie.
Access functions:
bool | isExploded() const |
void | setExploded(bool exploded = true) |
See also explodeDistanceFactor.
pub unsafe fn set_exploded_0a(&self)
[src]
This property holds whether the slice is separated from the pie.
Calls C++ function: void QtCharts::QPieSlice::setExploded()
.
This property holds whether the slice is separated from the pie.
Access functions:
bool | isExploded() const |
void | setExploded(bool exploded = true) |
See also explodeDistanceFactor.
pub unsafe fn set_label(&self, label: impl CastInto<Ref<QString>>)
[src]
This property holds the label of the slice.
Calls C++ function: void QtCharts::QPieSlice::setLabel(QString label)
.
This property holds the label of the slice.
Access functions:
QString | label() const |
void | setLabel(QString label) |
Notifier signal:
void | labelChanged() |
See also labelVisible, labelBrush, labelFont, and labelArmLengthFactor.
pub unsafe fn set_label_arm_length_factor(&self, factor: c_double)
[src]
This property holds the length of the label arm. The factor is relative to the pie radius. For example:
Calls C++ function: void QtCharts::QPieSlice::setLabelArmLengthFactor(double factor)
.
This property holds the length of the label arm. The factor is relative to the pie radius. For example:
- 1.0 means that the length is the same as the radius.
- 0.5 means that the length is half of the radius.
By default, the arm length is 0.15
Access functions:
qreal | labelArmLengthFactor() const |
void | setLabelArmLengthFactor(qreal factor) |
See also label, labelVisible, labelBrush, and labelFont.
pub unsafe fn set_label_brush(&self, brush: impl CastInto<Ref<QBrush>>)
[src]
This property holds the brush used to draw the label and label arm of the slice.
Calls C++ function: void QtCharts::QPieSlice::setLabelBrush(const QBrush& brush)
.
This property holds the brush used to draw the label and label arm of the slice.
Access functions:
QBrush | labelBrush() const |
void | setLabelBrush(const QBrush &brush) |
Notifier signal:
void | labelBrushChanged() |
See also label, labelVisible, labelFont, and labelArmLengthFactor.
pub unsafe fn set_label_color(&self, color: impl CastInto<Ref<QColor>>)
[src]
This property holds the color used to draw the slice label. This is a convenience property for modifying the slice label brush.
Calls C++ function: void QtCharts::QPieSlice::setLabelColor(QColor color)
.
This property holds the color used to draw the slice label. This is a convenience property for modifying the slice label brush.
Access functions:
QColor | labelColor() |
void | setLabelColor(QColor color) |
Notifier signal:
void | labelColorChanged() |
See also labelBrush.
pub unsafe fn set_label_font(&self, font: impl CastInto<Ref<QFont>>)
[src]
This property holds the font used for drawing the label text.
Calls C++ function: void QtCharts::QPieSlice::setLabelFont(const QFont& font)
.
This property holds the font used for drawing the label text.
Access functions:
QFont | labelFont() const |
void | setLabelFont(const QFont &font) |
Notifier signal:
void | labelFontChanged() |
See also label, labelVisible, and labelArmLengthFactor.
pub unsafe fn set_label_position(&self, position: LabelPosition)
[src]
This property holds the position of the slice label.
Calls C++ function: void QtCharts::QPieSlice::setLabelPosition(QtCharts::QPieSlice::LabelPosition position)
.
This property holds the position of the slice label.
Access functions:
QPieSlice::LabelPosition | labelPosition() |
void | setLabelPosition(QPieSlice::LabelPosition position) |
See also label and labelVisible.
pub unsafe fn set_label_visible_1a(&self, visible: bool)
[src]
This property holds the visibility of the slice label. By default, the label is not visible.
Calls C++ function: void QtCharts::QPieSlice::setLabelVisible(bool visible = …)
.
This property holds the visibility of the slice label. By default, the label is not visible.
Access functions:
bool | isLabelVisible() const |
void | setLabelVisible(bool visible = true) |
Notifier signal:
void | labelVisibleChanged() |
See also label, labelBrush, labelFont, and labelArmLengthFactor.
pub unsafe fn set_label_visible_0a(&self)
[src]
This property holds the visibility of the slice label. By default, the label is not visible.
Calls C++ function: void QtCharts::QPieSlice::setLabelVisible()
.
This property holds the visibility of the slice label. By default, the label is not visible.
Access functions:
bool | isLabelVisible() const |
void | setLabelVisible(bool visible = true) |
Notifier signal:
void | labelVisibleChanged() |
See also label, labelBrush, labelFont, and labelArmLengthFactor.
pub unsafe fn set_pen(&self, pen: impl CastInto<Ref<QPen>>)
[src]
This property holds the pen used to draw the slice border.
Calls C++ function: void QtCharts::QPieSlice::setPen(const QPen& pen)
.
This property holds the pen used to draw the slice border.
Access functions:
QPen | pen() const |
void | setPen(const QPen &pen) |
Notifier signal:
void | penChanged() |
pub unsafe fn set_value(&self, value: c_double)
[src]
This property holds the value of the slice.
Calls C++ function: void QtCharts::QPieSlice::setValue(double value)
.
This property holds the value of the slice.
Note: A negative value is converted to a positive value.
Access functions:
qreal | value() const |
void | setValue(qreal value) |
Notifier signal:
void | valueChanged() |
See also percentage() and QPieSeries::sum().
pub unsafe fn start_angle(&self) -> c_double
[src]
This property holds the starting angle of this slice in the series it belongs to. A full pie is 360 degrees, where 0 degrees is at 12 a'clock. Updated automatically once the slice is added to the series.
Calls C++ function: double QtCharts::QPieSlice::startAngle() const
.
This property holds the starting angle of this slice in the series it belongs to. A full pie is 360 degrees, where 0 degrees is at 12 a'clock. Updated automatically once the slice is added to the series.
Access functions:
qreal | startAngle() const |
Notifier signal:
void | startAngleChanged() |
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]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString QtCharts::QPieSlice::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::QPieSlice::trUtf8(const char* s, const char* c, int n)
.
pub unsafe fn value(&self) -> c_double
[src]
This property holds the value of the slice.
Calls C++ function: double QtCharts::QPieSlice::value() const
.
This property holds the value of the slice.
Note: A negative value is converted to a positive value.
Access functions:
qreal | value() const |
void | setValue(qreal value) |
Notifier signal:
void | valueChanged() |
See also percentage() and QPieSeries::sum().
Trait Implementations
impl CppDeletable for QPieSlice
[src]
unsafe fn delete(&self)
[src]
Removes the slice. The slice should not be removed if it has been added to a series.
Calls C++ function: virtual [destructor] void QtCharts::QPieSlice::~QPieSlice()
.
Removes the slice. The slice should not be removed if it has been added to a series.
impl Deref for QPieSlice
[src]
type Target = QObject
The resulting type after dereferencing.
fn deref(&self) -> &QObject
[src]
Calls C++ function: QObject* static_cast<QObject*>(QtCharts::QPieSlice* ptr)
.
impl DynamicCast<QPieSlice> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QPieSlice>
[src]
Calls C++ function: QtCharts::QPieSlice* dynamic_cast<QtCharts::QPieSlice*>(QObject* ptr)
.
impl StaticDowncast<QPieSlice> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QPieSlice>
[src]
Calls C++ function: QtCharts::QPieSlice* static_cast<QtCharts::QPieSlice*>(QObject* ptr)
.
impl StaticUpcast<QObject> for QPieSlice
[src]
Auto Trait Implementations
impl RefUnwindSafe for QPieSlice
impl Send for QPieSlice
impl Sync for QPieSlice
impl Unpin for QPieSlice
impl UnwindSafe for QPieSlice
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>,