~ubuntu-branches/ubuntu/quantal/gtkmm3.0/quantal

« back to all changes in this revision

Viewing changes to gtk/gtkmm/cellareacontext.cc

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-09-28 09:25:06 UTC
  • mfrom: (1.1.14)
  • Revision ID: package-import@ubuntu.com-20120928092506-9h63ais5o750a8sk
Tags: 3.5.13-0ubuntu1
* New upstream release
* debian/control:
  - Bump build-depends on libglibmm-2.4-dev, libgtk-3-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
namespace Gtk
31
31
{
32
32
 
33
 
} /* namespace Gtk */
 
33
} //namespace Gtk
34
34
 
35
35
namespace
36
36
{
133
133
 
134
134
Glib::RefPtr<CellArea> CellAreaContext::get_area()
135
135
{
136
 
 
137
136
  Glib::RefPtr<CellArea> retvalue = Glib::wrap(gtk_cell_area_context_get_area(gobj()));
138
137
  if(retvalue)
139
138
    retvalue->reference(); //The function does not do a ref for us.
140
139
  return retvalue;
141
 
 
142
140
}
143
141
 
144
142
Glib::RefPtr<const CellArea> CellAreaContext::get_area() const
148
146
 
149
147
void CellAreaContext::allocate(int width, int height)
150
148
{
151
 
  gtk_cell_area_context_allocate(gobj(), width, height); 
 
149
  gtk_cell_area_context_allocate(gobj(), width, height);
152
150
}
153
151
 
154
152
void CellAreaContext::reset()
155
153
{
156
 
  gtk_cell_area_context_reset(gobj()); 
 
154
  gtk_cell_area_context_reset(gobj());
157
155
}
158
156
 
159
157
void CellAreaContext::get_preferred_width(int& minimum_width, int& natural_width) const
160
158
{
161
 
  gtk_cell_area_context_get_preferred_width(const_cast<GtkCellAreaContext*>(gobj()), &(minimum_width), &(natural_width)); 
 
159
  gtk_cell_area_context_get_preferred_width(const_cast<GtkCellAreaContext*>(gobj()), &(minimum_width), &(natural_width));
162
160
}
163
161
 
164
162
void CellAreaContext::get_preferred_height(int& minimum_height, int& natural_height) const
165
163
{
166
 
  gtk_cell_area_context_get_preferred_height(const_cast<GtkCellAreaContext*>(gobj()), &(minimum_height), &(natural_height)); 
 
164
  gtk_cell_area_context_get_preferred_height(const_cast<GtkCellAreaContext*>(gobj()), &(minimum_height), &(natural_height));
167
165
}
168
166
 
169
167
void CellAreaContext::get_preferred_height_for_width(int width, int& minimum_height, int& natural_height) const
170
168
{
171
 
  gtk_cell_area_context_get_preferred_height_for_width(const_cast<GtkCellAreaContext*>(gobj()), width, &(minimum_height), &(natural_height)); 
 
169
  gtk_cell_area_context_get_preferred_height_for_width(const_cast<GtkCellAreaContext*>(gobj()), width, &(minimum_height), &(natural_height));
172
170
}
173
171
 
174
172
void CellAreaContext::get_preferred_width_for_height(int height, int& minimum_width, int& natural_width) const
175
173
{
176
 
  gtk_cell_area_context_get_preferred_width_for_height(const_cast<GtkCellAreaContext*>(gobj()), height, &(minimum_width), &(natural_width)); 
 
174
  gtk_cell_area_context_get_preferred_width_for_height(const_cast<GtkCellAreaContext*>(gobj()), height, &(minimum_width), &(natural_width));
177
175
}
178
176
 
179
177
void CellAreaContext::get_allocation(int& width, int& height) const
180
178
{
181
 
  gtk_cell_area_context_get_allocation(const_cast<GtkCellAreaContext*>(gobj()), &(width), &(height)); 
 
179
  gtk_cell_area_context_get_allocation(const_cast<GtkCellAreaContext*>(gobj()), &(width), &(height));
182
180
}
183
181
 
184
182
void CellAreaContext::push_preferred_width(int minimum_width, int natural_width)
185
183
{
186
 
  gtk_cell_area_context_push_preferred_width(gobj(), minimum_width, natural_width); 
 
184
  gtk_cell_area_context_push_preferred_width(gobj(), minimum_width, natural_width);
187
185
}
188
186
 
189
187
void CellAreaContext::push_preferred_height(int minimum_height, int natural_height)
190
188
{
191
 
  gtk_cell_area_context_push_preferred_height(gobj(), minimum_height, natural_height); 
 
189
  gtk_cell_area_context_push_preferred_height(gobj(), minimum_height, natural_height);
192
190
}
193
191
 
194
192