Cairo-Dock
3.4.0
|
Data Structures | |
struct | _GldiContainer |
Definition of a Container, whom derive Dock, Desklet, Dialog and FlyingContainer. More... | |
struct | _GldiContainerManagerBackend |
Definition of the Container backend. It defines some operations that should be, but are not, provided by GTK. More... | |
Macros | |
#define | CAIRO_CONTAINER(p) |
Get the Container part of a pointer. | |
#define | CAIRO_DOCK_IS_CONTAINER(obj) |
#define | gldi_container_enable_drop(pContainer, pCallBack, data) |
Functions | |
void | gldi_container_reserve_space (GldiContainer *pContainer, int left, int right, int top, int bottom, int left_start_y, int left_end_y, int right_start_y, int right_end_y, int top_start_x, int top_end_x, int bottom_start_x, int bottom_end_x) |
int | gldi_container_get_current_desktop_index (GldiContainer *pContainer) |
void | gldi_container_move (GldiContainer *pContainer, int iNumDesktop, int iAbsolutePositionX, int iAbsolutePositionY) |
gboolean | gldi_container_is_active (GldiContainer *pContainer) |
void | gldi_container_present (GldiContainer *pContainer) |
void | cairo_dock_redraw_container (GldiContainer *pContainer) |
void | cairo_dock_redraw_container_area (GldiContainer *pContainer, GdkRectangle *pArea) |
void | cairo_dock_redraw_icon (Icon *icon) |
void | gldi_container_notify_drop_data (GldiContainer *pContainer, gchar *cReceivedData, Icon *pPointedIcon, double fOrder) |
GtkWidget * | gldi_container_build_menu (GldiContainer *pContainer, Icon *icon) |
This class defines the Containers, that are classic or hardware accelerated animated windows, and exposes common functions, such as redrawing a part of a container or popping a menu on a container.
A Container is a rectangular on-screen located surface, has the notion of orientation, can hold external datas, monitors the mouse position, and has its own animation loop.
Docks, Desklets, Dialogs, and Flying-containers all derive from Containers.
#define CAIRO_DOCK_IS_CONTAINER | ( | obj | ) |
Say if an object is a Container.
obj | the object. |
#define gldi_container_enable_drop | ( | pContainer, | |
pCallBack, | |||
data | |||
) |
Enable a Container to accept drag-and-drops.
pContainer | a container. |
pCallBack | the function that will be called when some data is received. |
data | data passed to the callback. |
signals
void gldi_container_reserve_space | ( | GldiContainer * | pContainer, |
int | left, | ||
int | right, | ||
int | top, | ||
int | bottom, | ||
int | left_start_y, | ||
int | left_end_y, | ||
int | right_start_y, | ||
int | right_end_y, | ||
int | top_start_x, | ||
int | top_end_x, | ||
int | bottom_start_x, | ||
int | bottom_end_x | ||
) |
Reserve a space on the screen for a Container; other windows won't overlap this space when maximised.
pContainer | the container |
left | |
right | |
top | |
bottom | |
left_start_y | |
left_end_y | |
right_start_y | |
right_end_y | |
top_start_x | |
top_end_x | |
bottom_start_x | |
bottom_end_x |
int gldi_container_get_current_desktop_index | ( | GldiContainer * | pContainer | ) |
Get the desktop and viewports a Container is placed on.
pContainer | the container |
void gldi_container_move | ( | GldiContainer * | pContainer, |
int | iNumDesktop, | ||
int | iAbsolutePositionX, | ||
int | iAbsolutePositionY | ||
) |
Move a Container to a given desktop, viewport, and position (similar to gtk_window_move except that the position is defined on the whole desktop (made of all viewports); it's only useful if the Container is sticky).
pContainer | the container |
iNumDesktop | desktop number |
iAbsolutePositionX | horizontal position on the virtual screen |
iAbsolutePositionY | vertical position on the virtual screen |
gboolean gldi_container_is_active | ( | GldiContainer * | pContainer | ) |
Tell if a Container is the current active window (similar to gtk_window_is_active but actually works).
pContainer | the container |
void gldi_container_present | ( | GldiContainer * | pContainer | ) |
Show a Container and make it take the focus (similar to gtk_window_present, but bypasses the WM focus steal prevention).
pContainer | the container |
void cairo_dock_redraw_container | ( | GldiContainer * | pContainer | ) |
Clear and trigger the redraw of a Container.
pContainer | the Container to redraw. |
void cairo_dock_redraw_container_area | ( | GldiContainer * | pContainer, |
GdkRectangle * | pArea | ||
) |
Clear and trigger the redraw of a part of a container.
pContainer | the Container to redraw. |
pArea | the zone to redraw. |
void cairo_dock_redraw_icon | ( | Icon * | icon | ) |
Clear and trigger the redraw of an Icon. The drawing is not done immediately, but when the expose event is received.
icon | l'icone a retracer. |
void gldi_container_notify_drop_data | ( | GldiContainer * | pContainer, |
gchar * | cReceivedData, | ||
Icon * | pPointedIcon, | ||
double | fOrder | ||
) |
Notify everybody that a drop has just occured.
cReceivedData | the dropped data. |
pPointedIcon | the icon which was pointed when the drop occured. |
fOrder | the order of the icon if the drop occured on it, or LAST_ORDER if the drop occured between 2 icons. |
pContainer | the container of the icon |
GtkWidget* gldi_container_build_menu | ( | GldiContainer * | pContainer, |
Icon * | icon | ||
) |
Build the main menu of a Container.
icon | the icon that was left-clicked, or NULL if none. |
pContainer | the container that was left-clicked. |