GladeFixed

GladeFixed — An object wrapper for free-form placement container widgets

Synopsis


#include <glade.h>


            GladeFixed;
#define     GLADE_FIXED_CURSOR_BOTTOM       (type)
#define     GLADE_FIXED_CURSOR_RIGHT        (type)
#define     GLADE_FIXED_CURSOR_TOP          (type)
#define     GLADE_FIXED_CURSOR_LEFT         (type)

Object Hierarchy


  GObject
   +----GladeWidget
         +----GladeFixed

Properties


  "can-resize"           gboolean              : Read / Write / Construct
  "height-prop"          gchararray            : Read / Write / Construct
  "width-prop"           gchararray            : Read / Write / Construct
  "x-prop"               gchararray            : Read / Write / Construct
  "y-prop"               gchararray            : Read / Write / Construct

Signals


"configure-begin"
            gboolean    user_function      (GladeFixed *gladewidget,
                                            GObject    *arg1,
                                            gpointer    user_data)        : Run last
"configure-child"
            gboolean    user_function      (GladeFixed *gladewidget,
                                            GObject    *arg1,
                                            gpointer    arg2,
                                            gpointer    user_data)        : Run last
"configure-end"
            gboolean    user_function      (GladeFixed *gladewidget,
                                            GObject    *arg1,
                                            gpointer    user_data)        : Run last

Description

GladeFixed is a specialized GladeWidget to handle free-form child placements in containers that support this, it is designed with properties and signals with flexable integration in mind.

If you set the x-prop/y-prop/width-prop/height-prop properties and leave the signals alone, GladeFixed will assume you are like a GtkFixed/GtkLayout widget and will use pixel counts as units for these properties.

If you handle the configure-child/configure-end[/configure-begin] signals and dont let them propagate to the GladeFixed, then the x-prop/y-prop/width-prop/height-prop properties will be completely ignored and it is up to the implementor to play with whatever child packing properties are available to make a closest match for the values passed to configure-child via the GdkRectangle.

Details

GladeFixed

typedef struct _GladeFixed GladeFixed;


GLADE_FIXED_CURSOR_BOTTOM()

#define     GLADE_FIXED_CURSOR_BOTTOM(type)

type :

GLADE_FIXED_CURSOR_RIGHT()

#define     GLADE_FIXED_CURSOR_RIGHT(type)

type :

GLADE_FIXED_CURSOR_TOP()

#define     GLADE_FIXED_CURSOR_TOP(type)

type :

GLADE_FIXED_CURSOR_LEFT()

#define     GLADE_FIXED_CURSOR_LEFT(type)

type :

Property Details

The "can-resize" property

  "can-resize"           gboolean              : Read / Write / Construct

Whether this container supports resizes of child widgets.

Default value: TRUE


The "height-prop" property

  "height-prop"          gchararray            : Read / Write / Construct

The property used to set the height of a child object.

Default value: "height-request"


The "width-prop" property

  "width-prop"           gchararray            : Read / Write / Construct

The property used to set the width of a child object.

Default value: "width-request"


The "x-prop" property

  "x-prop"               gchararray            : Read / Write / Construct

The property used to set the X position of a child object.

Default value: "x"


The "y-prop" property

  "y-prop"               gchararray            : Read / Write / Construct

The property used to set the Y position of a child object.

Default value: "y"

Signal Details

The "configure-begin" signal

gboolean    user_function                  (GladeFixed *gladewidget,
                                            GObject    *arg1,
                                            gpointer    user_data)        : Run last

Signals the beginning of a Drag/Resize

gladewidget : the GladeFixed which received the signal.
arg1 : the child GladeWidget
user_data : user data set when the signal handler was connected.
Returns : TRUE means you have handled the event and cancels the default handler from being triggered.

The "configure-child" signal

gboolean    user_function                  (GladeFixed *gladewidget,
                                            GObject    *arg1,
                                            gpointer    arg2,
                                            gpointer    user_data)        : Run last

Delegates the Drag/Resize job.

gladewidget : the GladeFixed which received the signal.
arg1 : the child GladeWidget
arg2 : a pointer to a GdkRectange describing the new size.
user_data : user data set when the signal handler was connected.
Returns : TRUE means you have handled the event and cancels the default handler from being triggered.

The "configure-end" signal

gboolean    user_function                  (GladeFixed *gladewidget,
                                            GObject    *arg1,
                                            gpointer    user_data)        : Run last

Signals the end of a Drag/Resize

gladewidget : the GladeFixed which received the signal.
arg1 : the child GladeWidget
user_data : user data set when the signal handler was connected.
Returns : TRUE means you have handled the event and cancels the default handler from being triggered.