//------------------------------------------------------------------------ CMovieBitmap::CMovieBitmap (const CMovieBitmap& v) : CControl (v) , offset (v.offset) { setNumSubPixmaps (v.subPixmaps); setHeightOfOneImage (v.heightOfOneImage); }
//------------------------------------------------------------------------ CMovieBitmap::CMovieBitmap (const CRect& size, CControlListener* listener, int32_t tag, int32_t subPixmaps, CCoord heightOfOneImage, CBitmap* background, const CPoint &offset) : CControl (size, listener, tag, background) , offset (offset) { setNumSubPixmaps (subPixmaps); setHeightOfOneImage (heightOfOneImage); }
//------------------------------------------------------------------------ CMovieBitmap::CMovieBitmap (const CRect& size, CControlListener* listener, int32_t tag, CBitmap* background, const CPoint &offset) : CControl (size, listener, tag, background) , offset (offset) { setHeightOfOneImage (size.getHeight ()); setNumSubPixmaps (background ? (int32_t)(background->getHeight () / heightOfOneImage) : 0); }
//------------------------------------------------------------------------ CKickButton::CKickButton (const CKickButton& v) : CControl (v) , offset (v.offset) { setHeightOfOneImage (v.heightOfOneImage); setWantsFocus (true); }
//------------------------------------------------------------------------ CKickButton::CKickButton (const CRect& size, CControlListener* listener, int32_t tag, CCoord heightOfOneImage, CBitmap* background, const CPoint& offset) : CControl (size, listener, tag, background) , offset (offset) { setHeightOfOneImage (heightOfOneImage); setWantsFocus (true); }
//------------------------------------------------------------------------ CMovieButton::CMovieButton (const CMovieButton& v) : CControl (v) , offset (v.offset) , buttonState (v.buttonState) { setHeightOfOneImage (v.heightOfOneImage); setWantsFocus (true); }