~smspillaz/compiz-grid-plugin/oneiric.fix_827560

« back to all changes in this revision

Viewing changes to src/grid.h

  • Committer: Sam Spilsbury
  • Date: 2011-09-28 16:58:29 UTC
  • Revision ID: sam.spilsbury@canonical.com-20110928165829-zq9mcj6ju3etxrn5
Check if a window can be maximized or resized before giving it a new geometry

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
#define SNAPOFF_THRESHOLD 50
34
34
 
35
 
typedef enum
 
35
namespace GridWindowType
36
36
{
37
 
    GridUnknown = 0,
38
 
    GridBottomLeft = 1,
39
 
    GridBottom = 2,
40
 
    GridBottomRight = 3,
41
 
    GridLeft = 4,
42
 
    GridCenter = 5,
43
 
    GridRight = 6,
44
 
    GridTopLeft = 7,
45
 
    GridTop = 8,
46
 
    GridTopRight = 9,
47
 
    GridMaximize = 10
48
 
} GridType;
 
37
    static const unsigned int GridUnknown = (1 << 0);
 
38
    static const unsigned int GridBottomLeft  = (1 << 1);
 
39
    static const unsigned int GridBottom  = (1 << 2);
 
40
    static const unsigned int GridBottomRight = (1 << 3);
 
41
    static const unsigned int GridLeft  = (1 << 4);
 
42
    static const unsigned int GridCenter  = (1 << 5);
 
43
    static const unsigned int GridRight  = (1 << 6);
 
44
    static const unsigned int GridTopLeft  = (1 << 7);
 
45
    static const unsigned int GridTop  = (1 << 8);
 
46
    static const unsigned int GridTopRight  = (1 << 9);
 
47
    static const unsigned int GridMaximize  = (1 << 10);
 
48
};
 
49
 
 
50
typedef unsigned int GridType;
49
51
 
50
52
typedef struct _GridProps
51
53
{