cppwidget.hpp
Go to the documentation of this file.
/***************************************************************************
begin : Tue Jul 13 2010
copyright : (C) 2010 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifndef CPPWIDGET_HPP
#define CPPWIDGET_HPP
#include <gwenhywfar/dialog_be.h>
#include <list>
#include <string>
class CppWidget;
class CppDialog;
#include <gwen-gui-cpp/api.h>
class CPPGUI_API CppWidget {
friend class CppWidgetLinker;
private:
GWEN_WIDGET_SETINTPROPERTY_FN _setIntPropertyFn;
GWEN_WIDGET_GETINTPROPERTY_FN _getIntPropertyFn;
GWEN_WIDGET_SETCHARPROPERTY_FN _setCharPropertyFn;
GWEN_WIDGET_GETCHARPROPERTY_FN _getCharPropertyFn;
GWEN_WIDGET_ADDCHILDGUIWIDGET_FN _addChildGuiWidgetFn;
public:
CppWidget(GWEN_WIDGET *w);
virtual ~CppWidget();
GWEN_WIDGET *getCInterface();
static CPPGUI_API CppWidget *getWidget(GWEN_WIDGET *w);
CppDialog *getDialog();
const char *getName();
GWEN_WIDGET_TYPE getType();
int getColumns();
int getRows();
uint32_t getFlags();
int getGroupId();
int getWidth();
int getHeight();
const char *getText(int idx);
const char *getIconFileName();
const char *getImageFileName();
protected:
GWEN_WIDGET *_widget;
CppWidget();
virtual int setIntProperty(GWEN_DIALOG_PROPERTY prop,
int index,
int value,
int doSignal);
virtual int getIntProperty(GWEN_DIALOG_PROPERTY prop,
int index,
int defaultValue);
virtual int setCharProperty(GWEN_DIALOG_PROPERTY prop,
int index,
const char *value,
int doSignal);
virtual const char *getCharProperty(GWEN_DIALOG_PROPERTY prop,
int index,
const char *defaultValue);
virtual int addChildGuiWidget(GWEN_WIDGET *wChild);
};
#endif /* CPPWIDGET_HPP */
CppDialog
A C++ binding for the C module GWEN_DIALOG.
Definition cppdialog.hpp:32
CppWidget
A C++ binding for the C module GWEN_WIDGET.
Definition cppwidget.hpp:32
CppWidget::getHeight
int getHeight()
CppWidget::~CppWidget
virtual ~CppWidget()
CppWidget::getType
GWEN_WIDGET_TYPE getType()
CppWidget::getName
const char * getName()
CppWidget::getRows
int getRows()
CppWidget::CppWidget
CppWidget(GWEN_WIDGET *w)
CppWidget::_widget
GWEN_WIDGET * _widget
Definition cppwidget.hpp:66
CppWidget::getIconFileName
const char * getIconFileName()
CppWidget::CppWidgetLinker
friend class CppWidgetLinker
Definition cppwidget.hpp:33
CppWidget::CppWidget
CppWidget()
CppWidget::getImageFileName
const char * getImageFileName()
CppWidget::getWidth
int getWidth()
CppWidget::getColumns
int getColumns()
CppWidget::getWidget
static CPPGUI_API CppWidget * getWidget(GWEN_WIDGET *w)
CppWidget::setCharProperty
virtual int setCharProperty(GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal)
CppWidget::getDialog
CppDialog * getDialog()
CppWidget::getText
const char * getText(int idx)
CppWidget::getFlags
uint32_t getFlags()
CppWidget::getIntProperty
virtual int getIntProperty(GWEN_DIALOG_PROPERTY prop, int index, int defaultValue)
CppWidget::getGroupId
int getGroupId()
CppWidget::setIntProperty
virtual int setIntProperty(GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal)
CppWidget::getCharProperty
virtual const char * getCharProperty(GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue)
CppWidget::addChildGuiWidget
virtual int addChildGuiWidget(GWEN_WIDGET *wChild)
CppWidget::getCInterface
GWEN_WIDGET * getCInterface()
GWEN_DIALOG_PROPERTY
GWEN_DIALOG_PROPERTY
Definition dialog.h:260
dialog_be.h
api.h
GWEN_WIDGET_GETCHARPROPERTY_FN
const char *GWENHYWFAR_CB(* GWEN_WIDGET_GETCHARPROPERTY_FN)(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue)
Definition widget_be.h:116
GWEN_WIDGET_SETINTPROPERTY_FN
int GWENHYWFAR_CB(* GWEN_WIDGET_SETINTPROPERTY_FN)(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal)
Definition widget_be.h:99
GWEN_WIDGET
struct GWEN_WIDGET GWEN_WIDGET
Definition widget_be.h:34
GWEN_WIDGET_SETCHARPROPERTY_FN
int GWENHYWFAR_CB(* GWEN_WIDGET_SETCHARPROPERTY_FN)(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal)
Definition widget_be.h:110
GWEN_WIDGET_TYPE
GWEN_WIDGET_TYPE
Definition widget_be.h:49
GWEN_WIDGET_ADDCHILDGUIWIDGET_FN
int GWENHYWFAR_CB(* GWEN_WIDGET_ADDCHILDGUIWIDGET_FN)(GWEN_WIDGET *w, GWEN_WIDGET *wChild)
Definition widget_be.h:121
GWEN_WIDGET_GETINTPROPERTY_FN
int GWENHYWFAR_CB(* GWEN_WIDGET_GETINTPROPERTY_FN)(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int defaultValue)
Definition widget_be.h:105