summaryrefslogtreecommitdiffstats
path: root/tksao/util/attribute.h
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2020-03-24 19:22:11 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2020-03-24 19:22:11 (GMT)
commit46212c877b533ef1d48bd68f93c41f3940319f88 (patch)
tree3d5e19d4cee1ad271af9fd22d1fd79fdb1daa09b /tksao/util/attribute.h
parent514ce4d8396c8520c5da9df8dd931ca96292726a (diff)
downloadblt-46212c877b533ef1d48bd68f93c41f3940319f88.zip
blt-46212c877b533ef1d48bd68f93c41f3940319f88.tar.gz
blt-46212c877b533ef1d48bd68f93c41f3940319f88.tar.bz2
libutil
Diffstat (limited to 'tksao/util/attribute.h')
-rw-r--r--tksao/util/attribute.h62
1 files changed, 0 insertions, 62 deletions
diff --git a/tksao/util/attribute.h b/tksao/util/attribute.h
deleted file mode 100644
index 72e2904..0000000
--- a/tksao/util/attribute.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (C) 1999-2018
-// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
-// For conditions of distribution and use, see copyright notice in "copyright"
-
-#ifndef __attribute_h__
-#define __attribute_h__
-
-#include <tk.h>
-
-#include "vector.h"
-
-class Widget;
-
-class Attribute {
- public:
- enum Style {SOLID,DASH};
- enum Colour {BLACK,WHITE,RED,GREEN,BLUE,CYAN,MAGENTA,YELLOW};
-
- private:
- Widget* parent;
-
- Style style_;
- float width_;
-
- int font_;
- int size_;
- Tk_Font tkfont_;
- Tk_Font psfont_;
-
- unsigned long colour_;
- char* colorName_;
- unsigned long color_;
-
- private:
- void initFonts();
-
- public:
- Attribute(Widget*);
- ~Attribute();
-
- void setStyle(double);
- void setWidth(double);
-
- void setSize(double);
- void setFont(double);
-
- void setColour(double);
-
- Style style() {return style_;}
- float width() {return width_;}
-
- int size() {return size_;}
- int font() {return font_;}
- Tk_Font tkfont() {return tkfont_;}
- Tk_Font psfont() {return psfont_;}
-
- unsigned long colour() {return colour_;}
- char* colorName() {return colorName_;}
- unsigned long color() {return color_;}
-};
-
-#endif