コード例 #1
0
ファイル: layer.cpp プロジェクト: bradparks/aseprite
/**
 * 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);
}
コード例 #2
0
ファイル: menu.cpp プロジェクト: BackupTheBerlios/hypnos-svn
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;
	}

}
コード例 #3
0
ファイル: popup_window.cpp プロジェクト: Julien-B/aseprite
void PopupWindow::makeFixed()
{
    startFilteringMessages();
    setMoveable(false);
}
コード例 #4
0
ファイル: popup_window.cpp プロジェクト: Julien-B/aseprite
void PopupWindow::makeFloating()
{
    stopFilteringMessages();
    setMoveable(true);
}