Example #1
0
/**
 * Configures some properties of the specified layer to make it as the
 * "Background" of the sprite.
 *
 * You can't use this routine if the sprite already has a background
 * layer.
 */
void LayerImage::configureAsBackground()
{
  ASSERT(getSprite() != NULL);
  ASSERT(getSprite()->getBackgroundLayer() == NULL);

  setMoveable(false);
  setBackground(true);
  setName("Background");

  getSprite()->getFolder()->stackLayer(this, NULL);
}
Example #2
0
cMenu::cMenu( MENU_TYPE id, uint32_t x, uint32_t y, bool canMove, bool canClose, bool canDispose ) : cBasicMenu( id )
{
	this->x = x;
	this->y = y;

	moveable=closeable=disposeable=true;

	setMoveable( canMove );
	setCloseable( canClose );
	setDisposeable( canDispose );

	rc_serialCurrent = 1;
	pageCount=1;
	pageCurrent=0;

	for( int i=0; i<4; ++i ) {
		buffer[i] = INVALID;
	}

}
Example #3
0
void PopupWindow::makeFixed()
{
    startFilteringMessages();
    setMoveable(false);
}
Example #4
0
void PopupWindow::makeFloating()
{
    stopFilteringMessages();
    setMoveable(true);
}