示例#1
0
文件: stack.c 项目: mchalupa/mutter
static gboolean
window_contains_point (MetaWindow *window,
                       int         root_x,
                       int         root_y)
{
  MetaRectangle rect;

  meta_window_get_frame_rect (window, &rect);

  return POINT_IN_RECT (root_x, root_y, rect);
}
示例#2
0
int touch_released_in(rectangle_t region)
{
  return ! touching && POINT_IN_RECT(old_touch_coords, region);
}
示例#3
0
int touch_was_down_in(rectangle_t region)
{
  return touching && POINT_IN_RECT(old_touch_coords, region) && ! POINT_IN_RECT(touch_coords, region);
}