1 /* 2 * Copyright 2006 - 2010, Haiku, Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef X_TAB_H 6 #define X_TAB_H 7 8 9 #include <Referenceable.h> 10 #include "LinearSpec.h" 11 #include "Variable.h" 12 13 14 namespace BALM { 15 16 17 class BALMLayout; 18 19 20 /** 21 * Vertical grid line (x-tab). 22 */ 23 class XTab : public Variable, public BReferenceable { 24 public: 25 virtual ~XTab(); 26 27 friend class BALMLayout; 28 29 protected: 30 XTab(BALMLayout* layout); 31 32 private: 33 BALMLayout* fALMLayout; 34 }; 35 36 37 class YTab : public Variable, public BReferenceable { 38 public: 39 virtual ~YTab(); 40 41 friend class BALMLayout; 42 43 protected: 44 YTab(BALMLayout* layout); 45 46 private: 47 BALMLayout* fALMLayout; 48 }; 49 50 51 } // namespace BALM 52 53 54 using BALM::XTab; 55 using BALM::YTab; 56 57 typedef BObjectList<XTab> XTabList; 58 typedef BObjectList<YTab> YTabList; 59 60 61 #endif // X_TAB_H 62