mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
Initial revision
git-svn-id: svn://localhost/trunk/ardour2@4 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
commit
d09f6b3016
1253 changed files with 292928 additions and 0 deletions
76
libs/glibmm2/glibmm/class.h
Normal file
76
libs/glibmm2/glibmm/class.h
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
// -*- c++ -*-
|
||||
#ifndef _GLIBMM_CLASS_H
|
||||
#define _GLIBMM_CLASS_H
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright 2001 Free Software Foundation
|
||||
* Copyright (C) 1998-2002 The gtkmm Development Team
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
class Class
|
||||
{
|
||||
public:
|
||||
/* No constructor/destructor:
|
||||
* Glib::Class objects are used only as static data, which would cause
|
||||
* lots of ugly global constructor invocations. These are avoidable,
|
||||
* because the C/C++ standard explicitly specifies that all _static_ data
|
||||
* is zero-initialized at program start.
|
||||
*/
|
||||
//Class();
|
||||
//~Class();
|
||||
|
||||
//static void class_init_function(BaseClassType *p);
|
||||
//static void object_init_function(BaseObjectType *o);
|
||||
//GType get_type() = 0; //Creates the GType when this is first called.
|
||||
|
||||
// Hook for translating API
|
||||
//static Glib::Object* wrap_new(GObject*);
|
||||
|
||||
inline GType get_type() const;
|
||||
GType clone_custom_type(const char* custom_type_name) const;
|
||||
|
||||
protected:
|
||||
GType gtype_;
|
||||
GClassInitFunc class_init_func_;
|
||||
|
||||
void register_derived_type(GType base_type);
|
||||
|
||||
private:
|
||||
static void custom_class_init_function(void* g_class, void* class_data);
|
||||
};
|
||||
|
||||
inline
|
||||
GType Class::get_type() const
|
||||
{
|
||||
return gtype_;
|
||||
}
|
||||
|
||||
} // namespace Glib
|
||||
|
||||
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
|
||||
|
||||
#endif /* _GLIBMM_CLASS_H */
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue