~muktupavels/metacity/adwaita-icon-theme-lp-1414613

« back to all changes in this revision

Viewing changes to src/constraints.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-12-13 23:03:47 UTC
  • mto: (2.2.1 sid) (1.4.2)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20051213230347-8dnaprp18n18dz1y
Tags: upstream-2.13.5
ImportĀ upstreamĀ versionĀ 2.13.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
/* 
4
4
 * Copyright (C) 2002 Red Hat, Inc.
 
5
 * Copyright (C) 2005 Elijah Newren
5
6
 * 
6
7
 * This program is free software; you can redistribute it and/or
7
8
 * modify it under the terms of the GNU General Public License as
28
29
 
29
30
typedef enum
30
31
{
31
 
  META_RESIZE_LEFT_OR_TOP,
32
 
  META_RESIZE_CENTER,
33
 
  META_RESIZE_RIGHT_OR_BOTTOM
34
 
} MetaResizeDirection;
 
32
  META_IS_CONFIGURE_REQUEST = 1 << 0,
 
33
  META_DO_GRAVITY_ADJUST    = 1 << 1,
 
34
  META_IS_USER_ACTION       = 1 << 2,
 
35
  META_IS_MOVE_ACTION       = 1 << 3,
 
36
  META_IS_RESIZE_ACTION     = 1 << 4
 
37
} MetaMoveResizeFlags;
35
38
 
36
39
void meta_window_constrain (MetaWindow          *window,
37
 
                            MetaFrameGeometry   *fgeom,
 
40
                            MetaFrameGeometry   *orig_fgeom,
 
41
                            MetaMoveResizeFlags  flags,
 
42
                            int                  resize_gravity,
38
43
                            const MetaRectangle *orig,
39
 
                            int                  x_move_delta,
40
 
                            int                  y_move_delta,
41
 
                            MetaResizeDirection  x_direction,
42
 
                            int                  x_delta,
43
 
                            MetaResizeDirection  y_direction,
44
 
                            int                  y_delta,
45
44
                            MetaRectangle       *new);
46
45
 
47
 
MetaResizeDirection meta_x_direction_from_gravity (int gravity);
48
 
MetaResizeDirection meta_y_direction_from_gravity (int gravity);
49
 
 
50
46
#endif /* META_CONSTRAINTS_H */
51
 
 
52
 
 
53
 
 
54
 
 
55
 
 
56
 
 
57
 
 
58
 
 
59