~ubuntu-branches/ubuntu/wily/mutter/wily

« back to all changes in this revision

Viewing changes to src/core/frame.h

  • Committer: Bazaar Package Importer
  • Author(s): Rico Tzschichholz
  • Date: 2011-04-10 22:27:59 UTC
  • mfrom: (0.7.1 upstream) (0.3.20 experimental)
  • Revision ID: james.westby@ubuntu.com-20110410222759-o6n1i5p0unsti44n
Tags: 3.0.0-0ubuntu1
* New upstream release

* Merge with debian experimental (LP: #742458), remaining changes:
  + debian/patches/03_link_gles2.patch: Link to clutter-glx-1.0
    explicitily at the end of link flags, to bring in libGLESv2 on armel.
* debian/control.in:
  + rename gir package to gir1.2-mutter-3.0
* debian/libmutter0.symbols:
  + updated
* debian/patches:
  + fix 03_link_gles2.patch 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
 
2
 
 
3
/* Mutter X window decorations */
 
4
 
 
5
/* 
 
6
 * Copyright (C) 2001 Havoc Pennington
 
7
 * 
 
8
 * This program is free software; you can redistribute it and/or
 
9
 * modify it under the terms of the GNU General Public License as
 
10
 * published by the Free Software Foundation; either version 2 of the
 
11
 * License, or (at your option) any later version.
 
12
 *
 
13
 * This program is distributed in the hope that it will be useful, but
 
14
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
16
 * General Public License for more details.
 
17
 * 
 
18
 * You should have received a copy of the GNU General Public License
 
19
 * along with this program; if not, write to the Free Software
 
20
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
21
 * 02111-1307, USA.
 
22
 */
 
23
 
 
24
#ifndef META_FRAME_PRIVATE_H
 
25
#define META_FRAME_PRIVATE_H
 
26
 
 
27
#include "window-private.h"
 
28
 
 
29
typedef struct _MetaFrameGeometry MetaFrameGeometry;
 
30
 
 
31
struct _MetaFrameGeometry
 
32
{  
 
33
  /* border sizes (space between frame and child) */
 
34
  int left_width;
 
35
  int right_width;
 
36
  int top_height;
 
37
  int bottom_height;
 
38
};
 
39
 
 
40
struct _MetaFrame
 
41
{
 
42
  /* window we frame */
 
43
  MetaWindow *window;
 
44
 
 
45
  /* reparent window */
 
46
  Window xwindow;
 
47
 
 
48
  MetaCursor current_cursor;
 
49
 
 
50
  /* This rect is trusted info from where we put the
 
51
   * frame, not the result of ConfigureNotify
 
52
   */
 
53
  MetaRectangle rect;
 
54
 
 
55
  /* position of client, size of frame */
 
56
  int child_x;
 
57
  int child_y;
 
58
  int right_width;
 
59
  int bottom_height;
 
60
 
 
61
  guint mapped : 1;
 
62
  guint need_reapply_frame_shape : 1;
 
63
  guint is_flashing : 1; /* used by the visual bell flash */
 
64
};
 
65
 
 
66
void     meta_window_ensure_frame           (MetaWindow *window);
 
67
void     meta_window_destroy_frame          (MetaWindow *window);
 
68
void     meta_frame_queue_draw              (MetaFrame  *frame);
 
69
 
 
70
MetaFrameFlags meta_frame_get_flags   (MetaFrame *frame);
 
71
Window         meta_frame_get_xwindow (MetaFrame *frame);
 
72
 
 
73
/* These should ONLY be called from meta_window_move_resize_internal */
 
74
void meta_frame_calc_geometry      (MetaFrame         *frame,
 
75
                                    MetaFrameGeometry *geomp);
 
76
void meta_frame_sync_to_window     (MetaFrame         *frame,
 
77
                                    int                gravity,
 
78
                                    gboolean           need_move,
 
79
                                    gboolean           need_resize);
 
80
 
 
81
void meta_frame_set_screen_cursor (MetaFrame    *frame,
 
82
                                   MetaCursor   cursor);
 
83
 
 
84
#endif
 
85
 
 
86
 
 
87
 
 
88