~ubuntu-branches/ubuntu/karmic/kst/karmic

« back to all changes in this revision

Viewing changes to kst/kst/extensions/js/bind_ellipse.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2006-06-30 19:11:30 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060630191130-acumuar75bz4puty
Tags: 1.2.1-1ubuntu1
Merge from debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                               bind_ellipse.h
 
3
                             --------------
 
4
    begin                : Jun 14 2005
 
5
    copyright            : (C) 2005 The University of Toronto
 
6
    email                :
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
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.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
 
 
18
#ifndef BIND_ELLIPSE_H
 
19
#define BIND_ELLIPSE_H
 
20
 
 
21
#include "bind_viewobject.h"
 
22
 
 
23
#include <kstviewellipse.h>
 
24
 
 
25
#include <kjs/interpreter.h>
 
26
#include <kjs/object.h>
 
27
 
 
28
/* @class Ellipse
 
29
   @inherits ViewObject
 
30
   @collection ViewObjectCollection
 
31
   @description A customizable ellipse graphic.
 
32
*/
 
33
class KstBindEllipse : public KstBindViewObject {
 
34
  public:
 
35
    /* @constructor
 
36
       @arg ViewObject parent The parent to place the new ellipse in.  May also
 
37
                              be a string containing the name of an existing
 
38
                              ViewObject.
 
39
       @description Creates a new ellipse and places it in the ViewObject <i>parent</i>.
 
40
    */
 
41
    /* @constructor
 
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>.
 
45
    */
 
46
    KstBindEllipse(KJS::ExecState *exec, KstViewEllipsePtr d, const char *name = 0L);
 
47
    KstBindEllipse(KJS::ExecState *exec, KJS::Object *globalObject = 0L, const char *name = 0L);
 
48
    ~KstBindEllipse();
 
49
 
 
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;
 
56
 
 
57
    int methodCount() const;
 
58
    int propertyCount() const;
 
59
 
 
60
    /* @property number borderWidth
 
61
       @description The width of the border of the ellipse.
 
62
    */
 
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.
 
67
    */
 
68
    void setBorderColor(KJS::ExecState *exec, const KJS::Value& value);
 
69
    KJS::Value borderColor(KJS::ExecState *exec) const;
 
70
 
 
71
  protected:
 
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);
 
75
};
 
76
 
 
77
 
 
78
#endif
 
79
 
 
80
// vim: ts=2 sw=2 et