]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/part.h
Refactor filling from Part to Alignment
[libs/gltk.git] / source / part.h
index a94f29db87421d5fdff157cbae4462f89884f1d6..edc8f77a5b84230d883d277f5bf29c2e77fe6ef9 100644 (file)
@@ -39,7 +39,7 @@ public:
        private:
                void graphic(State, const std::string &);
                void align(float, float);
-               void fill(bool, bool);
+               void fill(float, float);
                void margin();
        };
 
@@ -49,8 +49,6 @@ private:
        Geometry geom;
        Sides margin;
        Alignment align;
-       bool fill_x;
-       bool fill_y;
 
 public:
        Part(const std::string &);
@@ -59,8 +57,6 @@ public:
        const Geometry &get_geometry() const { return geom; }
        const Sides &get_margin() const { return margin; }
        const Alignment &get_alignment() const { return align; }
-       bool get_fill_x() const { return fill_x; }
-       bool get_fill_y() const { return fill_y; }
        void render(const Geometry &, State) const;
 };
 typedef std::list<Part> PartSeq;