X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpart.h;h=5fe07a4f07d17aa96e121c4eeec1cbabb76b035d;hb=033732b500a35f3737bad515349d884cb3f123f0;hp=edc8f77a5b84230d883d277f5bf29c2e77fe6ef9;hpb=8f6f543758fb1b2b17ae2db519198d420eb9982d;p=libs%2Fgltk.git diff --git a/source/part.h b/source/part.h index edc8f77..5fe07a4 100644 --- a/source/part.h +++ b/source/part.h @@ -8,10 +8,8 @@ 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 +25,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 +35,7 @@ public: void align(float, float); void fill(float, float); void margin(); + void size(unsigned, unsigned); }; private: @@ -59,7 +54,6 @@ public: const Alignment &get_alignment() const { return align; } void render(const Geometry &, State) const; }; -typedef std::list PartSeq; } // namespace GLtk } // namespace Msp