~ubuntu-branches/ubuntu/utopic/libinfinity/utopic-proposed

« back to all changes in this revision

Viewing changes to libinftext/inf-text-user.h

  • Committer: Bazaar Package Importer
  • Author(s): Philipp Kern
  • Date: 2011-04-01 10:44:57 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20110401104457-q7927ly61fr51tqs
Tags: 0.5.0-1
* New upstream release.
* Drop patches applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* libinfinity - a GObject-based infinote implementation
2
 
 * Copyright (C) 2007, 2008, 2009 Armin Burgmeier <armin@arbur.net>
 
2
 * Copyright (C) 2007-2010 Armin Burgmeier <armin@arbur.net>
3
3
 *
4
4
 * This library is free software; you can redistribute it and/or
5
5
 * modify it under the terms of the GNU Lesser General Public
41
41
 
42
42
  void(*selection_changed)(InfTextUser* user,
43
43
                           guint position,
44
 
                           guint length);
 
44
                           guint length,
 
45
                           gboolean by_request);
45
46
};
46
47
 
47
48
struct _InfTextUser {
51
52
GType
52
53
inf_text_user_get_type(void) G_GNUC_CONST;
53
54
 
 
55
InfTextUser*
 
56
inf_text_user_new(guint id,
 
57
                  const gchar* name,
 
58
                  InfAdoptedStateVector* vector,
 
59
                  double hue);
 
60
 
54
61
guint
55
62
inf_text_user_get_caret_position(InfTextUser* user);
56
63
 
60
67
void
61
68
inf_text_user_set_selection(InfTextUser* user,
62
69
                            guint position,
63
 
                            gint length);
 
70
                            gint length,
 
71
                            gboolean by_request);
64
72
 
65
73
gdouble
66
74
inf_text_user_get_hue(InfTextUser* user);