[−][src]Struct qt_charts::QBarLegendMarker
C++ class: QtCharts::QBarLegendMarker
.
Methods
impl QBarLegendMarker
[src]
pub unsafe fn barset(&mut self) -> MutPtr<QBarSet>
[src]
Returns the bar set related to the marker.
Calls C++ function: QtCharts::QBarSet* QtCharts::QBarLegendMarker::barset()
.
Returns the bar set related to the marker.
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* QtCharts::QBarLegendMarker::metaObject() const
.
pub unsafe fn new_4a(
series: impl CastInto<MutPtr<QAbstractBarSeries>>,
barset: impl CastInto<MutPtr<QBarSet>>,
legend: impl CastInto<MutPtr<QLegend>>,
parent: impl CastInto<MutPtr<QObject>>
) -> CppBox<QBarLegendMarker>
[src]
series: impl CastInto<MutPtr<QAbstractBarSeries>>,
barset: impl CastInto<MutPtr<QBarSet>>,
legend: impl CastInto<MutPtr<QLegend>>,
parent: impl CastInto<MutPtr<QObject>>
) -> CppBox<QBarLegendMarker>
Calls C++ function: [constructor] void QtCharts::QBarLegendMarker::QBarLegendMarker(QtCharts::QAbstractBarSeries* series, QtCharts::QBarSet* barset, QtCharts::QLegend* legend, QObject* parent = …)
.
pub unsafe fn new_3a(
series: impl CastInto<MutPtr<QAbstractBarSeries>>,
barset: impl CastInto<MutPtr<QBarSet>>,
legend: impl CastInto<MutPtr<QLegend>>
) -> CppBox<QBarLegendMarker>
[src]
series: impl CastInto<MutPtr<QAbstractBarSeries>>,
barset: impl CastInto<MutPtr<QBarSet>>,
legend: impl CastInto<MutPtr<QLegend>>
) -> CppBox<QBarLegendMarker>
Calls C++ function: [constructor] void QtCharts::QBarLegendMarker::QBarLegendMarker(QtCharts::QAbstractBarSeries* series, QtCharts::QBarSet* barset, QtCharts::QLegend* legend)
.
pub unsafe fn qt_metacall(
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
Calls C++ function: virtual int QtCharts::QBarLegendMarker::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]
&mut self,
arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
Calls C++ function: virtual void* QtCharts::QBarLegendMarker::qt_metacast(const char* arg1)
.
pub unsafe fn series(&mut self) -> MutPtr<QAbstractBarSeries>
[src]
Reimplements: QLegendMarker::series().
Calls C++ function: virtual QtCharts::QAbstractBarSeries* QtCharts::QBarLegendMarker::series()
.
Reimplements: QLegendMarker::series().
pub unsafe fn static_meta_object() -> Ref<QMetaObject>
[src]
Returns a reference to the staticMetaObject
field.
pub unsafe fn tr(
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
[src]
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString QtCharts::QBarLegendMarker::tr(const char* s, const char* c, int n)
.
pub unsafe fn tr_utf8(
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
[src]
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString QtCharts::QBarLegendMarker::trUtf8(const char* s, const char* c, int n)
.
pub unsafe fn type_(&mut self) -> LegendMarkerType
[src]
Reimplements: QLegendMarker::type().
Calls C++ function: virtual QtCharts::QLegendMarker::LegendMarkerType QtCharts::QBarLegendMarker::type()
.
Reimplements: QLegendMarker::type().
Methods from Deref<Target = QLegendMarker>
pub fn clicked(&self) -> Signal<()>
[src]
This signal is emitted when the legend marker is clicked.
Returns a built-in Qt signal QtCharts::QLegendMarker::clicked
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the legend marker is clicked.
pub fn hovered(&self) -> Signal<(bool,)>
[src]
This signal is emitted when a mouse is hovered over the legend marker. When the mouse moves over the marker, status turns true
, and when the mouse moves away again, it turns false
.
Returns a built-in Qt signal QtCharts::QLegendMarker::hovered
that can be passed to qt_core::Signal::connect
.
This signal is emitted when a mouse is hovered over the legend marker. When the mouse moves over the marker, status turns true
, and when the mouse moves away again, it turns false
.
pub fn label_changed(&self) -> Signal<()>
[src]
This signal is emitted when the label of the legend marker has changed.
Returns a built-in Qt signal QtCharts::QLegendMarker::labelChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the label of the legend marker has changed.
Note: Notifier signal for property label.
pub fn label_brush_changed(&self) -> Signal<()>
[src]
This signal is emitted when the label brush of the legend marker has changed.
Returns a built-in Qt signal QtCharts::QLegendMarker::labelBrushChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the label brush of the legend marker has changed.
Note: Notifier signal for property labelBrush.
pub fn font_changed(&self) -> Signal<()>
[src]
This signal is emitted when the (label) font of the legend marker has changed.
Returns a built-in Qt signal QtCharts::QLegendMarker::fontChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the (label) font of the legend marker has changed.
Note: Notifier signal for property font.
pub fn pen_changed(&self) -> Signal<()>
[src]
This signal is emitted when the pen of the legend marker has changed.
Returns a built-in Qt signal QtCharts::QLegendMarker::penChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the pen of the legend marker has changed.
Note: Notifier signal for property pen.
pub fn brush_changed(&self) -> Signal<()>
[src]
This signal is emitted when the brush of the legend marker has changed.
Returns a built-in Qt signal QtCharts::QLegendMarker::brushChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the brush of the legend marker has changed.
Note: Notifier signal for property brush.
pub fn visible_changed(&self) -> Signal<()>
[src]
This signal is emitted when the visibility of the legend marker has changed.
Returns a built-in Qt signal QtCharts::QLegendMarker::visibleChanged
that can be passed to qt_core::Signal::connect
.
This signal is emitted when the visibility of the legend marker has changed.
Note: Notifier signal for property visible.
pub fn shape_changed(&self) -> Signal<()>
[src]
The shape of the legend marker. Defaults to QLegend::MarkerShapeDefault, which indicates the shape is determined by QLegend::markerShape property.
Returns a built-in Qt signal QtCharts::QLegendMarker::shapeChanged
that can be passed to qt_core::Signal::connect
.
The shape of the legend marker. Defaults to QLegend::MarkerShapeDefault, which indicates the shape is determined by QLegend::markerShape property.
Access functions:
QLegend::MarkerShape | shape() const |
void | setShape(QLegend::MarkerShape shape) |
Notifier signal:
void | shapeChanged() |
pub unsafe fn brush(&self) -> CppBox<QBrush>
[src]
This property holds the brush used to fill the icon.
Calls C++ function: QBrush QtCharts::QLegendMarker::brush() const
.
This property holds the brush used to fill the icon.
Access functions:
Notifier signal:
void | brushChanged() |
pub unsafe fn font(&self) -> CppBox<QFont>
[src]
This property holds the font of the label.
Calls C++ function: QFont QtCharts::QLegendMarker::font() const
.
pub unsafe fn is_visible(&self) -> bool
[src]
Returns the visibility of the marker.
Calls C++ function: bool QtCharts::QLegendMarker::isVisible() const
.
Returns the visibility of the marker.
Note: Getter function for property visible.
pub unsafe fn label(&self) -> CppBox<QString>
[src]
This property holds the text shown in the legend for a legend marker.
Calls C++ function: QString QtCharts::QLegendMarker::label() const
.
This property holds the text shown in the legend for a legend marker.
Access functions:
Notifier signal:
void | labelChanged() |
pub unsafe fn label_brush(&self) -> CppBox<QBrush>
[src]
This property holds the brush of the label.
Calls C++ function: QBrush QtCharts::QLegendMarker::labelBrush() const
.
This property holds the brush of the label.
Access functions:
QBrush | labelBrush() const |
void | setLabelBrush(const QBrush &brush) |
Notifier signal:
void | labelBrushChanged() |
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* QtCharts::QLegendMarker::metaObject() const
.
pub unsafe fn pen(&self) -> CppBox<QPen>
[src]
This property holds the pen used to draw the outline of the icon.
Calls C++ function: QPen QtCharts::QLegendMarker::pen() const
.
This property holds the pen used to draw the outline of the icon.
Access functions:
Notifier signal:
void | penChanged() |
pub unsafe fn qt_metacall(
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
Calls C++ function: virtual int QtCharts::QLegendMarker::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]
&mut self,
arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
Calls C++ function: virtual void* QtCharts::QLegendMarker::qt_metacast(const char* arg1)
.
pub unsafe fn series(&mut self) -> MutPtr<QAbstractSeries>
[src]
Returns a pointer to the series that is related to this legend marker. A legend marker is always related to a series.
Calls C++ function: pure virtual QtCharts::QAbstractSeries* QtCharts::QLegendMarker::series()
.
Returns a pointer to the series that is related to this legend marker. A legend marker is always related to a series.
pub unsafe fn set_brush(&mut self, brush: impl CastInto<Ref<QBrush>>)
[src]
Sets the brush used to fill the icon to brush.
Calls C++ function: void QtCharts::QLegendMarker::setBrush(const QBrush& brush)
.
pub unsafe fn set_font(&mut self, font: impl CastInto<Ref<QFont>>)
[src]
Sets the font of the label to font.
Calls C++ function: void QtCharts::QLegendMarker::setFont(const QFont& font)
.
pub unsafe fn set_label(&mut self, label: impl CastInto<Ref<QString>>)
[src]
Sets the label of the marker to label.
Calls C++ function: void QtCharts::QLegendMarker::setLabel(const QString& label)
.
pub unsafe fn set_label_brush(&mut self, brush: impl CastInto<Ref<QBrush>>)
[src]
Sets the the brush used to draw to label to brush.
Calls C++ function: void QtCharts::QLegendMarker::setLabelBrush(const QBrush& brush)
.
Sets the the brush used to draw to label to brush.
Note: Setter function for property labelBrush.
See also labelBrush().
pub unsafe fn set_pen(&mut self, pen: impl CastInto<Ref<QPen>>)
[src]
Sets the pen used to draw the outline of the icon to pen.
Calls C++ function: void QtCharts::QLegendMarker::setPen(const QPen& pen)
.
pub unsafe fn set_shape(&mut self, shape: MarkerShape)
[src]
The shape of the legend marker. Defaults to QLegend::MarkerShapeDefault, which indicates the shape is determined by QLegend::markerShape property.
Calls C++ function: void QtCharts::QLegendMarker::setShape(QtCharts::QLegend::MarkerShape shape)
.
The shape of the legend marker. Defaults to QLegend::MarkerShapeDefault, which indicates the shape is determined by QLegend::markerShape property.
Access functions:
QLegend::MarkerShape | shape() const |
void | setShape(QLegend::MarkerShape shape) |
Notifier signal:
void | shapeChanged() |
pub unsafe fn set_visible(&mut self, visible: bool)
[src]
Sets the marker's visibility to visible.
Calls C++ function: void QtCharts::QLegendMarker::setVisible(bool visible)
.
pub unsafe fn shape(&self) -> MarkerShape
[src]
The shape of the legend marker. Defaults to QLegend::MarkerShapeDefault, which indicates the shape is determined by QLegend::markerShape property.
Calls C++ function: QtCharts::QLegend::MarkerShape QtCharts::QLegendMarker::shape() const
.
The shape of the legend marker. Defaults to QLegend::MarkerShapeDefault, which indicates the shape is determined by QLegend::markerShape property.
Access functions:
QLegend::MarkerShape | shape() const |
void | setShape(QLegend::MarkerShape shape) |
Notifier signal:
void | shapeChanged() |
pub unsafe fn type_(&mut self) -> LegendMarkerType
[src]
Returns the type of the legend marker for the related series, pie slice, or bar set.
Calls C++ function: pure virtual QtCharts::QLegendMarker::LegendMarkerType QtCharts::QLegendMarker::type()
.
Returns the type of the legend marker for the related series, pie slice, or bar set.
See also LegendMarkerType.
Trait Implementations
impl CppDeletable for QBarLegendMarker
[src]
unsafe fn delete(&mut self)
[src]
Removes the legend marker for a bar set.
Calls C++ function: virtual [destructor] void QtCharts::QBarLegendMarker::~QBarLegendMarker()
.
Removes the legend marker for a bar set.
impl Deref for QBarLegendMarker
[src]
type Target = QLegendMarker
The resulting type after dereferencing.
fn deref(&self) -> &QLegendMarker
[src]
Calls C++ function: QtCharts::QLegendMarker* static_cast<QtCharts::QLegendMarker*>(QtCharts::QBarLegendMarker* ptr)
.
impl DerefMut for QBarLegendMarker
[src]
fn deref_mut(&mut self) -> &mut QLegendMarker
[src]
Calls C++ function: QtCharts::QLegendMarker* static_cast<QtCharts::QLegendMarker*>(QtCharts::QBarLegendMarker* ptr)
.
impl DynamicCast<QBarLegendMarker> for QLegendMarker
[src]
unsafe fn dynamic_cast(ptr: Ptr<QLegendMarker>) -> Ptr<QBarLegendMarker>
[src]
Calls C++ function: QtCharts::QBarLegendMarker* dynamic_cast<QtCharts::QBarLegendMarker*>(QtCharts::QLegendMarker* ptr)
.
unsafe fn dynamic_cast_mut(
ptr: MutPtr<QLegendMarker>
) -> MutPtr<QBarLegendMarker>
[src]
ptr: MutPtr<QLegendMarker>
) -> MutPtr<QBarLegendMarker>
Calls C++ function: QtCharts::QBarLegendMarker* dynamic_cast<QtCharts::QBarLegendMarker*>(QtCharts::QLegendMarker* ptr)
.
impl DynamicCast<QBarLegendMarker> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QBarLegendMarker>
[src]
Calls C++ function: QtCharts::QBarLegendMarker* dynamic_cast<QtCharts::QBarLegendMarker*>(QObject* ptr)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<QBarLegendMarker>
[src]
Calls C++ function: QtCharts::QBarLegendMarker* dynamic_cast<QtCharts::QBarLegendMarker*>(QObject* ptr)
.
impl StaticDowncast<QBarLegendMarker> for QLegendMarker
[src]
unsafe fn static_downcast(ptr: Ptr<QLegendMarker>) -> Ptr<QBarLegendMarker>
[src]
Calls C++ function: QtCharts::QBarLegendMarker* static_cast<QtCharts::QBarLegendMarker*>(QtCharts::QLegendMarker* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QLegendMarker>
) -> MutPtr<QBarLegendMarker>
[src]
ptr: MutPtr<QLegendMarker>
) -> MutPtr<QBarLegendMarker>
Calls C++ function: QtCharts::QBarLegendMarker* static_cast<QtCharts::QBarLegendMarker*>(QtCharts::QLegendMarker* ptr)
.
impl StaticDowncast<QBarLegendMarker> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QBarLegendMarker>
[src]
Calls C++ function: QtCharts::QBarLegendMarker* static_cast<QtCharts::QBarLegendMarker*>(QObject* ptr)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<QBarLegendMarker>
[src]
Calls C++ function: QtCharts::QBarLegendMarker* static_cast<QtCharts::QBarLegendMarker*>(QObject* ptr)
.
impl StaticUpcast<QLegendMarker> for QBarLegendMarker
[src]
unsafe fn static_upcast(ptr: Ptr<QBarLegendMarker>) -> Ptr<QLegendMarker>
[src]
Calls C++ function: QtCharts::QLegendMarker* static_cast<QtCharts::QLegendMarker*>(QtCharts::QBarLegendMarker* ptr)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QBarLegendMarker>
) -> MutPtr<QLegendMarker>
[src]
ptr: MutPtr<QBarLegendMarker>
) -> MutPtr<QLegendMarker>
Calls C++ function: QtCharts::QLegendMarker* static_cast<QtCharts::QLegendMarker*>(QtCharts::QBarLegendMarker* ptr)
.
impl StaticUpcast<QObject> for QBarLegendMarker
[src]
unsafe fn static_upcast(ptr: Ptr<QBarLegendMarker>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(QtCharts::QBarLegendMarker* ptr)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QBarLegendMarker>) -> MutPtr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(QtCharts::QBarLegendMarker* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QBarLegendMarker
impl Send for QBarLegendMarker
impl Sync for QBarLegendMarker
impl Unpin for QBarLegendMarker
impl UnwindSafe for QBarLegendMarker
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]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<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>,