void wxNewBitmapButton::SetLabel(const wxBitmap& labelBitmap, const wxString& labelText ) { DestroyLabels(); mLabelText = labelText; mDepressedBmp = labelBitmap; //RenderLabelImages(); RenderAllLabelImages(); }
//------------------------------------- // //------------------------------------- void BaseScene::Update( double elapsedTime ) { DestroyEntities(); DestroySprites (); DestroyLabels (); AddEntities (); for( unsigned int i = 0; i < m_entities.Size(); i++ ) m_entities[i]->Update( elapsedTime ); if( m_scene )m_scene->Update( elapsedTime ); }
void wxNewBitmapButton::SetAlignments( int alignText, int marginX, int marginY, int textToLabelGap) { DestroyLabels(); mMarginX = marginX; mMarginY = marginY; mTextAlignment = alignText; mTextToLabelGap = textToLabelGap; //RenderLabelImages(); RenderAllLabelImages(); }
wxNewBitmapButton::~wxNewBitmapButton(void) { DestroyLabels(); }