00001 // This is core/vgui/internals/vgui_adaptor_mixin.h 00002 #ifndef vgui_adaptor_mixin_h_ 00003 #define vgui_adaptor_mixin_h_ 00004 //: 00005 // \file 00006 // \author fsm 00007 // \brief Holds the dimensions of the adaptor and the event causing popup menus. 00008 // 00009 // \verbatim 00010 // Modifications 00011 // 10 Sep. 2004 Peter Vanroose Inlined all 1-line methods in class decl 00012 // \endverbatim 00013 00014 #include <vgui/vgui_button.h> 00015 #include <vgui/vgui_modifier.h> 00016 00017 //: Holds the dimensions of the adaptor and the event causing popup menus. 00018 class vgui_adaptor_mixin 00019 { 00020 public: 00021 vgui_adaptor_mixin() : width(0), height(0), 00022 popup_button(vgui_RIGHT), 00023 popup_modifier(vgui_MODIFIER_NULL) {} 00024 ~vgui_adaptor_mixin() {} 00025 00026 //: Cached width of adaptor render area. 00027 unsigned width; 00028 //: Cached height of adaptor render area. 00029 unsigned height; 00030 00031 // These specify the event that causes the popup menu to appear 00032 00033 //: Mouse button (used with popup_modifier) which causes the popup menu to appear. 00034 vgui_button popup_button; 00035 //: Modifier (used with popup_button) which causes the popup menu to appear. 00036 vgui_modifier popup_modifier; 00037 }; 00038 00039 #endif // vgui_adaptor_mixin_h_