Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
DataViewBitmapText Class Reference

#include <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)
 
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
20 :
21 m_text(text),
22 m_bmp(bmp)
23 { }
wxBitmap m_bmp
Definition ExtraRenderers.hpp:50
wxString m_text
Definition ExtraRenderers.hpp:49

◆ DataViewBitmapText() [2/2]

DataViewBitmapText::DataViewBitmapText ( const DataViewBitmapText other)
inline
26 : wxObject(),
27 m_text(other.m_text),
28 m_bmp(other.m_bmp)
29 { }

Member Function Documentation

◆ GetBitmap()

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

References m_bmp.

Referenced by BitmapTextRenderer::GetSize(), BitmapChoiceRenderer::GetSize(), BitmapTextRenderer::Render(), and BitmapChoiceRenderer::Render().

+ Here is the caller graph for this function:

◆ GetText()

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

References m_text.

Referenced by BitmapTextRenderer::GetSize(), BitmapChoiceRenderer::GetSize(), BitmapTextRenderer::Render(), BitmapChoiceRenderer::Render(), and BitmapTextRenderer::SetValue().

+ Here is the caller graph for this function:

◆ IsSameAs()

bool DataViewBitmapText::IsSameAs ( const DataViewBitmapText other) const
inline
36 {
37 return m_text == other.m_text && m_bmp.IsSameAs(other.m_bmp);
38 }

References m_bmp, and m_text.

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

+ Here is the caller graph for this function:

◆ operator!=()

bool DataViewBitmapText::operator!= ( const DataViewBitmapText other) const
inline
44 {
45 return !IsSameAs(other);
46 }
bool IsSameAs(const DataViewBitmapText &other) const
Definition ExtraRenderers.hpp:36

References IsSameAs().

+ Here is the call graph for this function:

◆ operator==()

bool DataViewBitmapText::operator== ( const DataViewBitmapText other) const
inline
40 {
41 return IsSameAs(other);
42 }

References IsSameAs().

+ Here is the call graph for this function:

◆ SetBitmap()

void DataViewBitmapText::SetBitmap ( const wxBitmap &  bmp)
inline
33{ 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
31{ m_text = text; }

References m_text.

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

+ Here is the caller graph for this function:

◆ wxDECLARE_DYNAMIC_CLASS()

DataViewBitmapText::wxDECLARE_DYNAMIC_CLASS ( DataViewBitmapText  )
private

Member Data Documentation

◆ m_bmp

wxBitmap DataViewBitmapText::m_bmp
private

Referenced by GetBitmap(), IsSameAs(), and SetBitmap().

◆ m_text

wxString DataViewBitmapText::m_text
private

Referenced by GetText(), IsSameAs(), and SetText().


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