// @(#)MenuItems.h	3.7	7/28/92

#ifndef MenuItems_First

#ifdef __GNUG__
#pragma interface
#endif

#define MenuItems_First

#include "DialogItems.h"
#include "Math.h"

//---- PatternMenuItem ---------------------------------------------------------

class PatternItem : public VObject {
    Ink *ink;
public:
    PatternItem(int id, Ink *p) : (id)
	{ ink= p; }
    void Draw(Rectangle);
    Metric GetMinSize()
	{ return Metric(40, 20); }
};

//---- LineStyleItem ----------------------------------------------------------

class LineStyleItem : public LineItem {
    GrLineCap cap;
    int width;
public:
    LineStyleItem(int id, int w= 1, GrLineCap lc= eDefaultCap) : (TRUE, w, 20, id)
	{ cap= lc; width= w; }
    void Draw(Rectangle);
    Metric GetMinSize()
#ifdef ET25
	{ return Metric(Point(40, Math::Max(15, width+4))); }
#else
	{ return Metric(Point(40, max(15, width+4))); }
#endif
};

#endif MenuItems

