/usr/include/cairo-dock/gldit/cairo-dock-struct.h is in cairo-dock-dev 3.4.1-1.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 | /*
* This file is a part of the Cairo-Dock project
*
* Copyright : (C) see the 'copyright' file.
* E-mail : see the 'copyright' file.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __CAIRO_DOCK_STRUCT__
#define __CAIRO_DOCK_STRUCT__
#include <glib.h>
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#include <cairo.h>
/*
* We include rsvg stuff here, because it's such a mess that it's better to not
* duplicate that.
* We need to include glib.h before because it uses G_BEGIN_DECL without
* including glib first! (bug fixed with the version 2.36.2)
* Note: with this 2.36.2 version, rsvg-cairo.h and librsvg-features.h are
* included in rsvg.h and including these header files directly are now
* deprecated. But we need 'librsvg-features.h' to use LIBRSVG_CHECK_VERSION
* macro in order to know if we can include (or not) librsvg-cairo.h...
* Yeah, a bit strange :)
*/
#include <librsvg/rsvg.h>
#ifndef LIBRSVG_CHECK_VERSION
#include <librsvg/librsvg-features.h>
#endif
#if !LIBRSVG_CHECK_VERSION (2, 36, 2)
#include <librsvg/rsvg-cairo.h>
#endif
#include <glib/gi18n.h>
#include <GL/gl.h>
/*! \mainpage Cairo-Dock's API documentation.
* \ref intro_sec
*
* \ref install_sec
*
* \ref struct_sec
* - \ref objects
* - \ref managers
* - \ref containers
* - \ref icons
* - \ref dock
* - \ref desklet
* - \ref dialog
* - \ref modules
* - \ref module-instances
* - \ref drawing
* - \ref windows
*
* \ref applets_sec
* - \ref creation
* - \ref first_steps
* - \ref further
* - \ref opengl
* - \ref animation
* - \ref tasks
* - \ref key_binding
* - \ref sub_icons
*
* \ref advanced_sec
* - \ref advanced_config
* - \ref steal_appli
* - \ref data_renderer
* - \ref multi
* - \ref render_container
*
*
*
* \n
* \section intro_sec Introduction
*
* This documentation presents the core library of Cairo-Dock: <i>libgldi</i> (GL Desktop Interface).
*
* It is useful if you want to write a plug-in, add new features in the core, or just love C.\n
* Note: to write applets in any language very easily, see http://doc.glx-dock.org.
*
* It has a <b>decentralized conception</b> and is built of several modules: internal modules (\ref managers) and external modules (\ref modules) that can extend it.\n
* It also has an \ref objects architecture.
*
* \n
* \section install_sec Installation
*
* The installation is very easy and uses <i>cmake</i>. In a terminal, copy-paste the following commands :
* \code
* ### grab the sources of the core
* mkdir CD && cd CD
* bzr checkout --lightweight lp:cairo-dock-core
* ### compil the dock and install it
* cd cairo-dock-core
* cmake CMakeLists.txt -DCMAKE_INSTALL_PREFIX=/usr
* make
* sudo make install
* ### grab the sources of the plug-ins
* cd ..
* bzr checkout --lightweight lp:cairo-dock-plug-ins
* ### compil the stable plug-ins and install them
* cmake CMakeLists.txt -DCMAKE_INSTALL_PREFIX=/usr
* make
* sudo make install
* \endcode
* To install unstable plug-ins, add -Denable-xxx=yes to the cmake command, where xxx is the lower-case name of the applet.
*
*
* \n
* \section struct_sec Main structures
*
* \subsection objects Objects
* Any element in <i>libgldi</i> is a _GldiObject.\n
* An Object is created by an ObjectManager, which defines the properties and notifications of its children.\n
* It has a reference counter, can be deleted from the current theme, and can be reloaded.\n
* An Object can cast <b>notifications</b>; notifications are broadcasted on its ObjectManager.\n
* An ObjectManager can inherit from another ObjectManager; in this case, all methods of the parent ObjectManagers are called recursively, and likewise all notifications on an Object are casted recursively to all parent ObjectManagers.
*
* See _GldiObject and cairo-dock-object.h for more details.
*
* \subsection managers Managers
* The core is divided in several internal modules, called Managers.\n
* Each Manager manages a set of parameters and objects (for instance, the Dock Manager manages the list of all Docks and their parameters).
*
* See _GldiManager and cairo-dock-manager.h for more details.
*
* \subsection containers Containers
* Containers are generic animated windows. They can hold Icons and support cairo/OpenGL drawing.
*
* See _GldiContainer and cairo-dock-container.h for more details.
*
* \subsection icons Icons
* Icons are elements inside a Container on which the user can interact. For instance, a Launcher is an Icon that launches a program on left-click.
*
* See _Icon and cairo-dock-icon-factory.h for more details.
*
* \subsection dock Dock
* Docks are a kind of Container that sits on a border of the screen.
*
* See _CairoDock and cairo-dock-dock-factory.h for more details.
*
* \subsection desklet Desklet
* Desklets are a kind of Container that stays on the desktop and holds one or many icons.
*
* See _CairoDesklet and cairo-dock-desklet-factory.h for more details.
*
* \subsection dialog Dialog
* Dialogs are a kind of Container that holds no icon, but rather point to an icon, and are used to display some information or interact with the user.
*
* See _CairoDialog and cairo-dock-dialog-factory.h for more details.
*
* \subsection modules Modules
* A Module is an Object representing a plug-in for <i>libgldi</i>.\n
* It defines a set of properties and an interface for init/stop/reload.\n
* A Module that adds an Icon is called an <i>"applet"</i>.
*
* See _GldiModule and cairo-dock-module-manager.h for more details.
*
* Note: the <a href="https://launchpad.net/cairo-dock-plug-ins">cairo-dock-plug-ins</a> project is a set of modules in the form of loadable libraries (.so files).\n
* the <a href="https://launchpad.net/cairo-dock-plug-ins-extras">cairo-dock-plug-ins-extra</a> project is a set of modules in the form of scripts (Python or any language) that interact on the core through Dbus.
*
* \subsection module-instances Module-Instances
* A Module-Instance is an actual instance of a Module.\n
* It holds a set of parameters and data (amongst them the Applet-Icon if it's an applet).\n
* A Module can have several instances.
*
* See _GldiModuleInstance and cairo-dock-module-instance-manager.h for more details.
*
*
* \subsection drawing Drawing with cairo/opengl
*
* libgldi defines \ref _CairoDockImageBuffer, a generic Image that works for both cairo and OpenGL.\n
* See cairo-dock-image-buffer.h for more details.
*
* It is possible to add small images above Icons; they are called \ref _CairoOverlay.\n
* For instance quick-info and progress-bars are Overlays.\n
* See cairo-dock-overlay.h for more details.
*
*
* \subsection windows Windows management
*
* libgldi keeps track of all the currently existing windows, with all their properties, and notifies everybody of any change. It is used for the Taskbar.\n
* Each window has a corresponding \ref _GldiWindowActor object.\n
* See cairo-dock-windows-manager.h for more details.
*
*
* \n
* \section applets_sec External Modules
*
* \subsection creation Create a new applet
*
* Go to the "plug-ins" folder, and run the <i>generate-applet.sh</i> script. Answer the few questions, and you're done!\n
* The script creates a <module-name> folder, with <i>src</i> and <i>data</i> sub-folders, which contain the following:\n
* - data/icon.png: the default icon of your applet
* - data/preview.jpg: a preview of your applet, around 200x200 pixels
* - data/<module-name>.conf.in: the config file of your applet
* - src/applet-init.c: contains the <i>init</i>, <i>stop</i> and <i>reload</i> methods, as well as the definition of your applet.
* - src/applet-config.c: container the <i>get_config</i> and <i>reset_config</i> methods
* - src/applet-notifications.c: contains the callbacks of your applet (ie, the code that is called on events, for instance on click on the icon)
* - src/applet-struct.h: contains the structures (Config, Data, and any other you may need)
*
* Note: when adding a new file, don't forget to add it in the CMakeLists.txt.\n
* when changing something in the config file, don't forget to update the version number of the applet, in the main CMakeLists.txt.\n
* when changing anything, don't forget to install (<i>sudo make install</i>)
*
*
* \subsection first_steps First steps
*
* Edit the file <i>src/applet-inic.c</i>; the macro \ref CD_APPLET_DEFINITION is a convenient way to define an applet: just fill its name, its category, a brief description, and your name.
*
* In the section CD_APPLET_INIT_BEGIN/CD_APPLET_INIT_END, write the code that will run on startup.
*
* In the section CD_APPLET_STOP_BEGIN/CD_APPLET_STOP_END, write the code that will run when the applet is deactivated: remove any timer, destroy any allocated ressources, unregister notifications, etc.
*
* In the section CD_APPLET_RELOAD_BEGIN/CD_APPLET_RELOAD_END section, write the code that will run when the applet is reloaded; this can happen in 2 cases:
* - when the configuration is changed (\ref CD_APPLET_MY_CONFIG_CHANGED is TRUE, for instance when the user edits the applet)
* - when something else changed (\ref CD_APPLET_MY_CONFIG_CHANGED is FALSE, for instance when the icon theme is changed, or the icon size is changed); in this case, most of the time you have nothing to do, except if you loaded some ressources yourself.
*
* Edit the file <i>src/applet-config.c</i>;
* In the section CD_APPLET_GET_CONFIG_BEGIN/CD_APPLET_GET_CONFIG_END, get all your config parameters (don't forget to define them in applet-struct.h).
*
* In the section CD_APPLET_RESET_CONFIG_BEGIN/CD_APPLET_RESET_CONFIG_END, free any config parameter that was allocated (for instance, strings).
*
* Edit the file <i>src/applet-notifications.c</i>;
*
* In the section CD_APPLET_ON_CLICK_BEGIN/CD_APPLET_ON_CLICK_END, write the code that will run when the user clicks on the icon (or an icon of the sub-dock).
*
* There are other similar sections available:
* - \ref CD_APPLET_ON_MIDDLE_CLICK_BEGIN/\ref CD_APPLET_ON_MIDDLE_CLICK_END for the actions on middle click on your icon or one of its sub-dock.
* - \ref CD_APPLET_ON_DOUBLE_CLICK_BEGIN/\ref CD_APPLET_ON_DOUBLE_CLICK_END for the actions on double click on your icon or one of its sub-dock.
* - \ref CD_APPLET_ON_SCROLL_BEGIN/\ref CD_APPLET_ON_SCROLL_END for the actions on scroll on your icon or one of its sub-dock.
* - \ref CD_APPLET_ON_BUILD_MENU_BEGIN/\ref CD_APPLET_ON_BUILD_MENU_END for the building of the menu on left click on your icon or one of its sub-dock.
*
* To register to an event, use one of the following convenient macro during the init:
* - \ref CD_APPLET_REGISTER_FOR_CLICK_EVENT
* - \ref CD_APPLET_REGISTER_FOR_MIDDLE_CLICK_EVENT
* - \ref CD_APPLET_REGISTER_FOR_DOUBLE_CLICK_EVENT
* - \ref CD_APPLET_REGISTER_FOR_SCROLL_EVENT
* - \ref CD_APPLET_REGISTER_FOR_BUILD_MENU_EVENT
*
* Note: don't forget to unregister during the stop.
*
*
* \subsection further Go further
*
* A lot of useful macros are provided in cairo-dock-applet-facility.h to make your life easier.
*
* The applet instance is <b>myApplet</b>, and it holds the following:
* - <b>myIcon</b> : this is your icon !
* - <b>myContainer</b> : the container your icon belongs to (a Dock or a Desklet). For convenience, the following 2 parameters are available.
* - <b>myDock</b> : if your container is a dock, myDock = myContainer, otherwise it is NULL.
* - <b>myDesklet</b> : if your container is a desklet, myDesklet = myContainer, otherwise it is NULL.
* - <b>myConfig</b> : the structure holding all the parameters you get in your config file. You have to define it in <i>applet-struct.h</i>.
* - <b>myData</b> : the structure holding all the ressources loaded at run-time. You have to define it in <i>applet-struct.h</i>.
* - <b>myDrawContext</b> : a cairo context, if you need to draw on the icon with the libcairo.
*
* - To get values contained inside your <b>conf file</b>, you can use the following :\n
* \ref CD_CONFIG_GET_BOOLEAN & cie
*
* - To <b>build your menu</b>, you can use the following :\n
* \ref CD_APPLET_ADD_SUB_MENU & cie
*
* - To directly <b>set an image on your icon</b>, you can use the following :\n
* \ref CD_APPLET_SET_IMAGE_ON_MY_ICON & cie
*
* - To modify the <b>label</b> of your icon, you can use the following :\n
* \ref CD_APPLET_SET_NAME_FOR_MY_ICON & cie
*
* - To set a <b>quick-info</b> on your icon, you can use the following :\n
* \ref CD_APPLET_SET_QUICK_INFO_ON_MY_ICON & cie
*
* - To <b>create a surface</b> that fits your icon from an image, you can use the following :\n
* \ref CD_APPLET_LOAD_SURFACE_FOR_MY_APPLET & cie
*
* - To trigger the <b>refresh</b> of your icon or container after you drew something, you can use the following :\n
* \ref CD_APPLET_REDRAW_MY_ICON & \ref CAIRO_DOCK_REDRAW_MY_CONTAINER
*
*
* \subsection opengl How can I take advantage of the OpenGL ?
*
* There are 3 cases :
* - your applet just has a static icon; there is nothing to take into account, the common functions to set an image or a surface on an icon already handle the texture mapping.
* - you draw dynamically on your icon with libcairo (using myDrawContext), but you don't want to bother with OpenGL; all you have to do is to call /ref cairo_dock_update_icon_texture to update your icon's texture after you drawn your surface. This can be done for occasional drawings, like Switcher redrawing its icon each time a window is moved.
* - you draw your icon differently whether the dock is in OpenGL mode or not; in this case, you just need to put all the OpenGL commands into a CD_APPLET_START_DRAWING_MY_ICON/CD_APPLET_FINISH_DRAWING_MY_ICON section inside your code.
*
* There are also a lot of convenient functions you can use to draw in OpenGL. See cairo-dock-draw-opengl.h for loading and drawing textures and paths, and cairo-dock-particle-system.h for an easy way to draw particle systems.
*
*
* \subsection animation How can I animate my applet to make it more lively ?
*
* If you want to animate your icon easily, to signal some action (like <i>Music-Player</i> when a new song starts), you can simply <b>request for one of the registered animations</b> with \ref CD_APPLET_ANIMATE_MY_ICON and stop it with \ref CD_APPLET_STOP_ANIMATING_MY_ICON. You just need to specify the name of the animation (like "rotate" or "pulse") and the number of time it will be played.
*
* But you can also make your own animation, like <i>Clock</i> of <i>Cairo-Penguin</i>. You will have to integrate yourself into the rendering loop of your container. Don't panic, here again, Cairo-Dock helps you !
*
* First you will register to the "update container" notification, with a simple call to \ref CD_APPLET_REGISTER_FOR_UPDATE_ICON_SLOW_EVENT or \ref CD_APPLET_REGISTER_FOR_UPDATE_ICON_EVENT, depending on the refresh frequency you need : ~10Hz or ~33Hz. A high frequency needs of course more CPU, and most of the time the slow frequancy is enough.
*
* Then you will just put all your code in a \ref CD_APPLET_ON_UPDATE_ICON_BEGIN/\ref CD_APPLET_ON_UPDATE_ICON_END section. That's all ! In this section, do what you want, like redrawing your icon, possibly incrementing a counter to know until where you went, etc. See \ref opengl "the previous paragraph" to draw on your icon.
* Inside the rendering loop, you can skip an iteration with \ref CD_APPLET_SKIP_UPDATE_ICON, and quit the loop with \ref CD_APPLET_STOP_UPDATE_ICON or \ref CD_APPLET_PAUSE_UPDATE_ICON (don't forget to quit the loop when you're done, otherwise your container may continue to redraw itself, which means a needless CPU load).
*
* To know the size allocated to your icon, use the convenient \ref CD_APPLET_GET_MY_ICON_EXTENT.
*
*
* \subsection tasks I have heavy treatments to do, how can I make them without slowing the dock ?
*
* Say for instance you want to download a file on the Net, it is likely to take some amount of time, during which the dock will be frozen, waiting for you. To avoid such a situation, Cairo-Dock defines \ref _GldiTask "Tasks". They perform their job <b>asynchronously</b>, and can be <b>periodic</b>. See cairo-dock-task.h for a quick explanation on how a Task works.
*
* You create a Task with \ref cairo_dock_new_task, launch it with \ref cairo_dock_launch_task, and either cancel it with \ref cairo_dock_discard_task or destroy it with \ref cairo_dock_free_task.
*
*
* \subsection key_binding Key binding
*
* You can bind an action to a shortkey with the following macro: \ref CD_APPLET_BIND_KEY.\n
* For instance, the GMenu applet displays the menu on ctrl+F1.\n
* You get a GldiShortkey that you simply destroy when the applet stops (with \ref gldi_object_unref).
*
* See cairo-dock-keybinder.h for more details.
*
*
* \subsection sub_icons I need more than one icon, how can I easily get more ?
*
* In dock mode, your icon can have a sub-dock; in desklet mode, you can load a list of icons into your desklet. Cairo-Dock provides a convenient macro to <b>quickly load a list of icons</b> in both cases : \ref CD_APPLET_LOAD_MY_ICONS_LIST to load a list of icons and \ref CD_APPLET_DELETE_MY_ICONS_LIST to destroy it. Thus you don't need to know in which mode you are, neither to care about loading the icons, freeing them, or anything.
*
* You can get the list of icons with \ref CD_APPLET_MY_ICONS_LIST and to their container with \ref CD_APPLET_MY_ICONS_LIST_CONTAINER.
*
*
* \n
* \section advanced_sec Advanced functionnalities
*
* \subsection advanced_config How can I make my own widgets in the config panel ?
*
* Cairo-Dock can build itself the config panel of your applet from the config file. Moreover, it can do the opposite : update the conf file from the config panel. However, it is limited to the widgets it knows, and there are some cases it is not enough.
* Because of that, Cairo-Dock offers 2 hooks in the process of building/reading the config panel :
* when defining your applet in the CD_APPLET_DEFINE_BEGIN/CD_APPLET_DEFINE_END section, add to the interface the 2 functions pInterface->load_custom_widget and pInterface->save_custom_widget.
* They will be respectively called when the config panel of your applet is raised, and when it is validated.
*
* If you want to modify the content of an existing widget, you can grab it with \ref cairo_dock_gui_find_group_key_widget_in_list.
* To add your custom widgets, insert in the conf file an empty widget (with the prefix '_'), then grab it and pack some GtkWidget inside.
* If you want to dynamically alter the config panel (like having a "new" button that would make appear new widgets on click), you can add in the conf file the new widgets, and then call \ref cairo_dock_reload_current_module_widget to reload the config panel.
* See the AlsaMixer or Weather applets for an easy example, and Clock or Mail for a more advanced example.
*
*
* \subsection steal_appli How can my applet control the window of an application ?
*
* Say your applet launches an external application that has its own window. It is logical to <b>make your applet control this application</b>, rather than letting the Taskbar do.
* All you need to do is to call the macro \ref CD_APPLET_MANAGE_APPLICATION, indicating which application you wish to manage (you need to enter the class of the application, as you can get from "xprop | grep CLASS"). Your applet will then behave like a launcher that has stolen the appli icon.
*
*
* \subsection data_renderer How can I render some numerical values on my icon ?
*
* Cairo-Dock offers a powerful and versatile architecture for this case : \ref _CairoDataRenderer.
* A DataRenderer is a generic way to render a set of values on an icon; there are several implementations of this class : Gauge, CairoDockGraph, Bar, and it is quite easy to implement a new kind of DataRenderer.
*
* Each kind of renderer has a set of attributes that you can use to customize it; you just need to call the \ref CD_APPLET_ADD_DATA_RENDERER_ON_MY_ICON macro with the attributes, and you're done !
* Then, each time you want to render some new values, simply call \ref CD_APPLET_RENDER_NEW_DATA_ON_MY_ICON with the new values.
*
* When your applet is reloaded, you have to reload the DataRenderer as well, using the convenient \ref CD_APPLET_RELOAD_MY_DATA_RENDERER macro. If you don't specify attributes to it, it will simply reload the current DataRenderer, otherwise it will load the new attributes; the previous data are not lost, which is useful in the case of Graph for instance.
*
* You can remove it at any time with \ref CD_APPLET_REMOVE_MY_DATA_RENDERER.
*
*
* \subsection multi How can I make my applet multi-instanciable ?
*
* Applets can be launched several times, an instance will be created each time. To ensure your applet can be instanciated several times, you just need to pass myApplet to any function that uses one of its fields (myData, myIcon, etc). Then, to indicate Cairo-Dock that your applet is multi-instanciable, you'll have to define the macro CD_APPLET_MULTI_INSTANCE in each file. A convenient way to do that is to define it in the CMakeLists.txt by adding the following line: \code add_definitions (-DCD_APPLET_MULTI_INSTANCE="1") \endcode.
*
*
* \subsection render_container How can I draw anywhere on the dock, not only on my icon ?
*
* Say you want to draw directly on your container, like <i>CairoPenguin</i> or <i>ShowMouse</i> do. This can be achieved easily by registering to the \ref NOTIFICATION_RENDER notification. You will then be notified eash time a Dock or a Desklet is drawn. Register AFTER so that you will draw after the view.
*
*
*/
typedef struct _CairoDockRenderer CairoDockRenderer;
typedef struct _CairoDeskletRenderer CairoDeskletRenderer;
typedef struct _CairoDeskletDecoration CairoDeskletDecoration;
typedef struct _CairoDialogRenderer CairoDialogRenderer;
typedef struct _CairoDialogDecorator CairoDialogDecorator;
typedef struct _IconInterface IconInterface;
typedef struct _Icon Icon;
typedef struct _GldiContainer GldiContainer;
typedef struct _GldiContainerInterface GldiContainerInterface;
typedef struct _CairoDock CairoDock;
typedef struct _CairoDesklet CairoDesklet;
typedef struct _CairoDialog CairoDialog;
typedef struct _CairoFlyingContainer CairoFlyingContainer;
typedef struct _GldiModule GldiModule;
typedef struct _GldiModuleInterface GldiModuleInterface;
typedef struct _GldiVisitCard GldiVisitCard;
typedef struct _GldiModuleInstance GldiModuleInstance;
typedef struct _CairoDockMinimalAppletConfig CairoDockMinimalAppletConfig;
typedef struct _CairoDockDesktopEnvBackend CairoDockDesktopEnvBackend;
typedef struct _CairoDockClassAppli CairoDockClassAppli;
typedef struct _CairoDialogAttribute CairoDialogAttribute;
typedef struct _CairoDeskletAttribute CairoDeskletAttribute;
typedef struct _CairoDialogButton CairoDialogButton;
typedef struct _CairoDataRenderer CairoDataRenderer;
typedef struct _CairoDataRendererAttribute CairoDataRendererAttribute;
typedef struct _CairoDataRendererInterface CairoDataRendererInterface;
typedef struct _CairoDataToRenderer CairoDataToRenderer;
typedef struct _CairoDataRendererEmblemParam CairoDataRendererEmblemParam;
typedef struct _CairoDataRendererEmblem CairoDataRendererEmblem;
typedef struct _CairoDataRendererTextParam CairoDataRendererTextParam;
typedef struct _CairoDataRendererText CairoDataRendererText;
typedef struct _CairoDockDataRendererRecord CairoDockDataRendererRecord;
typedef struct _CairoDockAnimationRecord CairoDockAnimationRecord;
typedef struct _CairoDockHidingEffect CairoDockHidingEffect;
typedef struct _CairoIconContainerRenderer CairoIconContainerRenderer;
typedef struct _CairoDockTransition CairoDockTransition;
typedef struct _CairoDockPackage CairoDockPackage;
typedef struct _CairoDockGroupKeyWidget CairoDockGroupKeyWidget;
typedef struct _CairoDockGLConfig CairoDockGLConfig;
typedef struct _CairoDockGLFont CairoDockGLFont;
typedef struct _CairoDockGLPath CairoDockGLPath;
typedef struct _CairoDockImageBuffer CairoDockImageBuffer;
typedef struct _CairoOverlay CairoOverlay;
typedef struct _GldiTask GldiTask;
typedef struct _GldiShortkey GldiShortkey;
typedef struct _GldiManager GldiManager;
typedef struct _GldiObject GldiObject;
typedef struct _GldiObjectManager GldiObjectManager;
typedef struct _GldiDesktopGeometry GldiDesktopGeometry;
typedef struct _GldiDesktopBackground GldiDesktopBackground;
typedef struct _GldiDesktopManagerBackend GldiDesktopManagerBackend;
typedef struct _GldiWindowManagerBackend GldiWindowManagerBackend;
typedef struct _GldiWindowActor GldiWindowActor;
typedef struct _GldiContainerManagerBackend GldiContainerManagerBackend;
typedef struct _GldiGLManagerBackend GldiGLManagerBackend;
typedef void (*_GldiIconFunc) (Icon *icon, gpointer data);
typedef _GldiIconFunc GldiIconFunc;
typedef gboolean (*_GldiIconRFunc) (Icon *icon, gpointer data); // TRUE to continue
typedef _GldiIconRFunc GldiIconRFunc;
typedef struct _GldiTextDescription GldiTextDescription;
typedef struct _GldiColor GldiColor;
#define CAIRO_DOCK_NB_DATA_SLOT 12
// Nom du fichier de conf principal du theme.
#define CAIRO_DOCK_CONF_FILE "cairo-dock.conf"
// Nom du fichier de conf d'un dock racine.
#define CAIRO_DOCK_MAIN_DOCK_CONF_FILE "main-dock.conf"
// Nom du dock principal (le 1er cree).
#define CAIRO_DOCK_MAIN_DOCK_NAME "_MainDock_"
// Nom de la vue par defaut.
#define CAIRO_DOCK_DEFAULT_RENDERER_NAME N_("Default")
#define CAIRO_DOCK_LAST_ORDER -1e9
#define CAIRO_DOCK_NB_MAX_ITERATIONS 1000
#endif
|