00001 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ 00002 00003 /* Metacity size/position constraints */ 00004 00005 /* 00006 * Copyright (C) 2002 Red Hat, Inc. 00007 * Copyright (C) 2005 Elijah Newren 00008 * 00009 * This program is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU General Public License as 00011 * published by the Free Software Foundation; either version 2 of the 00012 * License, or (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, but 00015 * WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 * General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00022 * 02111-1307, USA. 00023 */ 00024 00025 #ifndef META_CONSTRAINTS_H 00026 #define META_CONSTRAINTS_H 00027 00028 #include "util.h" 00029 #include "window-private.h" 00030 #include "frame-private.h" 00031 00032 typedef enum 00033 { 00034 META_IS_CONFIGURE_REQUEST = 1 << 0, 00035 META_DO_GRAVITY_ADJUST = 1 << 1, 00036 META_IS_USER_ACTION = 1 << 2, 00037 META_IS_MOVE_ACTION = 1 << 3, 00038 META_IS_RESIZE_ACTION = 1 << 4 00039 } MetaMoveResizeFlags; 00040 00041 void meta_window_constrain (MetaWindow *window, 00042 MetaFrameGeometry *orig_fgeom, 00043 MetaMoveResizeFlags flags, 00044 int resize_gravity, 00045 const MetaRectangle *orig, 00046 MetaRectangle *new); 00047 00048 #endif /* META_CONSTRAINTS_H */
1.5.5