Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Functions
mozdrawingarea.h File Reference
#include <gdk/gdkwindow.h>
#include "mozcontainer.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _MozDrawingarea
struct  _MozDrawingareaClass

Defines

#define MOZ_DRAWINGAREA_TYPE   (moz_drawingarea_get_type())
#define MOZ_DRAWINGAREA(obj)   (GTK_CHECK_CAST((obj), MOZ_DRAWINGAREA_TYPE, MozDrawingarea))
#define MOZ_DRAWINGAREA_CLASS(klass)   (GTK_CHECK_CLASS_CAST((klass), MOZ_DRAWINGAREA_TYPE, MozDrawingareaClass))
#define IS_MOZ_DRAWINGAREA(obj)   (GTK_CHECK_TYPE((obj), MOZ_DRAWINGAREA_TYPE))
#define IS_MOZ_DRAWINGAREA_CLASS(klass)   (GTK_CHECK_CLASS_TYPE((klass), MOZ_DRAWINGAREA_TYPE))
#define MOZ_DRAWINGAREA_GET_CLASS(obj)   (GTK_CHECK_GET_CLASS((obj), MOZ_DRAWINGAREA_TYPE, MozDrawingareaClass))

Typedefs

typedef struct _MozDrawingarea
typedef struct _MozDrawingareaClass

Functions

GtkType moz_drawingarea_get_type (void)
MozDrawingarea * moz_drawingarea_new (MozDrawingarea *parent, MozContainer *widget_parent)
void moz_drawingarea_reparent (MozDrawingarea *drawingarea, GdkWindow *aNewParent)
void moz_drawingarea_move (MozDrawingarea *drawingarea, gint x, gint y)
void moz_drawingarea_resize (MozDrawingarea *drawingarea, gint width, gint height)
void moz_drawingarea_move_resize (MozDrawingarea *drawingarea, gint x, gint y, gint width, gint height)
void moz_drawingarea_set_visibility (MozDrawingarea *drawingarea, gboolean visibility)
void moz_drawingarea_scroll (MozDrawingarea *drawingarea, gint x, gint y)

Class Documentation

struct _MozDrawingarea

Definition at line 59 of file mozdrawingarea.h.

Class Members
GdkWindow * clip_window
GdkWindow * inner_window
MozDrawingarea * parent
GObject parent_instance
struct _MozDrawingareaClass

Definition at line 67 of file mozdrawingarea.h.

Class Members
GObjectClass parent_class

Define Documentation

#define IS_MOZ_DRAWINGAREA (   obj)    (GTK_CHECK_TYPE((obj), MOZ_DRAWINGAREA_TYPE))

Definition at line 52 of file mozdrawingarea.h.

#define IS_MOZ_DRAWINGAREA_CLASS (   klass)    (GTK_CHECK_CLASS_TYPE((klass), MOZ_DRAWINGAREA_TYPE))

Definition at line 53 of file mozdrawingarea.h.

#define MOZ_DRAWINGAREA (   obj)    (GTK_CHECK_CAST((obj), MOZ_DRAWINGAREA_TYPE, MozDrawingarea))

Definition at line 50 of file mozdrawingarea.h.

#define MOZ_DRAWINGAREA_CLASS (   klass)    (GTK_CHECK_CLASS_CAST((klass), MOZ_DRAWINGAREA_TYPE, MozDrawingareaClass))

Definition at line 51 of file mozdrawingarea.h.

#define MOZ_DRAWINGAREA_GET_CLASS (   obj)    (GTK_CHECK_GET_CLASS((obj), MOZ_DRAWINGAREA_TYPE, MozDrawingareaClass))

Definition at line 54 of file mozdrawingarea.h.

Definition at line 49 of file mozdrawingarea.h.


Typedef Documentation

typedef struct _MozDrawingarea

Definition at line 56 of file mozdrawingarea.h.

typedef struct _MozDrawingareaClass

Definition at line 57 of file mozdrawingarea.h.


Function Documentation

Definition at line 55 of file mozdrawingarea.c.

{
    static GtkType moz_drawingarea_type = 0;

   if (!moz_drawingarea_type) {
       static GTypeInfo moz_drawingarea_info = {
           sizeof(MozDrawingareaClass), /* class size */
           NULL, /* base_init */
           NULL, /* base_finalize */
           (GClassInitFunc) moz_drawingarea_class_init, /* class_init */
           NULL, /* class_destroy */
           NULL, /* class_data */
           sizeof(MozDrawingarea), /* instance_size */
           0, /* n_preallocs */
           (GInstanceInitFunc) moz_drawingarea_init, /* instance_init */
           NULL, /* value_table */
       };
       moz_drawingarea_type =
           g_type_register_static (G_TYPE_OBJECT,
                                   "MozDrawingarea",
                                   &moz_drawingarea_info, 0);
   }

   return moz_drawingarea_type;
}

Here is the call graph for this function:

void moz_drawingarea_move ( MozDrawingarea *  drawingarea,
gint  x,
gint  y 
)

Definition at line 187 of file mozdrawingarea.c.

{
    gdk_window_move(drawingarea->clip_window, x, y);
}

Here is the caller graph for this function:

void moz_drawingarea_move_resize ( MozDrawingarea *  drawingarea,
gint  x,
gint  y,
gint  width,
gint  height 
)

Definition at line 202 of file mozdrawingarea.c.

{
    gdk_window_resize(drawingarea->inner_window, width, height);
    gdk_window_move_resize(drawingarea->clip_window, x, y, width, height);
}

Here is the caller graph for this function:

MozDrawingarea* moz_drawingarea_new ( MozDrawingarea *  parent,
MozContainer *  widget_parent 
)

Definition at line 82 of file mozdrawingarea.c.

{
    MozDrawingarea *drawingarea;

    drawingarea = g_object_new(MOZ_DRAWINGAREA_TYPE, NULL);

    drawingarea->parent = parent;

    if (!parent)
        moz_drawingarea_create_windows(drawingarea,
                                       GTK_WIDGET(widget_parent)->window,
                                       GTK_WIDGET(widget_parent));
    else
        moz_drawingarea_create_windows(drawingarea,
                                       parent->inner_window, 
                                       GTK_WIDGET(widget_parent));

    return drawingarea;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void moz_drawingarea_reparent ( MozDrawingarea *  drawingarea,
GdkWindow *  aNewParent 
)

Definition at line 119 of file mozdrawingarea.c.

{
    gdk_window_reparent(drawingarea->clip_window,
                        aNewParent, 0, 0);
}
void moz_drawingarea_resize ( MozDrawingarea *  drawingarea,
gint  width,
gint  height 
)

Definition at line 194 of file mozdrawingarea.c.

{
    gdk_window_resize(drawingarea->clip_window, width, height);
    gdk_window_resize(drawingarea->inner_window, width, height);
}

Here is the caller graph for this function:

void moz_drawingarea_scroll ( MozDrawingarea *  drawingarea,
gint  x,
gint  y 
)

Definition at line 224 of file mozdrawingarea.c.

{
    gdk_window_scroll(drawingarea->inner_window, x, y);
}
void moz_drawingarea_set_visibility ( MozDrawingarea *  drawingarea,
gboolean  visibility 
)

Definition at line 210 of file mozdrawingarea.c.

{
    if (visibility) {
        gdk_window_show_unraised(drawingarea->inner_window);
        gdk_window_show_unraised(drawingarea->clip_window);
    }
    else    {
        gdk_window_hide(drawingarea->clip_window);
        gdk_window_hide(drawingarea->inner_window);
    }
}

Here is the caller graph for this function: