[][src]Struct qt_charts::QPieSlice

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

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

This signal is emitted when the slice label changes.

Note: Notifier signal for property label.

See also label.

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.

C++ documentation:

This signal is emitted when the slice value changes.

Note: Notifier signal for property value.

See also value.

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.

C++ documentation:

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.

C++ documentation:

This signal is emitted when the pen used to draw the slice border 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 fill the slice changes.

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

C++ documentation:

This signal is emitted when the brush used to fill the slice changes.

Note: Notifier signal for property brush.

See also brush.

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.

C++ documentation:

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.

C++ documentation:

This signal is emitted when the label font of the slice changes.

Note: Notifier signal for property labelFont.

See also labelFont.

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

This signal is emitted when the angle span of the slice changes.

Note: Notifier signal for property angleSpan.

See also angleSpan.

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.

C++ documentation:

This signal is emitted when the slice color changes.

Note: Notifier signal for property color.

See also brush.

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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:

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().

C++ documentation:

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:

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().

C++ documentation:

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:

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.

C++ documentation:

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().

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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:

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().

C++ documentation:

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:

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.

C++ documentation:

This property holds the font used for drawing the label text.

Access functions:

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

Notifier signal:

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().

C++ documentation:

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]

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]

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.

C++ documentation:

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.

C++ documentation:

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:

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]

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.

C++ documentation:

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).

C++ documentation:

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:

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).

C++ documentation:

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:

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).

C++ documentation:

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).

C++ documentation:

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).

C++ documentation:

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 = …).

C++ documentation:

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().

C++ documentation:

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).

C++ documentation:

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).

C++ documentation:

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).

C++ documentation:

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:

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).

C++ documentation:

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:

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).

C++ documentation:

This property holds the font used for drawing the label text.

Access functions:

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

Notifier signal:

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).

C++ documentation:

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 = …).

C++ documentation:

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:

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().

C++ documentation:

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:

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).

C++ documentation:

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).

C++ documentation:

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.

C++ documentation:

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:

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::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]

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.

C++ documentation:

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().

C++ documentation:

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]

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

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