~cairo-dock-team/ubuntu/oneiric/cairo-dock-plug-ins/2.3.0-3

« back to all changes in this revision

Viewing changes to desklet-rendering/src/rendering-desklet-viewport.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2010-09-07 02:38:17 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20100907023817-ish9a53i2wn0m7zg
Tags: 2.2.0~0rc1-0ubuntu1
* New Upstream Version (LP: #632054)
* Fixed a few bugs on LP:
 - LP: #616176 Dust Bin Hang and Incorrect Configuration
 - LP: #604034 Change terminal tab's name lost the color
 - LP: #582452 GMenu does not contain any applications
* Fixed a few bugs on glx-dock forum:
 - Fixed support of GMusicBrowser.
 - AlsaMixer has no emblem.
 - Status-Notifier doesn't be drawed into the dock.
* Updated translations
* debian/control:
 - Added cairo-dock-core as build-depends in order to prevent
   some builds errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
18
*/
19
19
 
20
 
 
21
20
#ifndef __RENDERING_DESKLET_VIEWPORT__
22
21
#define  __RENDERING_DESKLET_VIEWPORT__
23
22
 
26
25
 
27
26
typedef struct {
28
27
        // from config
29
 
        gboolean bRoundedRadius;
30
 
        gint iRadius;
31
 
        gdouble fLineColor[4];
32
 
        gint iLineWidth;
33
 
        gint iGapBetweenIcons;
34
 
        gint iMinimumIconSize;
35
 
        gboolean bInfiniteWidth;
36
 
        gboolean bInfiniteHeight;
 
28
        gboolean bHorizontalScrolBar;
 
29
        gint iIconGapX, iIconGapY;
 
30
        gdouble color_scrollbar_line[4];
 
31
        gdouble color_scrollbar_inside[4];
 
32
        gdouble color_grip[4];
37
33
        // computed data
 
34
        gint nRowsX;
 
35
        gint nRowsY;
 
36
        gint iDeltaHeight;  // hauteur scrollable, en pixels
 
37
        gint iScrollOffset;  // hauteur scrollee, en pixels, positive.
 
38
        gboolean bDraggingScrollbar;  // si le clic est couramment enfonce sur la scrollbar.
 
39
        guint iSidPressEvent;  // sid du clic
 
40
        guint iSidReleaseEvent;  // sid du relachement du clic
 
41
        gint iClickY;  // hauteur ou on a clique, en coordonnees fenetre
 
42
        gint iClickOffset;  // hauteur scrollee au moment du clic
38
43
        gdouble fMargin;
39
 
        gint iNbIcons;
40
 
        GList* iFirstIconToShow;
 
44
        
41
45
        gint iIconSize;
42
 
        gint iNbLines, iNbColumns;
43
 
        gint iMaxOffsetX;
44
 
        gint iMaxOffsetY;
45
 
        // current state
46
 
        gint iCurrentOffsetX;
47
 
        gint iCurrentOffsetY;
48
 
        gint fCurrentPanXSpeed;
49
 
        gint fCurrentPanYSpeed;
 
46
        gdouble fArrowHeight;
 
47
        gdouble fArrowGap;
 
48
        gdouble fScrollbarArrowGap;
 
49
        gdouble fScrollbarWidth;
 
50
        gdouble fScrollbarIconGap;
50
51
        } CDViewportParameters;
51
52
 
52
53
 
53
54
void rendering_register_viewport_desklet_renderer (void);
54
55
 
 
56
//gboolean cd_slide_on_click (gpointer data, Icon *pClickedIcon, CairoDesklet *pDesklet, guint iButtonState);
 
57
 
55
58
 
56
59
#endif