[][src]Struct qt_charts::QAreaSeries

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

C++ class: QtCharts::QAreaSeries.

Methods

impl QAreaSeries[src]

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

This signal is emitted when the user triggers a press on point by clicking it in an area chart.

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

C++ documentation:

This signal is emitted when the user triggers a press on point by clicking it in an area chart.

See also pressed, released, and doubleClicked.

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

This signal is emitted when the user hovers the mouse cursor over a series or moves it away from the series. point shows the origin (coordinate) of the hover event. state is true when the cursor hovers over the series and turns false when it moves away from the series.

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

C++ documentation:

This signal is emitted when the user hovers the mouse cursor over a series or moves it away from the series. point shows the origin (coordinate) of the hover event. state is true when the cursor hovers over the series and turns false when it moves away from the series.

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

This signal is emitted when the user presses the point specified by point in an area chart.

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

C++ documentation:

This signal is emitted when the user presses the point specified by point in an area chart.

See also clicked, released, and doubleClicked.

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

This signal is emitted when the user releases a press that was triggered on point in an area chart.

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

C++ documentation:

This signal is emitted when the user releases a press that was triggered on point in an area chart.

See also pressed, clicked, and doubleClicked.

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

This signal is emitted when the user triggers the first press in an area chart by doubleclicking point.

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

C++ documentation:

This signal is emitted when the user triggers the first press in an area chart by doubleclicking point.

See also pressed, released, and clicked.

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

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

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

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

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

C++ documentation:

This signal is emitted when the fill (brush) color 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 changes to color.

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

C++ documentation:

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

Note: Notifier signal for property borderColor.

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

This signal is emitted when the format of data point labels is changed.

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

C++ documentation:

This signal is emitted when the format of data point labels is changed.

Note: Notifier signal for property pointLabelsFormat.

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

This signal is emitted when the visibility of the data point labels changes to visible.

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

C++ documentation:

This signal is emitted when the visibility of the data point labels changes to visible.

Note: Notifier signal for property pointLabelsVisible.

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

This signal is emitted when the font used for data point labels changes to font.

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

C++ documentation:

This signal is emitted when the font used for data point labels changes to font.

Note: Notifier signal for property pointLabelsFont.

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

This signal is emitted when the color used for data point labels changes to color.

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

C++ documentation:

This signal is emitted when the color used for data point labels changes to color.

Note: Notifier signal for property pointLabelsColor.

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

This signal is emitted when the clipping of the data point labels changes to clipping.

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

C++ documentation:

This signal is emitted when the clipping of the data point labels changes to clipping.

Note: Notifier signal for property pointLabelsClipping.

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

This property holds the line (pen) color of the series. This is a convenience property for modifying the color of the pen.

Calls C++ function: QColor QtCharts::QAreaSeries::borderColor() const.

C++ documentation:

This property holds the line (pen) color of the series. This is a convenience property for modifying the color of the pen.

Access functions:

QColor borderColor() const
void setBorderColor(const QColor &color)

Notifier signal:

void borderColorChanged(QColor color)

See also QAreaSeries::pen().

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

Returns the brush used to draw the line for this series.

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

C++ documentation:

Returns the brush used to draw the line for this series.

See also setBrush().

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

This property holds the fill (brush) color of the series. This is a convenience property for modifying the color of the brush.

Calls C++ function: QColor QtCharts::QAreaSeries::color() const.

C++ documentation:

This property holds the fill (brush) color of the series. This is a convenience property for modifying the color of the brush.

Access functions:

QColor color() const
void setColor(const QColor &color)

Notifier signal:

void colorChanged(QColor color)

See also QAreaSeries::brush().

pub unsafe fn lower_series(&self) -> QPtr<QLineSeries>[src]

This property holds the lower one of the two line series used to define area series boundaries.

Calls C++ function: QtCharts::QLineSeries* QtCharts::QAreaSeries::lowerSeries() const.

C++ documentation:

This property holds the lower one of the two line series used to define area series boundaries.

Note: If QAreaSeries was constructed without a lowerSeries, this is null.

Access functions:

QLineSeries *lowerSeries() const

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

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

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

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

pub unsafe fn from_2_q_line_series(
    upper_series: impl CastInto<Ptr<QLineSeries>>,
    lower_series: impl CastInto<Ptr<QLineSeries>>
) -> QBox<QAreaSeries>
[src]

Calls C++ function: [constructor] void QtCharts::QAreaSeries::QAreaSeries(QtCharts::QLineSeries* upperSeries, QtCharts::QLineSeries* lowerSeries = …).

pub unsafe fn new() -> QBox<QAreaSeries>[src]

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

pub unsafe fn from_q_line_series(
    upper_series: impl CastInto<Ptr<QLineSeries>>
) -> QBox<QAreaSeries>
[src]

Calls C++ function: [constructor] void QtCharts::QAreaSeries::QAreaSeries(QtCharts::QLineSeries* upperSeries).

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

Returns the pen used to draw the line for this series.

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

C++ documentation:

Returns the pen used to draw the line for this series.

See also setPen().

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

This property holds the clipping for data point labels. True by default. The labels on the edge of the plot area are cut when clipping is enabled.

Calls C++ function: bool QtCharts::QAreaSeries::pointLabelsClipping() const.

C++ documentation:

This property holds the clipping for data point labels. True by default. The labels on the edge of the plot area are cut when clipping is enabled.

Access functions:

bool pointLabelsClipping() const
void setPointLabelsClipping(bool enabled = true)

Notifier signal:

void pointLabelsClippingChanged(bool clipping)

See also pointLabelsVisible.

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

This property holds the color used for data point labels. By default, the color is the color of the brush defined for labels in the theme.

Calls C++ function: QColor QtCharts::QAreaSeries::pointLabelsColor() const.

C++ documentation:

This property holds the color used for data point labels. By default, the color is the color of the brush defined for labels in the theme.

Access functions:

QColor pointLabelsColor() const
void setPointLabelsColor(const QColor &color)

Notifier signal:

void pointLabelsColorChanged(const QColor &color)

See also QAreaSeries::pointLabelsFormat.

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

This property holds the font used for data point labels.

Calls C++ function: QFont QtCharts::QAreaSeries::pointLabelsFont() const.

C++ documentation:

This property holds the font used for data point labels.

Access functions:

QFont pointLabelsFont() const
void setPointLabelsFont(const QFont &font)

Notifier signal:

void pointLabelsFontChanged(const QFont &font)

See also QAreaSeries::pointLabelsFormat.

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

This property holds the format used for showing labels with series points.

Calls C++ function: QString QtCharts::QAreaSeries::pointLabelsFormat() const.

C++ documentation:

This property holds the format used for showing labels with series points.

QAreaSeries supports the following format tags:

@xPointThe x value of the data point
@yPointThe y value of the data point

For example, the following usage of the format tags would produce labels that have the data point (x, y) shown inside brackets separated by a comma:

series->setPointLabelsFormat("(@xPoint, @yPoint)");

By default, the label format is set to @xPoint, @yPoint. The labels are shown on the plot area, whereas labels on the edge of the plot area are cut. If the points are close to each other, the labels may overlap.

Access functions:

QString pointLabelsFormat() const
void setPointLabelsFormat(const QString &format)

Notifier signal:

void pointLabelsFormatChanged(const QString &format)

See also QAreaSeries::pointLabelsVisible, QAreaSeries::pointLabelsFont, and QAreaSeries::pointLabelsColor.

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

This property holds the visibility of data point labels. False by default.

Calls C++ function: bool QtCharts::QAreaSeries::pointLabelsVisible() const.

C++ documentation:

This property holds the visibility of data point labels. False by default.

Access functions:

bool pointLabelsVisible() const
void setPointLabelsVisible(bool visible = true)

Notifier signal:

void pointLabelsVisibilityChanged(bool visible)

See also QAreaSeries::pointLabelsFormat and QAreaSeries::pointLabelsClipping.

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

Returns whether the points are drawn for this series.

Calls C++ function: bool QtCharts::QAreaSeries::pointsVisible() const.

C++ documentation:

Returns whether the points are drawn for this series.

See also setPointsVisible().

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

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

This property holds the line (pen) color of the series. This is a convenience property for modifying the color of the pen.

Calls C++ function: void QtCharts::QAreaSeries::setBorderColor(const QColor& color).

C++ documentation:

This property holds the line (pen) color of the series. This is a convenience property for modifying the color of the pen.

Access functions:

QColor borderColor() const
void setBorderColor(const QColor &color)

Notifier signal:

void borderColorChanged(QColor color)

See also QAreaSeries::pen().

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

Sets the brush used for filling the area.

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

C++ documentation:

Sets the brush used for filling the area.

See also brush().

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

This property holds the fill (brush) color of the series. This is a convenience property for modifying the color of the brush.

Calls C++ function: void QtCharts::QAreaSeries::setColor(const QColor& color).

C++ documentation:

This property holds the fill (brush) color of the series. This is a convenience property for modifying the color of the brush.

Access functions:

QColor color() const
void setColor(const QColor &color)

Notifier signal:

void colorChanged(QColor color)

See also QAreaSeries::brush().

pub unsafe fn set_lower_series(&self, series: impl CastInto<Ptr<QLineSeries>>)[src]

Sets the series that is to be used as the area chart lower series.

Calls C++ function: void QtCharts::QAreaSeries::setLowerSeries(QtCharts::QLineSeries* series).

C++ documentation:

Sets the series that is to be used as the area chart lower series.

See also lowerSeries().

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

Sets the pen used for drawing the area outline.

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

C++ documentation:

Sets the pen used for drawing the area outline.

See also pen().

pub unsafe fn set_point_labels_clipping_1a(&self, enabled: bool)[src]

This property holds the clipping for data point labels. True by default. The labels on the edge of the plot area are cut when clipping is enabled.

Calls C++ function: void QtCharts::QAreaSeries::setPointLabelsClipping(bool enabled = …).

C++ documentation:

This property holds the clipping for data point labels. True by default. The labels on the edge of the plot area are cut when clipping is enabled.

Access functions:

bool pointLabelsClipping() const
void setPointLabelsClipping(bool enabled = true)

Notifier signal:

void pointLabelsClippingChanged(bool clipping)

See also pointLabelsVisible.

pub unsafe fn set_point_labels_clipping_0a(&self)[src]

This property holds the clipping for data point labels. True by default. The labels on the edge of the plot area are cut when clipping is enabled.

Calls C++ function: void QtCharts::QAreaSeries::setPointLabelsClipping().

C++ documentation:

This property holds the clipping for data point labels. True by default. The labels on the edge of the plot area are cut when clipping is enabled.

Access functions:

bool pointLabelsClipping() const
void setPointLabelsClipping(bool enabled = true)

Notifier signal:

void pointLabelsClippingChanged(bool clipping)

See also pointLabelsVisible.

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

This property holds the color used for data point labels. By default, the color is the color of the brush defined for labels in the theme.

Calls C++ function: void QtCharts::QAreaSeries::setPointLabelsColor(const QColor& color).

C++ documentation:

This property holds the color used for data point labels. By default, the color is the color of the brush defined for labels in the theme.

Access functions:

QColor pointLabelsColor() const
void setPointLabelsColor(const QColor &color)

Notifier signal:

void pointLabelsColorChanged(const QColor &color)

See also QAreaSeries::pointLabelsFormat.

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

This property holds the font used for data point labels.

Calls C++ function: void QtCharts::QAreaSeries::setPointLabelsFont(const QFont& font).

C++ documentation:

This property holds the font used for data point labels.

Access functions:

QFont pointLabelsFont() const
void setPointLabelsFont(const QFont &font)

Notifier signal:

void pointLabelsFontChanged(const QFont &font)

See also QAreaSeries::pointLabelsFormat.

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

This property holds the format used for showing labels with series points.

Calls C++ function: void QtCharts::QAreaSeries::setPointLabelsFormat(const QString& format).

C++ documentation:

This property holds the format used for showing labels with series points.

QAreaSeries supports the following format tags:

@xPointThe x value of the data point
@yPointThe y value of the data point

For example, the following usage of the format tags would produce labels that have the data point (x, y) shown inside brackets separated by a comma:

series->setPointLabelsFormat("(@xPoint, @yPoint)");

By default, the label format is set to @xPoint, @yPoint. The labels are shown on the plot area, whereas labels on the edge of the plot area are cut. If the points are close to each other, the labels may overlap.

Access functions:

QString pointLabelsFormat() const
void setPointLabelsFormat(const QString &format)

Notifier signal:

void pointLabelsFormatChanged(const QString &format)

See also QAreaSeries::pointLabelsVisible, QAreaSeries::pointLabelsFont, and QAreaSeries::pointLabelsColor.

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

This property holds the visibility of data point labels. False by default.

Calls C++ function: void QtCharts::QAreaSeries::setPointLabelsVisible(bool visible = …).

C++ documentation:

This property holds the visibility of data point labels. False by default.

Access functions:

bool pointLabelsVisible() const
void setPointLabelsVisible(bool visible = true)

Notifier signal:

void pointLabelsVisibilityChanged(bool visible)

See also QAreaSeries::pointLabelsFormat and QAreaSeries::pointLabelsClipping.

pub unsafe fn set_point_labels_visible_0a(&self)[src]

This property holds the visibility of data point labels. False by default.

Calls C++ function: void QtCharts::QAreaSeries::setPointLabelsVisible().

C++ documentation:

This property holds the visibility of data point labels. False by default.

Access functions:

bool pointLabelsVisible() const
void setPointLabelsVisible(bool visible = true)

Notifier signal:

void pointLabelsVisibilityChanged(bool visible)

See also QAreaSeries::pointLabelsFormat and QAreaSeries::pointLabelsClipping.

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

Determines whether data points are visible and should be drawn on the line.

Calls C++ function: void QtCharts::QAreaSeries::setPointsVisible(bool visible = …).

C++ documentation:

Determines whether data points are visible and should be drawn on the line.

See also pointsVisible().

pub unsafe fn set_points_visible_0a(&self)[src]

Determines whether data points are visible and should be drawn on the line.

Calls C++ function: void QtCharts::QAreaSeries::setPointsVisible().

C++ documentation:

Determines whether data points are visible and should be drawn on the line.

See also pointsVisible().

pub unsafe fn set_upper_series(&self, series: impl CastInto<Ptr<QLineSeries>>)[src]

Sets the series that is to be used as the area chart upper series. If the upper series is null, the area chart is not drawn, even if it has a lower series.

Calls C++ function: void QtCharts::QAreaSeries::setUpperSeries(QtCharts::QLineSeries* series).

C++ documentation:

Sets the series that is to be used as the area chart upper series. If the upper series is null, the area chart is not drawn, even if it has a lower series.

See also upperSeries().

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

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

Reimplements: QAbstractSeries::type() const.

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

C++ documentation:

Reimplements: QAbstractSeries::type() const.

Returns QAbstractSeries::SeriesTypeArea.

pub unsafe fn upper_series(&self) -> QPtr<QLineSeries>[src]

This property holds the upper one of the two line series used to define area series boundaries.

Calls C++ function: QtCharts::QLineSeries* QtCharts::QAreaSeries::upperSeries() const.

C++ documentation:

This property holds the upper one of the two line series used to define area series boundaries.

Access functions:

QLineSeries *upperSeries() const

Methods from Deref<Target = QAbstractSeries>

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

This signal is emitted when the series name changes.

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

C++ documentation:

This signal is emitted when the series name changes.

Note: Notifier signal for property name.

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

This signal is emitted when the series visibility changes.

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

C++ documentation:

This signal is emitted when the series visibility changes.

Note: Notifier signal for property visible.

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

This signal is emitted when the opacity of the series changes.

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

C++ documentation:

This signal is emitted when the opacity of the series changes.

Note: Notifier signal for property opacity.

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

This signal is emitted when accelerating the drawing of the series by using OpenGL is enabled or disabled.

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

C++ documentation:

This signal is emitted when accelerating the drawing of the series by using OpenGL is enabled or disabled.

Note: Notifier signal for property useOpenGL.

pub unsafe fn attach_axis(
    &self,
    axis: impl CastInto<Ptr<QAbstractAxis>>
) -> bool
[src]

Attaches the axis specified by axis to the series.

Calls C++ function: bool QtCharts::QAbstractSeries::attachAxis(QtCharts::QAbstractAxis* axis).

C++ documentation:

Attaches the axis specified by axis to the series.

Returns true if the axis was attached successfully, false otherwise.

Note: If multiple axes of the same orientation are attached to the same series, they will have the same minimum and maximum values.

See also QChart::addAxis() and QChart::createDefaultAxes().

pub unsafe fn attached_axes(&self) -> CppBox<QListOfQAbstractAxis>[src]

Returns the list of axes attached to the series. Usually, an x-axis and a y-axis are attached to a series, except for QPieSeries, which does not have any axes attached.

Calls C++ function: QList<QtCharts::QAbstractAxis*> QtCharts::QAbstractSeries::attachedAxes().

C++ documentation:

Returns the list of axes attached to the series. Usually, an x-axis and a y-axis are attached to a series, except for QPieSeries, which does not have any axes attached.

See also attachAxis() and detachAxis().

pub unsafe fn chart(&self) -> QPtr<QChart>[src]

Returns the chart that the series belongs to.

Calls C++ function: QtCharts::QChart* QtCharts::QAbstractSeries::chart() const.

C++ documentation:

Returns the chart that the series belongs to.

Set automatically when the series is added to the chart, and unset when the series is removed from the chart.

pub unsafe fn detach_axis(
    &self,
    axis: impl CastInto<Ptr<QAbstractAxis>>
) -> bool
[src]

Detaches the axis specified by axis from the series.

Calls C++ function: bool QtCharts::QAbstractSeries::detachAxis(QtCharts::QAbstractAxis* axis).

C++ documentation:

Detaches the axis specified by axis from the series.

Returns true if the axis was detached successfully, false otherwise.

See also QChart::removeAxis().

pub unsafe fn hide(&self)[src]

Sets the visibility of the series to false.

Calls C++ function: void QtCharts::QAbstractSeries::hide().

C++ documentation:

Sets the visibility of the series to false.

See also setVisible() and isVisible().

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

This property holds whether the series is visible or not.

Calls C++ function: bool QtCharts::QAbstractSeries::isVisible() const.

C++ documentation:

This property holds whether the series is visible or not.

By default, true.

Access functions:

bool isVisible() const
void setVisible(bool visible = true)

Notifier signal:

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

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

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

This property holds the name of the series.

Calls C++ function: QString QtCharts::QAbstractSeries::name() const.

C++ documentation:

This property holds the name of the series.

The name is displayed in the legend for the series and it supports HTML formatting.

Access functions:

QString name() const
void setName(const QString &name)

Notifier signal:

void nameChanged()

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

This property holds the opacity of the series.

Calls C++ function: double QtCharts::QAbstractSeries::opacity() const.

C++ documentation:

This property holds the opacity of the series.

By default, the opacity is 1.0. The valid values range from 0.0 (transparent) to 1.0 (opaque).

Access functions:

qreal opacity() const
void setOpacity(qreal opacity)

Notifier signal:

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

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

This property holds the name of the series.

Calls C++ function: void QtCharts::QAbstractSeries::setName(const QString& name).

C++ documentation:

This property holds the name of the series.

The name is displayed in the legend for the series and it supports HTML formatting.

Access functions:

QString name() const
void setName(const QString &name)

Notifier signal:

void nameChanged()

pub unsafe fn set_opacity(&self, opacity: c_double)[src]

This property holds the opacity of the series.

Calls C++ function: void QtCharts::QAbstractSeries::setOpacity(double opacity).

C++ documentation:

This property holds the opacity of the series.

By default, the opacity is 1.0. The valid values range from 0.0 (transparent) to 1.0 (opaque).

Access functions:

qreal opacity() const
void setOpacity(qreal opacity)

Notifier signal:

pub unsafe fn set_use_opengl_1a(&self, enable: bool)[src]

Specifies whether or not drawing the series is accelerated by using OpenGL.

Calls C++ function: void QtCharts::QAbstractSeries::setUseOpenGL(bool enable = …).

C++ documentation:

Specifies whether or not drawing the series is accelerated by using OpenGL.

Acceleration using OpenGL is supported only for QLineSeries and QScatterSeries. A line series used as an edge series for QAreaSeries cannot use OpenGL acceleration. When a chart contains any series that are drawn with OpenGL, a transparent QOpenGLWidget is created on top of the chart plot area. The accelerated series are not drawn on the underlying QGraphicsView, but are instead drawn on the created QOpenGLWidget.

Performance gained from using OpenGL to accelerate series drawing depends on the underlying hardware, but in most cases it is significant. For example, on a standard desktop computer, enabling OpenGL acceleration for a series typically allows rendering at least a hundred times more points without reduction on the frame rate. Chart size also has less effect on the frame rate.

The OpenGL acceleration of series drawing is meant for use cases that need fast drawing of large numbers of points. It is optimized for efficiency, and therefore the series using it lack support for many features available to non-accelerated series:

  • Series animations are not supported for accelerated series.
  • Point labels are not supported for accelerated series.
  • Pen styles and marker shapes are ignored for accelerated series. Only solid lines and plain scatter dots are supported. The scatter dots may be circular or rectangular, depending on the underlying graphics hardware and drivers.
  • Polar charts do not support accelerated series.
  • Enabling chart drop shadow or using transparent chart background color is not recommended when using accelerated series, as that can slow the frame rate down significantly.

These additional restrictions stem from the fact that the accelerated series is drawn on a separate widget on top of the chart:

  • If you draw any graphics items on top of a chart containing an accelerated series, the accelerated series is drawn over those items.
  • To enable QOpenGLWidget to be partially transparent, it needs to be stacked on top of all other widgets. This means you cannot have other widgets partially covering the chart when using accelerated series.
  • Accelerated series are not supported for use cases where the graphics scene has more than one graphics view attached to it.
  • Accelerated series are not supported for use cases where the chart has non-default geometry. For example, adding transforms to the graphics view causes the accelerated series to be drawn in an incorrect position related to the chart.

The default value is false.

Access functions:

bool useOpenGL() const
void setUseOpenGL(bool enable = true)

Notifier signal:

pub unsafe fn set_use_opengl_0a(&self)[src]

Specifies whether or not drawing the series is accelerated by using OpenGL.

Calls C++ function: void QtCharts::QAbstractSeries::setUseOpenGL().

C++ documentation:

Specifies whether or not drawing the series is accelerated by using OpenGL.

Acceleration using OpenGL is supported only for QLineSeries and QScatterSeries. A line series used as an edge series for QAreaSeries cannot use OpenGL acceleration. When a chart contains any series that are drawn with OpenGL, a transparent QOpenGLWidget is created on top of the chart plot area. The accelerated series are not drawn on the underlying QGraphicsView, but are instead drawn on the created QOpenGLWidget.

Performance gained from using OpenGL to accelerate series drawing depends on the underlying hardware, but in most cases it is significant. For example, on a standard desktop computer, enabling OpenGL acceleration for a series typically allows rendering at least a hundred times more points without reduction on the frame rate. Chart size also has less effect on the frame rate.

The OpenGL acceleration of series drawing is meant for use cases that need fast drawing of large numbers of points. It is optimized for efficiency, and therefore the series using it lack support for many features available to non-accelerated series:

  • Series animations are not supported for accelerated series.
  • Point labels are not supported for accelerated series.
  • Pen styles and marker shapes are ignored for accelerated series. Only solid lines and plain scatter dots are supported. The scatter dots may be circular or rectangular, depending on the underlying graphics hardware and drivers.
  • Polar charts do not support accelerated series.
  • Enabling chart drop shadow or using transparent chart background color is not recommended when using accelerated series, as that can slow the frame rate down significantly.

These additional restrictions stem from the fact that the accelerated series is drawn on a separate widget on top of the chart:

  • If you draw any graphics items on top of a chart containing an accelerated series, the accelerated series is drawn over those items.
  • To enable QOpenGLWidget to be partially transparent, it needs to be stacked on top of all other widgets. This means you cannot have other widgets partially covering the chart when using accelerated series.
  • Accelerated series are not supported for use cases where the graphics scene has more than one graphics view attached to it.
  • Accelerated series are not supported for use cases where the chart has non-default geometry. For example, adding transforms to the graphics view causes the accelerated series to be drawn in an incorrect position related to the chart.

The default value is false.

Access functions:

bool useOpenGL() const
void setUseOpenGL(bool enable = true)

Notifier signal:

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

This property holds whether the series is visible or not.

Calls C++ function: void QtCharts::QAbstractSeries::setVisible(bool visible = …).

C++ documentation:

This property holds whether the series is visible or not.

By default, true.

Access functions:

bool isVisible() const
void setVisible(bool visible = true)

Notifier signal:

pub unsafe fn set_visible_0a(&self)[src]

This property holds whether the series is visible or not.

Calls C++ function: void QtCharts::QAbstractSeries::setVisible().

C++ documentation:

This property holds whether the series is visible or not.

By default, true.

Access functions:

bool isVisible() const
void setVisible(bool visible = true)

Notifier signal:

pub unsafe fn show(&self)[src]

Sets the visibility of the series to true.

Calls C++ function: void QtCharts::QAbstractSeries::show().

C++ documentation:

Sets the visibility of the series to true.

See also setVisible() and isVisible().

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

This property holds the type of the series.

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

C++ documentation:

This property holds the type of the series.

Access functions:

virtual QAbstractSeries::SeriesType type() const = 0

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

Specifies whether or not drawing the series is accelerated by using OpenGL.

Calls C++ function: bool QtCharts::QAbstractSeries::useOpenGL() const.

C++ documentation:

Specifies whether or not drawing the series is accelerated by using OpenGL.

Acceleration using OpenGL is supported only for QLineSeries and QScatterSeries. A line series used as an edge series for QAreaSeries cannot use OpenGL acceleration. When a chart contains any series that are drawn with OpenGL, a transparent QOpenGLWidget is created on top of the chart plot area. The accelerated series are not drawn on the underlying QGraphicsView, but are instead drawn on the created QOpenGLWidget.

Performance gained from using OpenGL to accelerate series drawing depends on the underlying hardware, but in most cases it is significant. For example, on a standard desktop computer, enabling OpenGL acceleration for a series typically allows rendering at least a hundred times more points without reduction on the frame rate. Chart size also has less effect on the frame rate.

The OpenGL acceleration of series drawing is meant for use cases that need fast drawing of large numbers of points. It is optimized for efficiency, and therefore the series using it lack support for many features available to non-accelerated series:

  • Series animations are not supported for accelerated series.
  • Point labels are not supported for accelerated series.
  • Pen styles and marker shapes are ignored for accelerated series. Only solid lines and plain scatter dots are supported. The scatter dots may be circular or rectangular, depending on the underlying graphics hardware and drivers.
  • Polar charts do not support accelerated series.
  • Enabling chart drop shadow or using transparent chart background color is not recommended when using accelerated series, as that can slow the frame rate down significantly.

These additional restrictions stem from the fact that the accelerated series is drawn on a separate widget on top of the chart:

  • If you draw any graphics items on top of a chart containing an accelerated series, the accelerated series is drawn over those items.
  • To enable QOpenGLWidget to be partially transparent, it needs to be stacked on top of all other widgets. This means you cannot have other widgets partially covering the chart when using accelerated series.
  • Accelerated series are not supported for use cases where the graphics scene has more than one graphics view attached to it.
  • Accelerated series are not supported for use cases where the chart has non-default geometry. For example, adding transforms to the graphics view causes the accelerated series to be drawn in an incorrect position related to the chart.

The default value is false.

Access functions:

bool useOpenGL() const
void setUseOpenGL(bool enable = true)

Notifier signal:

Trait Implementations

impl CppDeletable for QAreaSeries[src]

unsafe fn delete(&self)[src]

Destroys the object.

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

C++ documentation:

Destroys the object.

impl Deref for QAreaSeries[src]

type Target = QAbstractSeries

The resulting type after dereferencing.

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

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

impl DynamicCast<QAreaSeries> for QAbstractSeries[src]

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

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

impl DynamicCast<QAreaSeries> for QObject[src]

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

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

impl StaticDowncast<QAreaSeries> for QAbstractSeries[src]

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

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

impl StaticDowncast<QAreaSeries> for QObject[src]

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

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

impl StaticUpcast<QAbstractSeries> for QAreaSeries[src]

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

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

impl StaticUpcast<QObject> for QAreaSeries[src]

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

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