[−][src]Struct qt_charts::QCandlestickSeries
C++ class: QtCharts::QCandlestickSeries
.
Methods
impl QCandlestickSeries
[src]
pub fn clicked(&self) -> Signal<(*mut QCandlestickSet,)>
[src]
This signal is emitted when the candlestick item specified by set is clicked on the chart.
Returns a built-in Qt signal QtCharts::QCandlestickSeries::clicked
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the candlestick item specified by set is clicked on the chart.
pub fn hovered(&self) -> Signal<(bool, *mut QCandlestickSet)>
[src]
This signal is emitted when a mouse is hovered over the candlestick item specified by set in a chart.
Returns a built-in Qt signal QtCharts::QCandlestickSeries::hovered
that can be passed to qt_core::Signal::connect
.
This signal is emitted when a mouse is hovered over the candlestick item specified by set in a chart.
When the mouse moves over the item, status turns true
, and when the mouse moves away again, it turns false
.
pub fn pressed(&self) -> Signal<(*mut QCandlestickSet,)>
[src]
This signal is emitted when the user clicks the candlestick item specified by set and holds down the mouse button.
Returns a built-in Qt signal QtCharts::QCandlestickSeries::pressed
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the user clicks the candlestick item specified by set and holds down the mouse button.
pub fn released(&self) -> Signal<(*mut QCandlestickSet,)>
[src]
This signal is emitted when the user releases the mouse press on the candlestick item specified by set.
Returns a built-in Qt signal QtCharts::QCandlestickSeries::released
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the user releases the mouse press on the candlestick item specified by set.
pub fn double_clicked(&self) -> Signal<(*mut QCandlestickSet,)>
[src]
This signal is emitted when the candlestick item specified by set is double-clicked on the chart.
Returns a built-in Qt signal QtCharts::QCandlestickSeries::doubleClicked
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the candlestick item specified by set is double-clicked on the chart.
pub fn count_changed(&self) -> Signal<()>
[src]
This signal is emitted when the number of candlestick items in the series changes.
Returns a built-in Qt signal QtCharts::QCandlestickSeries::countChanged
that can be passed to qt_core::Signal::connect
.
pub fn maximum_column_width_changed(&self) -> Signal<()>
[src]
This signal is emitted when there is a change in the maximum column width of candlestick items.
Returns a built-in Qt signal QtCharts::QCandlestickSeries::maximumColumnWidthChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when there is a change in the maximum column width of candlestick items.
Note: Notifier signal for property maximumColumnWidth.
See also maximumColumnWidth.
pub fn minimum_column_width_changed(&self) -> Signal<()>
[src]
This signal is emitted when there is a change in the minimum column width of candlestick items.
Returns a built-in Qt signal QtCharts::QCandlestickSeries::minimumColumnWidthChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when there is a change in the minimum column width of candlestick items.
Note: Notifier signal for property minimumColumnWidth.
See also minimumColumnWidth.
pub fn body_width_changed(&self) -> Signal<()>
[src]
This signal is emitted when the candlestick item width changes.
Returns a built-in Qt signal QtCharts::QCandlestickSeries::bodyWidthChanged
that can be passed to qt_core::Signal::connect
.
pub fn body_outline_visibility_changed(&self) -> Signal<()>
[src]
This signal is emitted when the visibility of the candlestick item body outline changes.
Returns a built-in Qt signal QtCharts::QCandlestickSeries::bodyOutlineVisibilityChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the visibility of the candlestick item body outline changes.
Note: Notifier signal for property bodyOutlineVisible.
See also bodyOutlineVisible.
pub fn caps_width_changed(&self) -> Signal<()>
[src]
This signal is emitted when the candlestick item caps width changes.
Returns a built-in Qt signal QtCharts::QCandlestickSeries::capsWidthChanged
that can be passed to qt_core::Signal::connect
.
pub fn caps_visibility_changed(&self) -> Signal<()>
[src]
This signal is emitted when the visibility of the candlestick item caps changes.
Returns a built-in Qt signal QtCharts::QCandlestickSeries::capsVisibilityChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the visibility of the candlestick item caps changes.
Note: Notifier signal for property capsVisible.
See also capsVisible.
pub fn increasing_color_changed(&self) -> Signal<()>
[src]
This signal is emitted when the candlestick item increasing color changes.
Returns a built-in Qt signal QtCharts::QCandlestickSeries::increasingColorChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the candlestick item increasing color changes.
Note: Notifier signal for property increasingColor.
See also increasingColor.
pub fn decreasing_color_changed(&self) -> Signal<()>
[src]
This signal is emitted when the candlestick item decreasing color changes.
Returns a built-in Qt signal QtCharts::QCandlestickSeries::decreasingColorChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the candlestick item decreasing color changes.
Note: Notifier signal for property decreasingColor.
See also decreasingColor.
pub fn brush_changed(&self) -> Signal<()>
[src]
This signal is emitted when the candlestick item brush changes.
Returns a built-in Qt signal QtCharts::QCandlestickSeries::brushChanged
that can be passed to qt_core::Signal::connect
.
pub fn pen_changed(&self) -> Signal<()>
[src]
This signal is emitted when the candlestick item pen changes.
Returns a built-in Qt signal QtCharts::QCandlestickSeries::penChanged
that can be passed to qt_core::Signal::connect
.
pub fn candlestick_sets_added(&self) -> Signal<(*const QListOfQCandlestickSet,)>
[src]
This signal is emitted when the candlestick items specified by sets are added to the series.
Returns a built-in Qt signal QtCharts::QCandlestickSeries::candlestickSetsAdded
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the candlestick items specified by sets are added to the series.
pub fn candlestick_sets_removed(
&self
) -> Signal<(*const QListOfQCandlestickSet,)>
[src]
&self
) -> Signal<(*const QListOfQCandlestickSet,)>
This signal is emitted when the candlestick items specified by sets are removed from the series.
Returns a built-in Qt signal QtCharts::QCandlestickSeries::candlestickSetsRemoved
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the candlestick items specified by sets are removed from the series.
pub unsafe fn append_q_candlestick_set(
&self,
set: impl CastInto<Ptr<QCandlestickSet>>
) -> bool
[src]
&self,
set: impl CastInto<Ptr<QCandlestickSet>>
) -> bool
Adds a single candlestick item specified by set to the series and takes ownership of it. If the item is null or it is already in the series, it is not appended. Returns true
if appending succeeded, false
otherwise.
Calls C++ function: bool QtCharts::QCandlestickSeries::append(QtCharts::QCandlestickSet* set)
.
Adds a single candlestick item specified by set to the series and takes ownership of it. If the item is null or it is already in the series, it is not appended. Returns true
if appending succeeded, false
otherwise.
pub unsafe fn append_q_list_of_q_candlestick_set(
&self,
sets: impl CastInto<Ref<QListOfQCandlestickSet>>
) -> bool
[src]
&self,
sets: impl CastInto<Ref<QListOfQCandlestickSet>>
) -> bool
Adds a list of candlestick items specified by sets to the series and takes ownership of it. If any of the items are null, already belong to the series, or appear in the list more than once, nothing is appended. Returns true
if all items were appended successfully, false
otherwise.
Calls C++ function: bool QtCharts::QCandlestickSeries::append(const QList<QtCharts::QCandlestickSet*>& sets)
.
Adds a list of candlestick items specified by sets to the series and takes ownership of it. If any of the items are null, already belong to the series, or appear in the list more than once, nothing is appended. Returns true
if all items were appended successfully, false
otherwise.
pub unsafe fn body_outline_visible(&self) -> bool
[src]
This property holds the visibility of the candlestick body outline.
Calls C++ function: bool QtCharts::QCandlestickSeries::bodyOutlineVisible() const
.
This property holds the visibility of the candlestick body outline.
Access functions:
bool | bodyOutlineVisible() const |
void | setBodyOutlineVisible(bool bodyOutlineVisible) |
Notifier signal:
void | bodyOutlineVisibilityChanged() |
pub unsafe fn body_width(&self) -> c_double
[src]
This property holds the relative width of the candlestick item within its own slot, in the range from 0.0 to 1.0.
Calls C++ function: double QtCharts::QCandlestickSeries::bodyWidth() const
.
This property holds the relative width of the candlestick item within its own slot, in the range from 0.0 to 1.0.
Values outside this range are clamped to 0.0 or 1.0.
Access functions:
qreal | bodyWidth() const |
void | setBodyWidth(qreal bodyWidth) |
Notifier signal:
void | bodyWidthChanged() |
pub unsafe fn brush(&self) -> CppBox<QBrush>
[src]
This property holds the brush used to fill the candlestick items.
Calls C++ function: QBrush QtCharts::QCandlestickSeries::brush() const
.
This property holds the brush used to fill the candlestick items.
Access functions:
QBrush | brush() const |
void | setBrush(const QBrush &brush) |
Notifier signal:
void | brushChanged() |
pub unsafe fn caps_visible(&self) -> bool
[src]
This property holds the visibility of the caps.
Calls C++ function: bool QtCharts::QCandlestickSeries::capsVisible() const
.
This property holds the visibility of the caps.
Access functions:
bool | capsVisible() const |
void | setCapsVisible(bool capsVisible) |
Notifier signal:
void | capsVisibilityChanged() |
pub unsafe fn caps_width(&self) -> c_double
[src]
This property holds the relative width of the caps within a candlestick, in the range from 0.0 to 1.0.
Calls C++ function: double QtCharts::QCandlestickSeries::capsWidth() const
.
This property holds the relative width of the caps within a candlestick, in the range from 0.0 to 1.0.
Values outside this range are clamped to 0.0 or 1.0.
Access functions:
qreal | capsWidth() const |
void | setCapsWidth(qreal capsWidth) |
Notifier signal:
void | capsWidthChanged() |
pub unsafe fn clear(&self)
[src]
Removes all candlestick items from the series and permanently deletes them.
Calls C++ function: void QtCharts::QCandlestickSeries::clear()
.
Removes all candlestick items from the series and permanently deletes them.
pub unsafe fn count(&self) -> c_int
[src]
This property holds the number of candlestick items in a series.
Calls C++ function: int QtCharts::QCandlestickSeries::count() const
.
This property holds the number of candlestick items in a series.
Access functions:
int | count() const |
Notifier signal:
void | countChanged() |
pub unsafe fn decreasing_color(&self) -> CppBox<QColor>
[src]
This property holds the color of the decreasing candlestick item body.
Calls C++ function: QColor QtCharts::QCandlestickSeries::decreasingColor() const
.
This property holds the color of the decreasing candlestick item body.
A candlestick is decreasing when its open value is higher than the close value. By default, this property is set to the brush color with the alpha channel set to 128. The default color is used also when the property is set to an invalid color value.
Access functions:
QColor | decreasingColor() const |
void | setDecreasingColor(const QColor &decreasingColor) |
Notifier signal:
void | decreasingColorChanged() |
pub unsafe fn increasing_color(&self) -> CppBox<QColor>
[src]
This property holds the color of the increasing candlestick item body.
Calls C++ function: QColor QtCharts::QCandlestickSeries::increasingColor() const
.
This property holds the color of the increasing candlestick item body.
A candlestick is increasing when its close value is higher than the open value. By default, this property is set to the brush color. The default color is used also when the property is set to an invalid color value.
Access functions:
QColor | increasingColor() const |
void | setIncreasingColor(const QColor &increasingColor) |
Notifier signal:
void | increasingColorChanged() |
pub unsafe fn insert(
&self,
index: c_int,
set: impl CastInto<Ptr<QCandlestickSet>>
) -> bool
[src]
&self,
index: c_int,
set: impl CastInto<Ptr<QCandlestickSet>>
) -> bool
Inserts the candlestick item specified by set to the series at the position specified by index. Takes ownership of the item. If the item is null or already belongs to the series, it is not inserted. Returns true
if inserting succeeded, false
otherwise.
Calls C++ function: bool QtCharts::QCandlestickSeries::insert(int index, QtCharts::QCandlestickSet* set)
.
Inserts the candlestick item specified by set to the series at the position specified by index. Takes ownership of the item. If the item is null or already belongs to the series, it is not inserted. Returns true
if inserting succeeded, false
otherwise.
pub unsafe fn maximum_column_width(&self) -> c_double
[src]
This property holds the maximum width of the candlestick items in pixels. Setting a negative value means there is no maximum width. All negative values are converted to -1.0.
Calls C++ function: double QtCharts::QCandlestickSeries::maximumColumnWidth() const
.
This property holds the maximum width of the candlestick items in pixels. Setting a negative value means there is no maximum width. All negative values are converted to -1.0.
Access functions:
qreal | maximumColumnWidth() const |
void | setMaximumColumnWidth(qreal maximumColumnWidth) |
Notifier signal:
void | maximumColumnWidthChanged() |
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* QtCharts::QCandlestickSeries::metaObject() const
.
pub unsafe fn minimum_column_width(&self) -> c_double
[src]
This property holds the minimum width of the candlestick items in pixels. Setting a negative value means there is no minimum width. All negative values are converted to -1.0.
Calls C++ function: double QtCharts::QCandlestickSeries::minimumColumnWidth() const
.
This property holds the minimum width of the candlestick items in pixels. Setting a negative value means there is no minimum width. All negative values are converted to -1.0.
Access functions:
qreal | minimumColumnWidth() const |
void | setMinimumColumnWidth(qreal minimumColumnWidth) |
Notifier signal:
void | minimumColumnWidthChanged() |
pub unsafe fn new_1a(
parent: impl CastInto<Ptr<QObject>>
) -> QBox<QCandlestickSeries>
[src]
parent: impl CastInto<Ptr<QObject>>
) -> QBox<QCandlestickSeries>
Calls C++ function: [constructor] void QtCharts::QCandlestickSeries::QCandlestickSeries(QObject* parent = …)
.
pub unsafe fn new_0a() -> QBox<QCandlestickSeries>
[src]
Calls C++ function: [constructor] void QtCharts::QCandlestickSeries::QCandlestickSeries()
.
pub unsafe fn pen(&self) -> CppBox<QPen>
[src]
This property holds the pen used to draw the lines of the candlestick items.
Calls C++ function: QPen QtCharts::QCandlestickSeries::pen() const
.
This property holds the pen used to draw the lines of the candlestick items.
Access functions:
QPen | pen() const |
void | setPen(const QPen &pen) |
Notifier signal:
void | penChanged() |
pub unsafe fn qt_metacall(
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
[src]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
Calls C++ function: virtual int QtCharts::QCandlestickSeries::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::QCandlestickSeries::qt_metacast(const char* arg1)
.
pub unsafe fn remove_q_candlestick_set(
&self,
set: impl CastInto<Ptr<QCandlestickSet>>
) -> bool
[src]
&self,
set: impl CastInto<Ptr<QCandlestickSet>>
) -> bool
Removes a single candlestick item, specified by set, from the series. Returns true
if the item is successfully deleted, false
otherwise.
Calls C++ function: bool QtCharts::QCandlestickSeries::remove(QtCharts::QCandlestickSet* set)
.
Removes a single candlestick item, specified by set, from the series. Returns true
if the item is successfully deleted, false
otherwise.
pub unsafe fn remove_q_list_of_q_candlestick_set(
&self,
sets: impl CastInto<Ref<QListOfQCandlestickSet>>
) -> bool
[src]
&self,
sets: impl CastInto<Ref<QListOfQCandlestickSet>>
) -> bool
Removes a list of candlestick items specified by sets from the series. If any of the items are null, were already removed from the series, or appear in the list more than once, nothing is removed. Returns true
if all items were removed successfully, false
otherwise.
Calls C++ function: bool QtCharts::QCandlestickSeries::remove(const QList<QtCharts::QCandlestickSet*>& sets)
.
Removes a list of candlestick items specified by sets from the series. If any of the items are null, were already removed from the series, or appear in the list more than once, nothing is removed. Returns true
if all items were removed successfully, false
otherwise.
pub unsafe fn set_body_outline_visible(&self, body_outline_visible: bool)
[src]
This property holds the visibility of the candlestick body outline.
Calls C++ function: void QtCharts::QCandlestickSeries::setBodyOutlineVisible(bool bodyOutlineVisible)
.
This property holds the visibility of the candlestick body outline.
Access functions:
bool | bodyOutlineVisible() const |
void | setBodyOutlineVisible(bool bodyOutlineVisible) |
Notifier signal:
void | bodyOutlineVisibilityChanged() |
pub unsafe fn set_body_width(&self, body_width: c_double)
[src]
This property holds the relative width of the candlestick item within its own slot, in the range from 0.0 to 1.0.
Calls C++ function: void QtCharts::QCandlestickSeries::setBodyWidth(double bodyWidth)
.
This property holds the relative width of the candlestick item within its own slot, in the range from 0.0 to 1.0.
Values outside this range are clamped to 0.0 or 1.0.
Access functions:
qreal | bodyWidth() const |
void | setBodyWidth(qreal bodyWidth) |
Notifier signal:
void | bodyWidthChanged() |
pub unsafe fn set_brush(&self, brush: impl CastInto<Ref<QBrush>>)
[src]
This property holds the brush used to fill the candlestick items.
Calls C++ function: void QtCharts::QCandlestickSeries::setBrush(const QBrush& brush)
.
This property holds the brush used to fill the candlestick items.
Access functions:
QBrush | brush() const |
void | setBrush(const QBrush &brush) |
Notifier signal:
void | brushChanged() |
pub unsafe fn set_caps_visible(&self, caps_visible: bool)
[src]
This property holds the visibility of the caps.
Calls C++ function: void QtCharts::QCandlestickSeries::setCapsVisible(bool capsVisible)
.
This property holds the visibility of the caps.
Access functions:
bool | capsVisible() const |
void | setCapsVisible(bool capsVisible) |
Notifier signal:
void | capsVisibilityChanged() |
pub unsafe fn set_caps_width(&self, caps_width: c_double)
[src]
This property holds the relative width of the caps within a candlestick, in the range from 0.0 to 1.0.
Calls C++ function: void QtCharts::QCandlestickSeries::setCapsWidth(double capsWidth)
.
This property holds the relative width of the caps within a candlestick, in the range from 0.0 to 1.0.
Values outside this range are clamped to 0.0 or 1.0.
Access functions:
qreal | capsWidth() const |
void | setCapsWidth(qreal capsWidth) |
Notifier signal:
void | capsWidthChanged() |
pub unsafe fn set_decreasing_color(
&self,
decreasing_color: impl CastInto<Ref<QColor>>
)
[src]
&self,
decreasing_color: impl CastInto<Ref<QColor>>
)
This property holds the color of the decreasing candlestick item body.
Calls C++ function: void QtCharts::QCandlestickSeries::setDecreasingColor(const QColor& decreasingColor)
.
This property holds the color of the decreasing candlestick item body.
A candlestick is decreasing when its open value is higher than the close value. By default, this property is set to the brush color with the alpha channel set to 128. The default color is used also when the property is set to an invalid color value.
Access functions:
QColor | decreasingColor() const |
void | setDecreasingColor(const QColor &decreasingColor) |
Notifier signal:
void | decreasingColorChanged() |
pub unsafe fn set_increasing_color(
&self,
increasing_color: impl CastInto<Ref<QColor>>
)
[src]
&self,
increasing_color: impl CastInto<Ref<QColor>>
)
This property holds the color of the increasing candlestick item body.
Calls C++ function: void QtCharts::QCandlestickSeries::setIncreasingColor(const QColor& increasingColor)
.
This property holds the color of the increasing candlestick item body.
A candlestick is increasing when its close value is higher than the open value. By default, this property is set to the brush color. The default color is used also when the property is set to an invalid color value.
Access functions:
QColor | increasingColor() const |
void | setIncreasingColor(const QColor &increasingColor) |
Notifier signal:
void | increasingColorChanged() |
pub unsafe fn set_maximum_column_width(&self, maximum_column_width: c_double)
[src]
This property holds the maximum width of the candlestick items in pixels. Setting a negative value means there is no maximum width. All negative values are converted to -1.0.
Calls C++ function: void QtCharts::QCandlestickSeries::setMaximumColumnWidth(double maximumColumnWidth)
.
This property holds the maximum width of the candlestick items in pixels. Setting a negative value means there is no maximum width. All negative values are converted to -1.0.
Access functions:
qreal | maximumColumnWidth() const |
void | setMaximumColumnWidth(qreal maximumColumnWidth) |
Notifier signal:
void | maximumColumnWidthChanged() |
pub unsafe fn set_minimum_column_width(&self, minimum_column_width: c_double)
[src]
This property holds the minimum width of the candlestick items in pixels. Setting a negative value means there is no minimum width. All negative values are converted to -1.0.
Calls C++ function: void QtCharts::QCandlestickSeries::setMinimumColumnWidth(double minimumColumnWidth)
.
This property holds the minimum width of the candlestick items in pixels. Setting a negative value means there is no minimum width. All negative values are converted to -1.0.
Access functions:
qreal | minimumColumnWidth() const |
void | setMinimumColumnWidth(qreal minimumColumnWidth) |
Notifier signal:
void | minimumColumnWidthChanged() |
pub unsafe fn set_pen(&self, pen: impl CastInto<Ref<QPen>>)
[src]
This property holds the pen used to draw the lines of the candlestick items.
Calls C++ function: void QtCharts::QCandlestickSeries::setPen(const QPen& pen)
.
This property holds the pen used to draw the lines of the candlestick items.
Access functions:
QPen | pen() const |
void | setPen(const QPen &pen) |
Notifier signal:
void | penChanged() |
pub unsafe fn sets(&self) -> CppBox<QListOfQCandlestickSet>
[src]
Returns the list of candlestick items in the series. Ownership of the items does not change.
Calls C++ function: QList<QtCharts::QCandlestickSet*> QtCharts::QCandlestickSeries::sets() const
.
Returns the list of candlestick items in the series. Ownership of the items does not change.
pub unsafe fn static_meta_object() -> Ref<QMetaObject>
[src]
Returns a reference to the staticMetaObject
field.
pub unsafe fn take(&self, set: impl CastInto<Ptr<QCandlestickSet>>) -> bool
[src]
Takes a single candlestick item, specified by set, from the series. Does not delete the item. Returns true
if the take operation was successful, false
otherwise.
Calls C++ function: bool QtCharts::QCandlestickSeries::take(QtCharts::QCandlestickSet* set)
.
Takes a single candlestick item, specified by set, from the series. Does not delete the item. Returns true
if the take operation was successful, false
otherwise.
Note: The series remains the item's parent object. You must set the parent object to take full ownership.
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::QCandlestickSeries::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::QCandlestickSeries::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::QCandlestickSeries::type() const
.
Reimplements: QAbstractSeries::type() const.
Returns the type of the series (QAbstractSeries::SeriesTypeCandlestick).
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
.
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
.
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
.
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
.
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]
&self,
axis: impl CastInto<Ptr<QAbstractAxis>>
) -> bool
Attaches the axis specified by axis to the series.
Calls C++ function: bool QtCharts::QAbstractSeries::attachAxis(QtCharts::QAbstractAxis* axis)
.
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()
.
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
.
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]
&self,
axis: impl CastInto<Ptr<QAbstractAxis>>
) -> bool
Detaches the axis specified by axis from the series.
Calls C++ function: bool QtCharts::QAbstractSeries::detachAxis(QtCharts::QAbstractAxis* axis)
.
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()
.
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
.
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:
void | visibleChanged() |
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
.
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
.
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:
void | opacityChanged() |
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::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)
.
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)
.
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:
void | opacityChanged() |
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 = …)
.
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:
void | useOpenGLChanged() |
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()
.
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:
void | useOpenGLChanged() |
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 = …)
.
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:
void | visibleChanged() |
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()
.
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:
void | visibleChanged() |
pub unsafe fn show(&self)
[src]
Sets the visibility of the series to true
.
Calls C++ function: void QtCharts::QAbstractSeries::show()
.
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
.
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
.
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:
void | useOpenGLChanged() |
Trait Implementations
impl CppDeletable for QCandlestickSeries
[src]
unsafe fn delete(&self)
[src]
Destroys the series. Removes the series from the chart.
Calls C++ function: virtual [destructor] void QtCharts::QCandlestickSeries::~QCandlestickSeries()
.
Destroys the series. Removes the series from the chart.
impl Deref for QCandlestickSeries
[src]
type Target = QAbstractSeries
The resulting type after dereferencing.
fn deref(&self) -> &QAbstractSeries
[src]
Calls C++ function: QtCharts::QAbstractSeries* static_cast<QtCharts::QAbstractSeries*>(QtCharts::QCandlestickSeries* ptr)
.
impl DynamicCast<QCandlestickSeries> for QAbstractSeries
[src]
unsafe fn dynamic_cast(ptr: Ptr<QAbstractSeries>) -> Ptr<QCandlestickSeries>
[src]
Calls C++ function: QtCharts::QCandlestickSeries* dynamic_cast<QtCharts::QCandlestickSeries*>(QtCharts::QAbstractSeries* ptr)
.
impl DynamicCast<QCandlestickSeries> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QCandlestickSeries>
[src]
Calls C++ function: QtCharts::QCandlestickSeries* dynamic_cast<QtCharts::QCandlestickSeries*>(QObject* ptr)
.
impl StaticDowncast<QCandlestickSeries> for QAbstractSeries
[src]
unsafe fn static_downcast(ptr: Ptr<QAbstractSeries>) -> Ptr<QCandlestickSeries>
[src]
Calls C++ function: QtCharts::QCandlestickSeries* static_cast<QtCharts::QCandlestickSeries*>(QtCharts::QAbstractSeries* ptr)
.
impl StaticDowncast<QCandlestickSeries> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QCandlestickSeries>
[src]
Calls C++ function: QtCharts::QCandlestickSeries* static_cast<QtCharts::QCandlestickSeries*>(QObject* ptr)
.
impl StaticUpcast<QAbstractSeries> for QCandlestickSeries
[src]
unsafe fn static_upcast(ptr: Ptr<QCandlestickSeries>) -> Ptr<QAbstractSeries>
[src]
Calls C++ function: QtCharts::QAbstractSeries* static_cast<QtCharts::QAbstractSeries*>(QtCharts::QCandlestickSeries* ptr)
.
impl StaticUpcast<QObject> for QCandlestickSeries
[src]
unsafe fn static_upcast(ptr: Ptr<QCandlestickSeries>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(QtCharts::QCandlestickSeries* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QCandlestickSeries
impl Send for QCandlestickSeries
impl Sync for QCandlestickSeries
impl Unpin for QCandlestickSeries
impl UnwindSafe for QCandlestickSeries
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>,