diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-01-28 17:15:44 +0200 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-01-28 17:15:44 +0200 |
commit | 636cee54d4ad58cd5ca4ed698d8e237c1887c69f (patch) | |
tree | 1c1b3a9ee3e73c35771407c173b07a59ada07abb /libmetacity/meta-frame-borders.c | |
parent | 79fc442f5e0c267f01440fa25ce1c148415dbe32 (diff) | |
download | metacity-636cee54d4ad58cd5ca4ed698d8e237c1887c69f.tar.gz |
move MetaFrameBorders to libmetacity
Diffstat (limited to 'libmetacity/meta-frame-borders.c')
-rw-r--r-- | libmetacity/meta-frame-borders.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libmetacity/meta-frame-borders.c b/libmetacity/meta-frame-borders.c new file mode 100644 index 00000000..603ae858 --- /dev/null +++ b/libmetacity/meta-frame-borders.c @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2001 Havoc Pennington + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "config.h" + +#include "meta-frame-borders.h" + +void +meta_frame_borders_clear (MetaFrameBorders *self) +{ + self->visible.top = self->invisible.top = self->total.top = 0; + self->visible.bottom = self->invisible.bottom = self->total.bottom = 0; + self->visible.left = self->invisible.left = self->total.left = 0; + self->visible.right = self->invisible.right = self->total.right = 0; +} |