~ubuntu-branches/ubuntu/karmic/gtkmm2.4/karmic

« back to all changes in this revision

Viewing changes to gtk/gtkmm/ruler.h

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2009-09-22 10:14:59 UTC
  • mfrom: (1.2.42 upstream)
  • Revision ID: james.westby@ubuntu.com-20090922101459-pespb00fbm1mlqbd
Tags: 1:2.18.1-0ubuntu1
* New upstream release: (LP: #434355)
  - RecentManager: Undeprecate get_default().
  - Clipboard: wait_for_targets): Fix a crash.
  - Window: Added set_icon_name().
  - Require a recent pangomm.
  - Style: Fix a compiler error with the Intel C++ compiler.
  - Fix recently-introduced problems with disable-deprecated options.
* debian/control.in:
  - Bump libpangomm-1.4-dev depends and build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
 
139
139
  MetricType get_metric() const; 
140
140
 
 
141
  
141
142
  /** Sets the desired metric of the ruler.  The possible choices are:
142
143
   * <ul><li>Gtk::PIXELS
143
144
   * <li>Gtk::INCHES
144
145
   * <li>Gtk::CENTIMETERS
145
146
   * </ul>The default metric is Gtk::PIXELS.
146
147
   */
147
 
  
148
148
  void set_metric(MetricType metric = PIXELS);
149
149
  
150
150
  /** Gets the units used for a Gtk::Ruler. See set_metric().
155
155
   double get_range_lower() const;
156
156
    double get_range_upper() const;
157
157
 
 
158
  
158
159
  /** sets the range of the ruler.
159
160
   * <i>upper</i> and <i>lower</i> arguments denote the extents of the Ruler.
160
161
   * <i>max_size</i> is the largest number displayed by the ruler.
161
162
   * <i>position</i> gives the initial value of the ruler.
162
163
   * Rulers do not have sane defaults so this function should always be called.
163
164
   */
164
 
  
165
 
  /** This sets the range of the ruler.
166
 
   * @param lower The lower limit of the ruler.
167
 
   * @param upper The upper limit of the ruler.
168
 
   * @param position The mark on the ruler.
169
 
   * @param max_size The maximum size of the ruler used when calculating the space to
170
 
   * leave for the text.
171
 
   */
172
165
  void set_range(double lower, double upper, double position, double max_size);
173
166
  
174
167
  /** Retrieves values indicating the range and current position of a Gtk::Ruler.
181
174
   */
182
175
  void get_range(double& lower, double& upper, double& position, double& max_size);
183
176
 
184
 
  /// draw tick marks on the ruler
185
 
  
 
177
 
 
178
  /** draw tick marks on the ruler
 
179
   */
186
180
  void draw_ticks();
187
181
 
188
 
  /// draw a position indicator on the ruler
189
 
  
 
182
 
 
183
  /** draw a position indicator on the ruler
 
184
   */
190
185
  void draw_pos();
191
186
 
192
187
  #ifdef GLIBMM_VFUNCS_ENABLED