diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2020-03-24 19:22:11 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2020-03-24 19:22:11 (GMT) |
commit | 46212c877b533ef1d48bd68f93c41f3940319f88 (patch) | |
tree | 3d5e19d4cee1ad271af9fd22d1fd79fdb1daa09b /tksao/util/attribute.h | |
parent | 514ce4d8396c8520c5da9df8dd931ca96292726a (diff) | |
download | blt-46212c877b533ef1d48bd68f93c41f3940319f88.zip blt-46212c877b533ef1d48bd68f93c41f3940319f88.tar.gz blt-46212c877b533ef1d48bd68f93c41f3940319f88.tar.bz2 |
libutil
Diffstat (limited to 'tksao/util/attribute.h')
-rw-r--r-- | tksao/util/attribute.h | 62 |
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 |