From ddc3964ed95d01e72229dc9af968a327cd84e56c Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Fri, 1 Oct 2004 13:21:35 +0000 Subject: - add python, missing gui - remove console (needs to be rewritten anyway) - eString -> std::string --- lib/gui/ewindowstyle.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 lib/gui/ewindowstyle.cpp (limited to 'lib/gui/ewindowstyle.cpp') diff --git a/lib/gui/ewindowstyle.cpp b/lib/gui/ewindowstyle.cpp new file mode 100644 index 00000000..932a3102 --- /dev/null +++ b/lib/gui/ewindowstyle.cpp @@ -0,0 +1,23 @@ +#include +#include +#include +#include + +DEFINE_REF(eWindowStyleSimple); + +eWindowStyleSimple::eWindowStyleSimple() +{ + m_border_left = m_border_right = m_border_top = m_border_bottom = 10; +} + +void eWindowStyleSimple::handleNewSize(eWindow *wnd, const eSize &size) +{ + eDebug("handle new size: %d x %d", size.width(), size.height()); + + eWidget *child = wnd->child(); + + wnd->m_clip_region = eRect(ePoint(0, 0), size); + + child->move(ePoint(m_border_left, m_border_top)); + child->resize(eSize(size.width() - m_border_left - m_border_right, size.height() - m_border_top - m_border_bottom)); +} -- cgit v1.2.3