1
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
3
/* Mutter X window decorations */
6
* Copyright (C) 2001 Havoc Pennington
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.
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.
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
24
#ifndef META_FRAME_PRIVATE_H
25
#define META_FRAME_PRIVATE_H
27
#include "window-private.h"
29
typedef struct _MetaFrameGeometry MetaFrameGeometry;
31
struct _MetaFrameGeometry
33
/* border sizes (space between frame and child) */
48
MetaCursor current_cursor;
50
/* This rect is trusted info from where we put the
51
* frame, not the result of ConfigureNotify
55
/* position of client, size of frame */
62
guint need_reapply_frame_shape : 1;
63
guint is_flashing : 1; /* used by the visual bell flash */
66
void meta_window_ensure_frame (MetaWindow *window);
67
void meta_window_destroy_frame (MetaWindow *window);
68
void meta_frame_queue_draw (MetaFrame *frame);
70
MetaFrameFlags meta_frame_get_flags (MetaFrame *frame);
71
Window meta_frame_get_xwindow (MetaFrame *frame);
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,
79
gboolean need_resize);
81
void meta_frame_set_screen_cursor (MetaFrame *frame,