1 // 2 // This file is part of libyacurs. 3 // Copyright (C) 2013 Rafael Ostertag 4 // 5 // This program is free software: you can redistribute it and/or 6 // modify it under the terms of the GNU General Public License as 7 // published by the Free Software Foundation, either version 3 of the 8 // License, or (at your option) any later version. 9 // 10 // This program is distributed in the hope that it will be useful, but 11 // WITHOUT ANY WARRANTY; without even the implied warranty of 12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 // General Public License for more details. 14 // 15 // You should have received a copy of the GNU General Public License 16 // along with this program. If not, see 17 // <http://www.gnu.org/licenses/>. 18 // 19 // 20 // $Id$ 21 22 #ifdef HAVE_CONFIG_H 23 #include "config.h" 24 #endif 25 26 #include <cassert> 27 #include <cstdlib> 28 29 #include "spacer.h" 30 #include "yacursex.h" 31 32 using namespace YACURS; 33 34 // 35 // Private 36 // 37 38 // 39 // Protected 40 // 41 42 // 43 // Private 44 // Spacer()45Spacer::Spacer() {} 46 ~Spacer()47Spacer::~Spacer() {} 48 size_change()49bool Spacer::size_change() { return false; } 50 size() const51Size Spacer::size() const { return Size(1, 1); } 52 size_hint() const53Size Spacer::size_hint() const { return Size(1, 1); } 54 reset_hint()55void Spacer::reset_hint() { 56 // Intentionally empty, since reset_size() is intended for 57 // dynamically sized Widgets. 58 } 59 reset_size()60void Spacer::reset_size() { 61 // Intentionally empty, since reset_size() is intended for 62 // dynamically sized Widgets. 63 } 64 can_focus() const65bool Spacer::can_focus() const { return false; } 66 refresh(bool)67void Spacer::refresh(bool) {} 68 resize(const Area &)69void Spacer::resize(const Area&) {} 70 realize()71void Spacer::realize() {} 72