1
/***************************************************************************
5
copyright : (C) 2005 The University of Toronto
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
18
#ifndef BIND_ELLIPSE_H
19
#define BIND_ELLIPSE_H
21
#include "bind_viewobject.h"
23
#include <kstviewellipse.h>
25
#include <kjs/interpreter.h>
26
#include <kjs/object.h>
30
@collection ViewObjectCollection
31
@description A customizable ellipse graphic.
33
class KstBindEllipse : public KstBindViewObject {
36
@arg ViewObject parent The parent to place the new ellipse in. May also
37
be a string containing the name of an existing
39
@description Creates a new ellipse and places it in the ViewObject <i>parent</i>.
42
@arg Window window The window to place the new ellipse in. May also be a
43
string containing the name of an existing Window.
44
@description Creates a new ellipse and places it in the Window <i>window</i>.
46
KstBindEllipse(KJS::ExecState *exec, KstViewEllipsePtr d, const char *name = 0L);
47
KstBindEllipse(KJS::ExecState *exec, KJS::Object *globalObject = 0L, const char *name = 0L);
50
KJS::Object construct(KJS::ExecState *exec, const KJS::List& args);
51
KJS::Value call(KJS::ExecState *exec, KJS::Object& self, const KJS::List& args);
52
KJS::Value get(KJS::ExecState *exec, const KJS::Identifier& propertyName) const;
53
void put(KJS::ExecState *exec, const KJS::Identifier& propertyName, const KJS::Value& value, int attr = KJS::None);
54
KJS::ReferenceList propList(KJS::ExecState *exec, bool recursive = true);
55
bool hasProperty(KJS::ExecState *exec, const KJS::Identifier& propertyName) const;
57
int methodCount() const;
58
int propertyCount() const;
60
/* @property number borderWidth
61
@description The width of the border of the ellipse.
63
void setBorderWidth(KJS::ExecState *exec, const KJS::Value& value);
64
KJS::Value borderWidth(KJS::ExecState *exec) const;
65
/* @property string borderColor
66
@description The color of the border of the ellipse.
68
void setBorderColor(KJS::ExecState *exec, const KJS::Value& value);
69
KJS::Value borderColor(KJS::ExecState *exec) const;
72
KstBindEllipse(int id, const char *name = 0L);
73
void addBindings(KJS::ExecState *exec, KJS::Object& obj);
74
static KstBindViewObject *bindFactory(KJS::ExecState *exec, KstViewObjectPtr obj);