AdgGtkLayout

AdgGtkLayout — A scrollable AdgGtkArea based widget

Synopsis

                    AdgGtkLayout;
GtkWidget *         adg_gtk_layout_new                  (void);
GtkWidget *         adg_gtk_layout_new_with_canvas      (AdgCanvas *canvas);
void                adg_gtk_layout_set_hadjustment      (AdgGtkLayout *layout,
                                                         GtkAdjustment *hadjustment);
GtkAdjustment *     adg_gtk_layout_get_hadjustment      (AdgGtkLayout *layout);
void                adg_gtk_layout_set_vadjustment      (AdgGtkLayout *layout,
                                                         GtkAdjustment *vadjustment);
GtkAdjustment *     adg_gtk_layout_get_vadjustment      (AdgGtkLayout *layout);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkDrawingArea
                           +----AdgGtkArea
                                 +----AdgGtkLayout

Implemented Interfaces

AdgGtkLayout implements AtkImplementorIface and GtkBuildable.

Properties

  "hadjustment"              GtkAdjustment*        : Read / Write / Construct
  "vadjustment"              GtkAdjustment*        : Read / Write / Construct

Signals

  "set-scroll-adjustments"                         : Run Last

Description

This is an AdgGtkArea derived object with scrolling capabilities. It means an AdgGtkLayout object can be added directly to a GtkScrolledWindow container without the need for an intermediate GtkViewport container.

Details

AdgGtkLayout

typedef struct _AdgGtkLayout AdgGtkLayout;

All fields are private and should not be used directly. Use its public methods instead.


adg_gtk_layout_new ()

GtkWidget *         adg_gtk_layout_new                  (void);

Creates a new empty AdgGtkLayout. The widget is useful only after an AdgCanvas has been added either using the "canvas" property or with adg_gtk_layout_set_canvas().

Returns :

the newly created widget

adg_gtk_layout_new_with_canvas ()

GtkWidget *         adg_gtk_layout_new_with_canvas      (AdgCanvas *canvas);

Creates a new AdgGtkLayout and sets the "canvas" property to canvas.

canvas :

the AdgCanvas shown by this widget

Returns :

the newly created widget

adg_gtk_layout_set_hadjustment ()

void                adg_gtk_layout_set_hadjustment      (AdgGtkLayout *layout,
                                                         GtkAdjustment *hadjustment);

Sets the new horizontal adjustment for layout to hadjustment. The old adjustment, if present, is unreferenced.

This is basically the same as manually setting the "hadjustment" property with g_object_set().

layout :

an AdgGtkLayout

hadjustment :

the new adjustment

adg_gtk_layout_get_hadjustment ()

GtkAdjustment *     adg_gtk_layout_get_hadjustment      (AdgGtkLayout *layout);

Retrieves the current horizontal adjustment of layout.

layout :

an AdgGtkLayout

adg_gtk_layout_set_vadjustment ()

void                adg_gtk_layout_set_vadjustment      (AdgGtkLayout *layout,
                                                         GtkAdjustment *vadjustment);

Sets the new vertical adjustment for layout to vadjustment. The old adjustment, if present, is unreferenced.

This is basically the same as manually setting the "vadjustment" property with g_object_set().

layout :

an AdgGtkLayout

vadjustment :

the new adjustment

adg_gtk_layout_get_vadjustment ()

GtkAdjustment *     adg_gtk_layout_get_vadjustment      (AdgGtkLayout *layout);

Retrieves the current vertical adjustment of layout.

layout :

an AdgGtkLayout

Property Details

The "hadjustment" property

  "hadjustment"              GtkAdjustment*        : Read / Write / Construct

The GtkAdjustment that determines the values of the horizontal position for this viewport.


The "vadjustment" property

  "vadjustment"              GtkAdjustment*        : Read / Write / Construct

The GtkAdjustment that determines the values of the vertical position for this viewport.

Signal Details

The "set-scroll-adjustments" signal

void                user_function                      (AdgGtkLayout  *layout,
                                                        GtkAdjustment *old_canvas,
                                                        GtkAdjustment *arg2,
                                                        gpointer       user_data)       : Run Last

Emitted when the AdgGtkLayout scroll adjustments have been set.

layout :

an AdgGtkLayout

old_canvas :

the old AdgCanvas object

user_data :

user data set when the signal handler was connected.
AdgGtkLayout was last modified by gtk-doc on Sun 20 Mar 2011 09:36:51 PM CET
Hosted by Get Automatic Drawing Generation at SourceForge.net. Fast, secure and Free Open Source software downloads
Search on this domain