/***************************************************************************
                            kde_Rect.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_Rect.h"
}

#include <dom/css_value.h>

class RectBridge : public DOM::Rect
{
public:
	RectBridge() : Rect() {}
	RectBridge(const Rect& other) : Rect(other) {}
	~RectBridge() {}
};

kde_Rect * kde_new_Rect(){
	return (kde_Rect *) new RectBridge();
}
kde_Rect * kde_new_Rect1(kde_Rect* other){
	return (kde_Rect *) new RectBridge((DOM::Rect&)* (DOM::Rect*)other);
}
void kde_del_Rect( kde_Rect* p ){
	delete (RectBridge*) p;
}
kde_CSSPrimitiveValue* kde_Rect_top( kde_Rect* instPointer){
	return (kde_CSSPrimitiveValue*)new DOM::CSSPrimitiveValue(((RectBridge*)instPointer)->top());
}
kde_CSSPrimitiveValue* kde_Rect_right( kde_Rect* instPointer){
	return (kde_CSSPrimitiveValue*)new DOM::CSSPrimitiveValue(((RectBridge*)instPointer)->right());
}
kde_CSSPrimitiveValue* kde_Rect_bottom( kde_Rect* instPointer){
	return (kde_CSSPrimitiveValue*)new DOM::CSSPrimitiveValue(((RectBridge*)instPointer)->bottom());
}
kde_CSSPrimitiveValue* kde_Rect_left( kde_Rect* instPointer){
	return (kde_CSSPrimitiveValue*)new DOM::CSSPrimitiveValue(((RectBridge*)instPointer)->left());
}
//RectImpl* kde_Rect_handle( kde_Rect* instPointer){
//	return (RectImpl*) ((RectBridge*)instPointer)->handle();
//}
int kde_Rect_isNull( kde_Rect* instPointer){
	return (int) ((RectBridge*)instPointer)->isNull();
}
