|  |  |  | Libxfce4panel Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals | ||||
#include <libxfce4panel/libxfce4panel.h>
                    XfcePanelWindow;
void                (*XfcePanelWindowMoveFunc)          (GtkWidget *widget,
                                                         gpointer data,
                                                         gint *x,
                                                         gint *y);
void                (*XfcePanelWindowResizeFunc)        (GtkWidget *widget,
                                                         gpointer data,
                                                         GtkAllocation *previous,
                                                         GtkAllocation *allocation,
                                                         gint *x,
                                                         gint *y);
GtkWidget *         xfce_panel_window_new               (void);
void                xfce_panel_window_set_orientation   (XfcePanelWindow *window,
                                                         GtkOrientation orientation);
GtkOrientation      xfce_panel_window_get_orientation   (XfcePanelWindow *window);
void                xfce_panel_window_set_handle_style  (XfcePanelWindow *window,
                                                         XfceHandleStyle handle_style);
XfceHandleStyle     xfce_panel_window_get_handle_style  (XfcePanelWindow *window);
void                xfce_panel_window_set_show_border   (XfcePanelWindow *window,
                                                         gboolean top_border,
                                                         gboolean bottom_border,
                                                         gboolean left_border,
                                                         gboolean right_border);
void                xfce_panel_window_get_show_border   (XfcePanelWindow *window,
                                                         gboolean *top_border,
                                                         gboolean *bottom_border,
                                                         gboolean *left_border,
                                                         gboolean *right_border);
void                xfce_panel_window_set_resize_function
                                                        (XfcePanelWindow *window,
                                                         XfcePanelWindowResizeFunc function,
                                                         gpointer data);
void                xfce_panel_window_set_move_function (XfcePanelWindow *window,
                                                         XfcePanelWindowMoveFunc function,
                                                         gpointer data);
void                xfce_panel_window_set_movable       (XfcePanelWindow *window,
                                                         gboolean movable);
gboolean            xfce_panel_window_get_movable       (XfcePanelWindow *window);
  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBin
                                 +----GtkWindow
                                       +----XfcePanelWindow
"handle-style" XfceHandleStyle : Read / Write "orientation" GtkOrientation : Read / Write
"move" : Run Last "move-end" : Run Last "move-start" : Run Last "orientation-changed" : Run First
A widget derived from GtkWindow that implements a toplevel window for panels. It optionally can have one or two move handles.
typedef struct _XfcePanelWindow XfcePanelWindow;
The XfcePanelWindow struct contains private data only, and should be accessed using the functions below.
void (*XfcePanelWindowMoveFunc) (GtkWidget *widget,gpointer data,gint *x,gint *y);
Callback function that can be used to restrict manual movement of the
XfcePanelWindow. The function should modify x and y to set the new
position.
| 
 | The XfcePanelWindow widget | 
| 
 | user data supplied with the function | 
| 
 | location of the new x coordinate | 
| 
 | location of the new y coordinate | 
void (*XfcePanelWindowResizeFunc) (GtkWidget *widget,gpointer data,GtkAllocation *previous,GtkAllocation *allocation,gint *x,gint *y);
Callback function that can be used to adjust the position of the
XfcePanelWindow when its size changes. The function should modify x
and y to set the new position.
| 
 | The XfcePanelWindow widget | 
| 
 | user data supplied with the function | 
| 
 | Old GtkAllocation | 
| 
 | New GtkAllocation | 
| 
 | location of the new x coordinate | 
| 
 | location of the new y coordinate | 
GtkWidget *         xfce_panel_window_new               (void);
Create new panel window.
| Returns : | New GtkWidget | 
void xfce_panel_window_set_orientation (XfcePanelWindow *window,GtkOrientation orientation);
Set orientation for panel window.
| 
 | XfcePanelWindow | 
| 
 | new GtkOrientation | 
GtkOrientation      xfce_panel_window_get_orientation   (XfcePanelWindow *window);
Get orientation of panel window.
| 
 | XfcePanelWindow | 
| Returns : | GtkOrientation of window | 
void xfce_panel_window_set_handle_style (XfcePanelWindow *window,XfceHandleStyle handle_style);
Set handle style for panel window.
| 
 | XfcePanelWindow | 
| 
 | new XfceHandleStyle | 
XfceHandleStyle     xfce_panel_window_get_handle_style  (XfcePanelWindow *window);
Get handle style of panel window.
| 
 | XfcePanelWindow | 
| Returns : | XfceHandleStyle of window | 
void xfce_panel_window_set_show_border (XfcePanelWindow *window,gboolean top_border,gboolean bottom_border,gboolean left_border,gboolean right_border);
Set border visibility for the panel window.
| 
 | XfcePanelWindow | 
| 
 | show top border | 
| 
 | show bottom border | 
| 
 | show left border | 
| 
 | show right border | 
void xfce_panel_window_get_show_border (XfcePanelWindow *window,gboolean *top_border,gboolean *bottom_border,gboolean *left_border,gboolean *right_border);
Get visibility of panel window borders.
| 
 | XfcePanelWindow | 
| 
 | location for top border or NULL | 
| 
 | location for bottom border or NULL | 
| 
 | location for left border or NULL | 
| 
 | location for right border or NULL | 
void xfce_panel_window_set_resize_function (XfcePanelWindow *window,XfcePanelWindowResizeFunc function,gpointer data);
Set a function to modify resize behaviour of the panel window.
| 
 | XfcePanelWindow | 
| 
 | XfcePanelWindowResizeFunc | 
| 
 | user data | 
void xfce_panel_window_set_move_function (XfcePanelWindow *window,XfcePanelWindowMoveFunc function,gpointer data);
Set a function to modify move behaviour of the panel window.
| 
 | XfcePanelWindow | 
| 
 | XfcePanelWindowMoveFunc | 
| 
 | user data | 
void xfce_panel_window_set_movable (XfcePanelWindow *window,gboolean movable);
Set if the panel window can be moved by the user.
| 
 | XfcePanelWindow | 
| 
 | TRUEorFALSE. | 
gboolean            xfce_panel_window_get_movable       (XfcePanelWindow *window);
Check if the panel window can be moved by the user.
By default this is TRUE.
| 
 | XfcePanelWindow | 
| Returns : | TRUEif the user is allowed to movewindow,FALSEif not. | 
"handle-style" property"handle-style" XfceHandleStyle : Read / Write
The XfceHandleStyle to use when drawing handles.
Default value: XFCE_HANDLE_STYLE_BOTH
"move" signalvoid user_function (XfcePanelWindow *window, gint x, gint y, gpointer user_data) : Run Last
Emitted when the user moves the XfcePanelWindow to a new position with
coordinates (x, y).
| 
 | the XfcePanelWindow which emitted the signal | 
| 
 | x coordinate of the new position | 
| 
 | y coordinate of the new position | 
| 
 | user data set when the signal handler was connected. | 
"move-end" signalvoid user_function (XfcePanelWindow *window, gint x, gint y, gpointer user_data) : Run Last
Emitted when the user stops dragging the XfcePanelWindow. The latest
position has coordinates (x, y).
| 
 | the XfcePanelWindow which emitted the signal | 
| 
 | x coordinate of the new positions | 
| 
 | y coordinate of the new position | 
| 
 | user data set when the signal handler was connected. | 
"move-start" signalvoid user_function (XfcePanelWindow *window, gpointer user_data) : Run Last
Emitted when the user starts to drag the XfcePanelWindow.
| 
 | the XfcePanelWindow which emitted the signal | 
| 
 | user data set when the signal handler was connected. | 
"orientation-changed" signalvoid user_function (XfcePanelWindow *window, GtkOrientation orientation, gpointer user_data) : Run First
Emitted when the orientation of the XfcePanelWindow changes.
| 
 | the object which emitted the signal | 
| 
 | the new GtkOrientation of the window | 
| 
 | user data set when the signal handler was connected. |