Fix css style order when using external css files
[ryzomcore.git] / ryzom / client / src / interface_v3 / view_bitmap_progress.h
blob4da413337b3f81c55e3f99ff6ddbfa5ac7b7726c
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef RZ_DBVIEW_BAR_H
20 #define RZ_DBVIEW_BAR_H
22 #include "nel/misc/types_nl.h"
23 #include "view_bitmap.h"
25 /**
26 * class implementing a bitmap used as the front texture of a progress bar
27 * the bitmap is drawn from _X to _W * _Range/_RangeMax
28 * \author Nicolas Brigand
29 * \author Nevrax France
30 * \date 2002
32 class CDBViewBar : CViewBitmap
34 public:
36 /// Constructor
37 CDBViewBar(const TCtorParam &param)
38 : CViewBitmap(param),
39 _Slot(TCtorParam()),
40 _Bar(TCtorParam())
43 bool parse(xmlNodePtr cur,CInterfaceGroup * parentGroup);
44 virtual uint32 getMemory() { return sizeof(*this)+_Id.size(); }
46 virtual void draw ();
48 protected:
50 CViewBitmap _Slot;
51 CViewBitmap _Bar;
53 //range of the progression in arbitrary units. should be integer
54 CInterfaceProperty _Range;
55 //max range of the progression in arbitrary units. should be integer
56 CInterfaceProperty _RangeMax;
58 CInterfaceProperty _Vertical;
63 #endif // RZ_DBVIEW_BAR_H
65 /* End of dbview_bar.h */