/***************************************************************************
                            kde_KWin.cpp -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "kde_KWin.h"
}

#include <kwin.h>

void kde_KWin_setActiveWindow( unsigned int win){
	KWin::setActiveWindow((WId)win);
	return;
}
void kde_KWin_invokeContextHelp( ){
	KWin::invokeContextHelp();
	return;
}
void kde_KWin_setSystemTrayWindowFor( unsigned int trayWin, unsigned int forWin){
	KWin::setSystemTrayWindowFor((WId)trayWin, (WId)forWin);
	return;
}
//int kde_KWin_info( unsigned int win){
//	return (int) KWin::info((WId)win);
//}
qt_QPixmap * kde_KWin_icon( unsigned int win, int width, int height, int scale){
	return (qt_QPixmap *)new QPixmap(KWin::icon((WId)win, (int)width, (int)height, (bool)scale));
}
void kde_KWin_setIcons( unsigned int win, qt_QPixmap * icon, qt_QPixmap * miniIcon){
	KWin::setIcons((WId)win, (QPixmap&)* (QPixmap*)icon, (QPixmap&)* (QPixmap*)miniIcon);
	return;
}
void kde_KWin_setType( unsigned int win, int windowType){
	KWin::setType((WId)win, (NET::WindowType)windowType);
	return;
}
void kde_KWin_setState( unsigned int win, unsigned long state){
	KWin::setState((WId)win, (unsigned long)state);
	return;
}
void kde_KWin_clearState( unsigned int win, unsigned long state){
	KWin::clearState((WId)win, (unsigned long)state);
	return;
}
void kde_KWin_setOnAllDesktops( unsigned int win, int b){
	KWin::setOnAllDesktops((WId)win, (bool)b);
	return;
}
void kde_KWin_setOnDesktop( unsigned int win, int desktop){
	KWin::setOnDesktop((WId)win, (int)desktop);
	return;
}
void kde_KWin_setStrut( unsigned int win, int left, int right, int top, int bottom){
	KWin::setStrut((WId)win, (int)left, (int)right, (int)top, (int)bottom);
	return;
}
int kde_KWin_currentDesktop( ){
	return (int) KWin::currentDesktop();
}
int kde_KWin_numberOfDesktops( ){
	return (int) KWin::numberOfDesktops();
}
void kde_KWin_setCurrentDesktop( int desktop){
	KWin::setCurrentDesktop((int)desktop);
	return;
}
void kde_KWin_iconifyWindow( unsigned int win, int animation){
	KWin::iconifyWindow((WId)win, (bool)animation);
	return;
}
void kde_KWin_deIconifyWindow( unsigned int win, int animation){
	KWin::deIconifyWindow((WId)win, (bool)animation);
	return;
}
void kde_KWin_appStarted( ){
	KWin::appStarted();
	return;
}
