X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fpart.h;h=b4ada58e96bdcc8862b3b76495cdcf231fedbd32;hb=39cf4c8d917dc60c087fb4af6885bfa78f6fba34;hp=edc8f77a5b84230d883d277f5bf29c2e77fe6ef9;hpb=8f6f543758fb1b2b17ae2db519198d420eb9982d;p=libs%2Fgltk.git diff --git a/source/part.h b/source/part.h index edc8f77..b4ada58 100644 --- a/source/part.h +++ b/source/part.h @@ -1,17 +1,8 @@ -/* $Id$ - -This file is part of libmspgltk -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_GLTK_PART_H_ #define MSP_GLTK_PART_H_ -#include #include -#include -//#include "alignment.h" +#include #include "geometry.h" #include "state.h" @@ -27,12 +18,8 @@ Defines a single graphical element of a widget style. class Part { public: - class Loader: public DataFile::Loader + class Loader: public DataFile::CollectionObjectLoader { - private: - Part ∂ - Resources &res; - public: Loader(Part &, Resources &); ~Loader(); @@ -41,6 +28,7 @@ public: void align(float, float); void fill(float, float); void margin(); + void size(unsigned, unsigned); }; private: @@ -59,7 +47,6 @@ public: const Alignment &get_alignment() const { return align; } void render(const Geometry &, State) const; }; -typedef std::list PartSeq; } // namespace GLtk } // namespace Msp