Exemplo n.º 1
0
//------------------------------------------------------------------------
CMovieBitmap::CMovieBitmap (const CMovieBitmap& v)
    : CControl (v)
    , offset (v.offset)
{
    setNumSubPixmaps (v.subPixmaps);
    setHeightOfOneImage (v.heightOfOneImage);
}
Exemplo n.º 2
0
//------------------------------------------------------------------------
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);
}
Exemplo n.º 3
0
//------------------------------------------------------------------------
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);
}
Exemplo n.º 4
0
//------------------------------------------------------------------------
CKickButton::CKickButton (const CKickButton& v)
: CControl (v)
, offset (v.offset)
{
	setHeightOfOneImage (v.heightOfOneImage);
	setWantsFocus (true);
}
Exemplo n.º 5
0
//------------------------------------------------------------------------
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);
}
Exemplo n.º 6
0
//------------------------------------------------------------------------
CMovieButton::CMovieButton (const CMovieButton& v)
: CControl (v)
, offset (v.offset)
, buttonState (v.buttonState)
{
	setHeightOfOneImage (v.heightOfOneImage);
	setWantsFocus (true);
}