MCPcopy Create free account
hub / github.com/BlueAndi/Pixelix / clear

Method clear

lib/YAWidgets/src/BitmapWidget.cpp:119–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void BitmapWidget::clear(const Color& color)
120{
121 (void)color; /* Not used. */
122
123 if (IMG_TYPE_BMP == m_imgType)
124 {
125 m_bitmap.release();
126 }
127 else if (IMG_TYPE_GIF == m_imgType)
128 {
129 m_gifPlayer.close();
130 }
131 else
132 {
133 ;
134 }
135
136 m_imgType = IMG_TYPE_NO_IMAGE;
137}
138
139bool BitmapWidget::load(FS& fs, const String& filename)
140{

Callers

nothing calls this directly

Calls 2

releaseMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected