~mterry/ubuntu/natty/gnome-shell/wip

« back to all changes in this revision

Viewing changes to src/st/st-scroll-bar.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-10-12 22:44:00 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091012224400-k91p42yvou07i525
Tags: 2.28.0-0ubuntu1
* New upstream version
* debian/control:
  - updated build requirement
* debian/patches/80_git_change_fix_alt_tab_ressource_usage.patch:
  - git change to fix ressources not being freed on alt-tab

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
 
2
/*
 
3
 * st-scroll-bar.h: Scroll bar actor
 
4
 *
 
5
 * Copyright 2008 OpenedHand
 
6
 * Copyright 2009 Intel Corporation.
 
7
 *
 
8
 * This program is free software; you can redistribute it and/or modify it
 
9
 * under the terms and conditions of the GNU Lesser General Public License,
 
10
 * version 2.1, as published by the Free Software Foundation.
 
11
 *
 
12
 * This program is distributed in the hope it will be useful, but WITHOUT ANY
 
13
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 
14
 * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for
 
15
 * more details.
 
16
 *
 
17
 * You should have received a copy of the GNU Lesser General Public License
 
18
 * along with this program; if not, write to the Free Software Foundation,
 
19
 * Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
 
20
 * Boston, MA 02111-1307, USA.
 
21
 *
 
22
 * Written by: Chris Lord <chris@openedhand.com>
 
23
 * Port to St by: Robert Staudinger <robsta@openedhand.com>
 
24
 *
 
25
 */
 
26
 
 
27
#if !defined(ST_H_INSIDE) && !defined(ST_COMPILATION)
 
28
#error "Only <st/st.h> can be included directly.h"
 
29
#endif
 
30
 
 
31
#ifndef __ST_SCROLL_BAR_H__
 
32
#define __ST_SCROLL_BAR_H__
 
33
 
 
34
#include <st/st-adjustment.h>
 
35
#include <st/st-bin.h>
 
36
 
 
37
G_BEGIN_DECLS
 
38
 
 
39
#define ST_TYPE_SCROLL_BAR            (st_scroll_bar_get_type())
 
40
#define ST_SCROLL_BAR(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), ST_TYPE_SCROLL_BAR, StScrollBar))
 
41
#define ST_IS_SCROLL_BAR(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ST_TYPE_SCROLL_BAR))
 
42
#define ST_SCROLL_BAR_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), ST_TYPE_SCROLL_BAR, StScrollBarClass))
 
43
#define ST_IS_SCROLL_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ST_TYPE_SCROLL_BAR))
 
44
#define ST_SCROLL_BAR_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), ST_TYPE_SCROLL_BAR, StScrollBarClass))
 
45
 
 
46
typedef struct _StScrollBar          StScrollBar;
 
47
typedef struct _StScrollBarPrivate   StScrollBarPrivate;
 
48
typedef struct _StScrollBarClass     StScrollBarClass;
 
49
 
 
50
/**
 
51
 * StScrollBar:
 
52
 *
 
53
 * The contents of this structure are private and should only be accessed
 
54
 * through the public API.
 
55
 */
 
56
struct _StScrollBar
 
57
{
 
58
  /*< private >*/
 
59
  StBin parent_instance;
 
60
 
 
61
  StScrollBarPrivate *priv;
 
62
};
 
63
 
 
64
struct _StScrollBarClass
 
65
{
 
66
  StBinClass parent_class;
 
67
 
 
68
  /* signals */
 
69
  void (*scroll_start) (StScrollBar *bar);
 
70
  void (*scroll_stop)  (StScrollBar *bar);
 
71
};
 
72
 
 
73
GType st_scroll_bar_get_type (void) G_GNUC_CONST;
 
74
 
 
75
StWidget *st_scroll_bar_new (StAdjustment *adjustment);
 
76
 
 
77
void          st_scroll_bar_set_adjustment (StScrollBar  *bar,
 
78
                                            StAdjustment *adjustment);
 
79
StAdjustment *st_scroll_bar_get_adjustment (StScrollBar  *bar);
 
80
 
 
81
G_END_DECLS
 
82
 
 
83
#endif /* __ST_SCROLL_BAR_H__ */