Exemple #1
0
void GeCurveGtk::resize()
{
  int main_height, main_width, height, width;
  double zoom_y;

  gdk_drawable_get_size( growaxis_main_widget->window, &main_width, &main_height);

  curve_GetPreferedZoomY( growcurve_ctx, main_height, &zoom_y);
  grow_ZoomY( growaxis_ctx, zoom_y);
  grow_ZoomX( growaxis_ctx, zoom_y);

  width = int( zoom_y * axis_window_width);
  height = main_height;
  gtk_widget_set_size_request( growaxis_main_widget, width+4, height);
}
Exemple #2
0
void GeCurveMotif::resize()
{
  short height, width;
  Arg args[2];
  double zoom_y;

  XtSetArg(args[0],XmNheight, &height);
  XtGetValues(growaxis_main_widget, args, 1);

  curve_GetPreferedZoomY( growcurve_ctx, height, &zoom_y);
  grow_ZoomY( growaxis_ctx, zoom_y);
  grow_ZoomX( growaxis_ctx, zoom_y);

  width = short( zoom_y * axis_window_width);
  XtSetArg(args[0],XmNwidth,width+4);
  XtSetValues( axisform_widget, args, 1);
}