X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstack.h;fp=source%2Fstack.h;h=fa4a44206d87668d0ce5fd5b05a162e64f9a2d4c;hb=d34a75fa019d37c4ea748e93c276a6f24b941b1c;hp=0000000000000000000000000000000000000000;hpb=72db2a8d41cc0eb8404572d1a720d59fab0551cd;p=libs%2Fgltk.git diff --git a/source/stack.h b/source/stack.h new file mode 100644 index 0000000..fa4a442 --- /dev/null +++ b/source/stack.h @@ -0,0 +1,34 @@ +#ifndef MSP_GLTK_STACK_H_ +#define MSP_GLTK_STACK_H_ + +#include +#include "arrangement.h" + +namespace Msp { +namespace GLtk { + +/** +Arranges widgets on top of one another. This can be useful in implementing a +tabbed view where only one tab is visible at a time. +*/ +class Stack: public Arrangement +{ +public: + class Loader: public DataFile::ObjectLoader + { + public: + Loader(Stack &); + }; + + Stack(Layout &); + +private: + virtual void process_widget(Widget &, Side, bool); + virtual void finish_widget(Widget &); + virtual void finish_slot() { } +}; + +} // namespace GLtk +} // namespace Msp + +#endif