Пример #1
0
void wxNewBitmapButton::SetLabel(const wxBitmap& labelBitmap,
                                 const wxString& labelText )
{
    DestroyLabels();

    mLabelText    = labelText;
    mDepressedBmp = labelBitmap;

    //RenderLabelImages();
    RenderAllLabelImages();
}
Пример #2
0
//-------------------------------------
//
//-------------------------------------
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 );

}
Пример #3
0
void wxNewBitmapButton::SetAlignments( int alignText,
                                       int marginX,
                                       int marginY,
                                       int textToLabelGap)
{
    DestroyLabels();

    mMarginX        = marginX;
    mMarginY        = marginY;
    mTextAlignment  = alignText;
    mTextToLabelGap = textToLabelGap;

    //RenderLabelImages();
    RenderAllLabelImages();
}
Пример #4
0
wxNewBitmapButton::~wxNewBitmapButton(void)
{
    DestroyLabels();
}