1
#ifndef __KSCRIPT_EXT_QBOXLAYOUT_H__
2
#define __KSCRIPT_EXT_QBOXLAYOUT_H__
4
#include "kscript_class.h"
5
#include "kscript_ext_qwidget.h"
11
class KSClass_QBoxLayout : public KSClass_QObject
14
KSClass_QBoxLayout( KSModule*, const char* name = "QBoxLayout" );
17
virtual KSScriptObject* createObject( KSClass* c );
20
class KSObject_QBoxLayout : public KS_Qt_Object
23
KSObject_QBoxLayout( KSClass* );
25
bool ksQBoxLayout( KSContext& );
26
bool ksQBoxLayout_addWidget( KSContext& );
27
bool ksQBoxLayout_addLayout( KSContext& );
29
KSValue::Ptr member( KSContext& context, const QString& name );
30
bool setMember( KSContext& context, const QString& name, const KSValue::Ptr& v );
32
bool inherits( const char* name ) { return ( strcmp( name, "KSObject_QBoxLayout" ) == 0 || KS_Qt_Object::inherits( name ) ); }
34
static QBoxLayout* convert( KSValue* v ) { return (QBoxLayout*) ((KS_Qt_Object*)v->objectValue())->object(); }