📄 borderlayout.hpp
字号:
/// @file BorderLayout.hpp Class to create frame within a frame, with a border or margin. (declarations).//============================================================================//// This file is part of GPSTk, the GPS Toolkit.//// The GPSTk is free software; you can redistribute it and/or modify// it under the terms of the GNU Lesser General Public License as published// by the Free Software Foundation; either version 2.1 of the License, or// any later version.//// The GPSTk is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the// GNU Lesser General Public License for more details.//// You should have received a copy of the GNU Lesser General Public// License along with GPSTk; if not, write to the Free Software Foundation,// Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA// // Copyright 2004, The University of Texas at Austin////============================================================================#ifndef VPLOT_BORDERLAYOUT_H#define VPLOT_BORDERLAYOUT_H#include <vector>#include "GraphicsConstants.hpp"#include "Frame.hpp"#include "Layout.hpp"namespace vplot{ /** \addtogroup BasicVectorGraphics */ //@{ /** * Assists in arranging a new frame within a given one, with a margin. */ class BorderLayout : public Layout { public: /** * Constructor. * @param frame Outer frame. * @param marginSize Length in points between inner and outer frames */ BorderLayout(const Frame& frame, double marginSize ); /** * Constructor. * @param frame Outer frame. * @param xMarginSize Border size between left and right parts of inner and outer frames * @param yMarginSize Border size between upper and lower parts of inner and outer frames */ BorderLayout(const Frame& frame, double xMarginSize, double yMarginSize ); virtual int getFrameCount(void) {return (1);} virtual Frame getFrame(int fnum) {return targetList[0];} protected: /// List containing the frames created in this layout. std::vector<Frame> targetList; }; //@}} // namespace vplot#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -