~valavanisalex/ubuntu/precise/inkscape/fix-943984

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/helper/unit-menu.h

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __SP_UNIT_MENU_H__
 
2
#define __SP_UNIT_MENU_H__
 
3
 
 
4
/*
 
5
 * SPUnitMenu
 
6
 *
 
7
 * Generic (and quite unintelligent) grid item for gnome canvas
 
8
 *
 
9
 * Copyright (C) Lauris Kaplinski 2000
 
10
 *
 
11
 */
 
12
 
 
13
#include <glib/gtypes.h>
 
14
#include <gtk/gtkoptionmenu.h>
 
15
 
 
16
#include <helper/helper-forward.h>
 
17
 
 
18
 
 
19
/* Unit selector Widget */
 
20
 
 
21
#define SP_TYPE_UNIT_SELECTOR (sp_unit_selector_get_type())
 
22
#define SP_UNIT_SELECTOR(o) (GTK_CHECK_CAST((o), SP_TYPE_UNIT_SELECTOR, SPUnitSelector))
 
23
#define SP_UNIT_SELECTOR_CLASS(k) (GTK_CHECK_CLASS_CAST((k), SP_TYPE_UNIT_SELECTOR, SPUnitSelectorClass))
 
24
#define SP_IS_UNIT_SELECTOR(o) (GTK_CHECK_TYPE((o), SP_TYPE_UNIT_SELECTOR))
 
25
#define SP_IS_UNIT_SELECTOR_CLASS(k) (GTK_CHECK_CLASS_TYPE((k), SP_TYPE_UNIT_SELECTOR))
 
26
 
 
27
GType sp_unit_selector_get_type(void);
 
28
 
 
29
GtkWidget *sp_unit_selector_new(guint bases);
 
30
void sp_unit_selector_setsize(GtkWidget *us, guint w, guint h);
 
31
 
 
32
SPUnit const *sp_unit_selector_get_unit(SPUnitSelector const *selector);
 
33
 
 
34
void sp_unit_selector_set_bases(SPUnitSelector *selector, guint bases);
 
35
void sp_unit_selector_add_unit(SPUnitSelector *selector, SPUnit const *unit, int position);
 
36
 
 
37
void sp_unit_selector_set_unit(SPUnitSelector *selector, SPUnit const *unit);
 
38
void sp_unit_selector_add_adjustment(SPUnitSelector *selector, GtkAdjustment *adjustment);
 
39
void sp_unit_selector_remove_adjustment(SPUnitSelector *selector, GtkAdjustment *adjustment);
 
40
 
 
41
gboolean sp_unit_selector_update_test(SPUnitSelector const *selector);
 
42
 
 
43
double sp_unit_selector_get_value_in_pixels(SPUnitSelector const *selector, GtkAdjustment *adj);
 
44
void sp_unit_selector_set_value_in_pixels(SPUnitSelector *selector, GtkAdjustment *adj, double value);
 
45
 
 
46
 
 
47
 
 
48
#endif
 
49
 
 
50
/*
 
51
  Local Variables:
 
52
  mode:c++
 
53
  c-file-style:"stroustrup"
 
54
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
55
  indent-tabs-mode:nil
 
56
  fill-column:99
 
57
  End:
 
58
*/
 
59
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :