scaled x0 = (math_view->vadjustment != NULL) ? math_view->vadjustment->value : 0; scaled y0 = (math_view->hadjustment != NULL) ? math_view->vadjustment->value : 0;
gint x0 = (math_view->vadjustment != NULL) ? static_cast<int>(math_view->hadjustment->value) : 0; gint y0 = (math_view->hadjustment != NULL) ? static_cast<int>(math_view->vadjustment->value) : 0;
gtk_math_view_get_element_at(GtkMathView* math_view, gint x, gint y){  g_return_val_if_fail(math_view != NULL, NULL);  g_return_val_if_fail(math_view->interface != NULL, NULL);  scaled x0 = (math_view->vadjustment != NULL) ? math_view->vadjustment->value : 0;  scaled y0 = (math_view->hadjustment != NULL) ? math_view->vadjustment->value : 0;  Ptr<MathMLElement> at = math_view->interface->GetElementAt(x0 + px2sp(x), y0 + px2sp(y));  return gdome_cast_el(findDOMNode(at).gdome_object());}