X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fanchor_point.hpp;h=5b8baee3b240b666dee2827bbdb1322b29d3f8bb;hb=ca967dcf4ee89f99880355be00782d1cd047be6a;hp=a141ed30aed57e22cbe4ae57864009aef1a8722b;hpb=fc9a5c880b865b20af63d5fadc6373f7bd1d2e7e;p=supertux.git diff --git a/src/object/anchor_point.hpp b/src/object/anchor_point.hpp index a141ed30a..5b8baee3b 100644 --- a/src/object/anchor_point.hpp +++ b/src/object/anchor_point.hpp @@ -1,3 +1,22 @@ +// $Id$ +// +// SuperTux +// Copyright (C) 2006 Matthias Braun +// +// 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, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + #ifndef __ANCHOR_POINT_HPP__ #define __ANCHOR_POINT_HPP__ @@ -14,7 +33,7 @@ enum AnchorPoint { ANCHOR_LEFT = 0x0001, ANCHOR_RIGHT = 0x0002, ANCHOR_MIDDLE = 0x0000, - + ANCHOR_TOP_LEFT = ANCHOR_TOP | ANCHOR_LEFT, ANCHOR_TOP_RIGHT = ANCHOR_TOP | ANCHOR_RIGHT, ANCHOR_BOTTOM_LEFT = ANCHOR_BOTTOM | ANCHOR_LEFT, @@ -28,4 +47,3 @@ Vector get_anchor_pos(const Rect& destrect, float width, float height, AnchorPoint point); #endif -