OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
DataViewBitmapText Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/ExtraRenderers.hpp>

Inheritance diagram for DataViewBitmapText:
Collaboration diagram for DataViewBitmapText:

Public Member Functions

 DataViewBitmapText (const wxString &text=wxEmptyString, const wxBitmap &bmp=wxNullBitmap)
 DataViewBitmapText (const DataViewBitmapText &other)
DataViewBitmapText & operator= (const DataViewBitmapText &other)
void SetText (const wxString &text)
wxString GetText () const
void SetBitmap (const wxBitmap &bmp)
const wxBitmap & GetBitmap () const
bool IsSameAs (const DataViewBitmapText &other) const
bool operator== (const DataViewBitmapText &other) const
bool operator!= (const DataViewBitmapText &other) const

Private Member Functions

 wxDECLARE_DYNAMIC_CLASS (DataViewBitmapText)

Private Attributes

wxString m_text
wxBitmap m_bmp

Detailed Description

Constructor & Destructor Documentation

◆ DataViewBitmapText() [1/2]

DataViewBitmapText::DataViewBitmapText ( const wxString & text = wxEmptyString,
const wxBitmap & bmp = wxNullBitmap )
inline
29 :
30 m_text(text),
31 m_bmp(bmp)
32 { }
wxBitmap m_bmp
Definition ExtraRenderers.hpp:68
wxString m_text
Definition ExtraRenderers.hpp:67

References m_bmp, and m_text.

Referenced by DataViewBitmapText(), IsSameAs(), operator!=(), operator=(), operator==(), and wxDECLARE_DYNAMIC_CLASS().

Here is the caller graph for this function:

◆ DataViewBitmapText() [2/2]

DataViewBitmapText::DataViewBitmapText ( const DataViewBitmapText & other)
inline
35 : wxObject(),
36 m_text(other.m_text),
37 m_bmp(other.m_bmp)
38 { }

References DataViewBitmapText(), m_bmp, and m_text.

Here is the call graph for this function:

Member Function Documentation

◆ GetBitmap()

const wxBitmap & DataViewBitmapText::GetBitmap ( ) const
inline
52{ return m_bmp; }

References m_bmp.

Referenced by BitmapTextRenderer::CreateEditorCtrl(), Slic3r::GUI::DiffModel::SetValue(), and Slic3r::GUI::ObjectDataViewModelNode::SetValue().

Here is the caller graph for this function:

◆ GetText()

wxString DataViewBitmapText::GetText ( ) const
inline
50{ return m_text; }

References m_text.

Referenced by BitmapChoiceRenderer::CreateEditorCtrl(), BitmapTextRenderer::CreateEditorCtrl(), Slic3r::GUI::DiffModel::SetValue(), and Slic3r::GUI::ObjectDataViewModelNode::SetValue().

Here is the caller graph for this function:

◆ IsSameAs()

bool DataViewBitmapText::IsSameAs ( const DataViewBitmapText & other) const
inline
54 {
55 return m_text == other.m_text && m_bmp.IsSameAs(other.m_bmp);
56 }

References DataViewBitmapText(), m_bmp, and m_text.

Referenced by operator!=(), and operator==().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator!=()

bool DataViewBitmapText::operator!= ( const DataViewBitmapText & other) const
inline
62 {
63 return !IsSameAs(other);
64 }
bool IsSameAs(const DataViewBitmapText &other) const
Definition ExtraRenderers.hpp:54

References DataViewBitmapText(), and IsSameAs().

Here is the call graph for this function:

◆ operator=()

DataViewBitmapText & DataViewBitmapText::operator= ( const DataViewBitmapText & other)
inline
41 {
42 if (this != &other) {
43 m_text = other.m_text;
44 m_bmp = other.m_bmp;
45 }
46 return *this;
47 }

References DataViewBitmapText(), m_bmp, and m_text.

Here is the call graph for this function:

◆ operator==()

bool DataViewBitmapText::operator== ( const DataViewBitmapText & other) const
inline
58 {
59 return IsSameAs(other);
60 }

References DataViewBitmapText(), and IsSameAs().

Here is the call graph for this function:

◆ SetBitmap()

void DataViewBitmapText::SetBitmap ( const wxBitmap & bmp)
inline
51{ m_bmp = bmp; }

References m_bmp.

Referenced by BitmapChoiceRenderer::GetValueFromEditorCtrl().

Here is the caller graph for this function:

◆ SetText()

void DataViewBitmapText::SetText ( const wxString & text)
inline
49{ m_text = text; }

References m_text.

Referenced by BitmapChoiceRenderer::GetValueFromEditorCtrl(), BitmapTextRenderer::GetValueFromEditorCtrl(), and Slic3r::GUI::ObjectDataViewModel::SetName().

Here is the caller graph for this function:

◆ wxDECLARE_DYNAMIC_CLASS()

DataViewBitmapText::wxDECLARE_DYNAMIC_CLASS ( DataViewBitmapText )
private

References DataViewBitmapText().

Here is the call graph for this function:

Member Data Documentation

◆ m_bmp

wxBitmap DataViewBitmapText::m_bmp
private

◆ m_text

wxString DataViewBitmapText::m_text
private

The documentation for this class was generated from the following file: