/***************************************************************************
                            qt_QPopupMenu.h -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, 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.                       *
 *                                                                         *
 ***************************************************************************/

#ifndef QT_QPOPUPMENU
#define QT_QPOPUPMENU

#include <qtc/qtc_types.h>

/**

* $Id: qt_QPopupMenu.h,v 1.2 2001/11/21 23:26:17 rdale Exp $
*
* Definition of QStyle class
*
* Created : 980616
*
* Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.
*
* This file is part of the kernel module of the Qt GUI Toolkit.
*
* This file may be distributed under the terms of the Q Public License
* as defined by Trolltech AS of Norway and appearing in the file
* LICENSE.QPL included in the packaging of this file.
*
* This file may be distributed and/or modified under the terms of the
* GNU General Public License version 2 as published by the Free Software
* Foundation and appearing in the file LICENSE.GPL included in the
* packaging of this file.
*
* Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
* licenses may use this file in accordance with the Qt Commercial License
* Agreement provided with the Software.
*
* This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
* WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
*   information about Qt Commercial License Agreements.
* See http://www.trolltech.com/qpl/ for QPL licensing information.
* See http://www.trolltech.com/gpl/ for GPL licensing information.
*
* Contact info@trolltech.com if any conditions of this licensing are
* not clear to you.
*
********************************************************************
 @short 
* $Id:  qt/qstyle.
*/
qt_QPopupMenu * qt_new_QPopupMenu(qt_QWidget * parent, char* name);
void qt_del_QPopupMenu( qt_QPopupMenu* p );
void qt_QPopupMenu_popup(qt_QPopupMenu* instPointer,qt_QPoint* pos, int indexAtPoint);
void qt_QPopupMenu_updateItem(qt_QPopupMenu* instPointer,int identifier);
void qt_QPopupMenu_setCheckable(qt_QPopupMenu* instPointer,int arg1);
int qt_QPopupMenu_isCheckable(qt_QPopupMenu* instPointer);
void qt_QPopupMenu_setFont(qt_QPopupMenu* instPointer,qt_QFont * arg1);
void qt_QPopupMenu_show(qt_QPopupMenu* instPointer);
void qt_QPopupMenu_hide(qt_QPopupMenu* instPointer);
int qt_QPopupMenu_exec(qt_QPopupMenu* instPointer);
int qt_QPopupMenu_exec1(qt_QPopupMenu* instPointer,qt_QPoint* pos, int indexAtPoint);
void qt_QPopupMenu_setActiveItem(qt_QPopupMenu* instPointer,int arg1);
qt_QSize * qt_QPopupMenu_sizeHint(qt_QPopupMenu* instPointer);
int qt_QPopupMenu_idAt(qt_QPopupMenu* instPointer,int index);
int qt_QPopupMenu_idAt1(qt_QPopupMenu* instPointer,qt_QPoint* pos);
int qt_QPopupMenu_customWhatsThis(qt_QPopupMenu* instPointer);
int qt_QPopupMenu_insertTearOffHandle(qt_QPopupMenu* instPointer,int identifier, int index);
void qt_QPopupMenu_activateItemAt(qt_QPopupMenu* instPointer,int index);
qt_QRect* qt_QPopupMenu_itemGeometry(qt_QPopupMenu* instPointer,int index);
int qt_QPopupMenu_itemHeight(qt_QPopupMenu* instPointer,int arg1);
int qt_QPopupMenu_itemHeight1(qt_QPopupMenu* instPointer,qt_QMenuItem * mi);
void qt_QPopupMenu_drawItem(qt_QPopupMenu* instPointer,qt_QPainter * p, int tab, qt_QMenuItem * mi, int act, int x, int y, int w, int h);
void qt_QPopupMenu_drawContents(qt_QPopupMenu* instPointer,qt_QPainter * arg1);
void qt_QPopupMenu_styleChange(qt_QPopupMenu* instPointer,qt_QStyle* arg1);
int qt_QPopupMenu_columns(qt_QPopupMenu* instPointer);
int qt_QPopupMenu_focusNextPrevChild(qt_QPopupMenu* instPointer,int next);
int qt_QPopupMenu_itemAtPos(qt_QPopupMenu* instPointer,qt_QPoint* arg1, int ignoreSeparator);

/** Casts a 'qt_QPopupMenu *' to a 'qt_QFrame*' */
qt_QFrame* qt_QPopupMenu_QFrame(qt_QPopupMenu* instPointer);

/** Casts a 'qt_QPopupMenu *' to a 'qt_QMenuData*' */
qt_QMenuData* qt_QPopupMenu_QMenuData(qt_QPopupMenu* instPointer);

#endif
