Back to index

lightning-sunbird  0.9+nobinonly
mozdrawingarea.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_DRAWINGAREA_H__
00040 #define __MOZ_DRAWINGAREA_H__
00041 
00042 #include <gdk/gdkwindow.h>
00043 #include "mozcontainer.h"
00044 
00045 #ifdef __cplusplus
00046 extern "C" {
00047 #endif /* __cplusplus */
00048 
00049 #define MOZ_DRAWINGAREA_TYPE            (moz_drawingarea_get_type())
00050 #define MOZ_DRAWINGAREA(obj)            (GTK_CHECK_CAST((obj), MOZ_DRAWINGAREA_TYPE, MozDrawingarea))
00051 #define MOZ_DRAWINGAREA_CLASS(klass)    (GTK_CHECK_CLASS_CAST((klass), MOZ_DRAWINGAREA_TYPE, MozDrawingareaClass))
00052 #define IS_MOZ_DRAWINGAREA(obj)         (GTK_CHECK_TYPE((obj), MOZ_DRAWINGAREA_TYPE))
00053 #define IS_MOZ_DRAWINGAREA_CLASS(klass) (GTK_CHECK_CLASS_TYPE((klass), MOZ_DRAWINGAREA_TYPE))
00054 #define MOZ_DRAWINGAREA_GET_CLASS(obj)  (GTK_CHECK_GET_CLASS((obj), MOZ_DRAWINGAREA_TYPE, MozDrawingareaClass))
00055 
00056 typedef struct _MozDrawingarea      MozDrawingarea;
00057 typedef struct _MozDrawingareaClass MozDrawingareaClass;
00058 
00059 struct _MozDrawingarea
00060 {
00061     GObject         parent_instance;
00062     GdkWindow      *clip_window;
00063     GdkWindow      *inner_window;
00064     MozDrawingarea *parent;
00065 };
00066 
00067 struct _MozDrawingareaClass
00068 {
00069     GObjectClass parent_class;
00070 };
00071 
00072 GtkType         moz_drawingarea_get_type       (void);
00073 MozDrawingarea *moz_drawingarea_new            (MozDrawingarea *parent,
00074                                                 MozContainer *widget_parent);
00075 void            moz_drawingarea_reparent       (MozDrawingarea *drawingarea,
00076                                                 GdkWindow *aNewParent);
00077 void            moz_drawingarea_move           (MozDrawingarea *drawingarea,
00078                                                 gint x, gint y);
00079 void            moz_drawingarea_resize         (MozDrawingarea *drawingarea,
00080                                                 gint width, gint height);
00081 void            moz_drawingarea_move_resize    (MozDrawingarea *drawingarea,
00082                                                 gint x, gint y,
00083                                                 gint width, gint height);
00084 void            moz_drawingarea_set_visibility (MozDrawingarea *drawingarea,
00085                                                 gboolean visibility);
00086 void            moz_drawingarea_scroll         (MozDrawingarea *drawingarea,
00087                                                 gint x, gint y);
00088 
00089 #ifdef __cplusplus
00090 }
00091 #endif /* __cplusplus */
00092 
00093 #endif /* __MOZ_DRAWINGAREA_H__ */