Back to index

indicator-appmenu  12.10.0
window-menu-model.h
Go to the documentation of this file.
00001 /*
00002  * Copyright © 2012 Canonical Limited
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2 of the licence, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
00016  *
00017  * Author: Ted Gould <ted.gould@canonical.com>
00018  */
00019 
00020 #ifndef __WINDOW_MENU_MODEL_H__
00021 #define __WINDOW_MENU_MODEL_H__
00022 
00023 #include <glib.h>
00024 #include <glib-object.h>
00025 #include <libbamf/bamf-window.h>
00026 #include "window-menu.h"
00027 
00028 G_BEGIN_DECLS
00029 
00030 #define WINDOW_MENU_MODEL_TYPE            (window_menu_model_get_type ())
00031 #define WINDOW_MENU_MODEL(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), WINDOW_MENU_MODEL_TYPE, WindowMenuModel))
00032 #define WINDOW_MENU_MODEL_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), WINDOW_MENU_MODEL_TYPE, WindowMenuModelClass))
00033 #define IS_WINDOW_MENU_MODEL(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), WINDOW_MENU_MODEL_TYPE))
00034 #define IS_WINDOW_MENU_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), WINDOW_MENU_MODEL_TYPE))
00035 #define WINDOW_MENU_MODEL_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), WINDOW_MENU_MODEL_TYPE, WindowMenuModelClass))
00036 
00037 typedef struct _WindowMenuModel        WindowMenuModel;
00038 typedef struct _WindowMenuModelClass   WindowMenuModelClass;
00039 typedef struct _WindowMenuModelPrivate WindowMenuModelPrivate;
00040 
00041 struct _WindowMenuModelClass {
00042        WindowMenuClass parent_class;
00043 };
00044 
00045 struct _WindowMenuModel {
00046        WindowMenu parent;
00047 
00048        WindowMenuModelPrivate * priv;
00049 };
00050 
00051 GType window_menu_model_get_type (void);
00052 WindowMenuModel * window_menu_model_new (BamfApplication * app, BamfWindow * window);
00053 
00054 G_END_DECLS
00055 
00056 #endif