File indexing completed on 2024-07-21 12:12:49

0001 /* This file is part of the KDE libraries
0002     Copyright (C) 2005, 2006 Ian Reinhart Geiser <geiseri@kde.org>
0003     Copyright (C) 2005, 2006 Matt Broadstone <mbroadst@gmail.com>
0004     Copyright (C) 2005, 2006 Richard J. Moore <rich@kde.org>
0005     Copyright (C) 2005, 2006 Erik L. Bunce <kde@bunce.us>
0006 
0007     This library is free software; you can redistribute it and/or
0008     modify it under the terms of the GNU Library General Public
0009     License as published by the Free Software Foundation; either
0010     version 2 of the License, or (at your option) any later version.
0011 
0012     This library is distributed in the hope that it will be useful,
0013     but WITHOUT ANY WARRANTY; without even the implied warranty of
0014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0015     Library General Public License for more details.
0016 
0017     You should have received a copy of the GNU Library General Public License
0018     along with this library; see the file COPYING.LIB.  If not, write to
0019     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0020     Boston, MA 02110-1301, USA.
0021 */
0022 #ifndef SIZE_H
0023 #define SIZE_H
0024 
0025 #include <kjsembed/variant_binding.h>
0026 #include <kjsembed/static_binding.h>
0027 
0028 class QSize;
0029 
0030 namespace KJSEmbed
0031 {
0032 /** @internal Implements the binding for QSize. */
0033 class SizeBinding : public VariantBinding
0034 {
0035 public:
0036     SizeBinding(KJS::ExecState *exec, const QSize &value);
0037     const KJS::ClassInfo *classInfo() const override
0038     {
0039         return &info;
0040     }
0041     static const KJS::ClassInfo info;
0042 };
0043 
0044 KJS_BINDING(Size)
0045 
0046 }
0047 #endif
0048