Back to index

lightning-sunbird  0.9+nobinonly
mozcontainer.h
Go to the documentation of this file.
00001 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
00002 /* vim:expandtab:shiftwidth=4:tabstop=4:
00003  */
00004 /* ***** BEGIN LICENSE BLOCK *****
00005  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00006  *
00007  * The contents of this file are subject to the Mozilla Public License Version
00008  * 1.1 (the "License"); you may not use this file except in compliance with
00009  * the License. You may obtain a copy of the License at
00010  * http://www.mozilla.org/MPL/
00011  *
00012  * Software distributed under the License is distributed on an "AS IS" basis,
00013  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00014  * for the specific language governing rights and limitations under the
00015  * License.
00016  *
00017  * The Original Code is mozilla.org code.
00018  *
00019  * The Initial Developer of the Original Code is Christopher Blizzard
00020  * <blizzard@mozilla.org>.  Portions created by the Initial Developer
00021  * are Copyright (C) 2001 the Initial Developer. All Rights Reserved.
00022  *
00023  * Contributor(s):
00024  *
00025  * Alternatively, the contents of this file may be used under the terms of
00026  * either the GNU General Public License Version 2 or later (the "GPL"), or
00027  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00028  * in which case the provisions of the GPL or the LGPL are applicable instead
00029  * of those above. If you wish to allow use of your version of this file only
00030  * under the terms of either the GPL or the LGPL, and not to allow others to
00031  * use your version of this file under the terms of the MPL, indicate your
00032  * decision by deleting the provisions above and replace them with the notice
00033  * and other provisions required by the GPL or the LGPL. If you do not delete
00034  * the provisions above, a recipient may use your version of this file under
00035  * the terms of any one of the MPL, the GPL or the LGPL.
00036  *
00037  * ***** END LICENSE BLOCK ***** */
00038 
00039 #ifndef __MOZ_CONTAINER_H__
00040 #define __MOZ_CONTAINER_H__
00041 
00042 #include <gtk/gtkcontainer.h>
00043 
00044 #ifdef __cplusplus
00045 extern "C" {
00046 #endif /* __cplusplus */
00047 
00048 #define MOZ_CONTAINER_TYPE            (moz_container_get_type())
00049 #define MOZ_CONTAINER(obj)            (GTK_CHECK_CAST ((obj), MOZ_CONTAINER_TYPE, MozContainer))
00050 #define MOZ_CONTAINER_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), MOZ_CONTAINER_TYPE, MozContainerClass))
00051 #define IS_MOZ_CONTAINER(obj)         (GTK_CHECK_TYPE ((obj), MOZ_CONTAINER_TYPE))
00052 #define IS_MOZ_CONTAINER_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), MOZ_CONTAINER_TYPE))
00053 #define MOZ_CONAINTER_GET_CLASS(obj)  (GTK_CHECK_GET_CLASS ((obj), MOZ_CONTAINER_TYPE, MozContainerClass))
00054 
00055 typedef struct _MozContainer      MozContainer;
00056 typedef struct _MozContainerClass MozContainerClass;
00057 
00058 struct _MozContainer
00059 {
00060     GtkContainer   container;
00061     GList         *children;
00062 };
00063 
00064 struct _MozContainerClass
00065 {
00066     GtkContainerClass parent_class;
00067 };
00068 
00069 GtkType    moz_container_get_type (void);
00070 GtkWidget *moz_container_new      (void);
00071 void       moz_container_put      (MozContainer *container,
00072                                    GtkWidget    *child_widget,
00073                                    gint          x,
00074                                    gint          y);
00075 void       moz_container_move          (MozContainer *container,
00076                                         GtkWidget    *child_widget,
00077                                         gint          x,
00078                                         gint          y,
00079                                         gint          width,
00080                                         gint          height);
00081 void       moz_container_scroll_update (MozContainer *container,
00082                                         GtkWidget    *child_widget,
00083                                         gint          x,
00084                                         gint          y);
00085 
00086 #ifdef __cplusplus
00087 }
00088 #endif /* __cplusplus */
00089 
00090 #endif /* __MOZ_CONTAINER_H__ */