From 96a0181e59a9555c4953d59432e986cf23ea8bfc Mon Sep 17 00:00:00 2001 From: Sebastian Geerken Date: Fri, 14 Mar 2014 21:16:35 +0100 Subject: And more RTFL. --- dw/ui.cc | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'dw/ui.cc') diff --git a/dw/ui.cc b/dw/ui.cc index 1ee836ca..75314342 100644 --- a/dw/ui.cc +++ b/dw/ui.cc @@ -90,17 +90,32 @@ bool Embed::buttonPressImpl (core::EventButton *event) void Embed::setWidth (int width) { + DBG_OBJ_MSGF ("resize", 0, "setWidth (%d)", width); + DBG_OBJ_MSG_START (); + resource->setWidth (width); + + DBG_OBJ_MSG_END (); } void Embed::setAscent (int ascent) { + DBG_OBJ_MSGF ("resize", 0, "setAscent (%d)", ascent); + DBG_OBJ_MSG_START (); + resource->setAscent (ascent); + + DBG_OBJ_MSG_END (); } void Embed::setDescent (int descent) { + DBG_OBJ_MSGF ("resize", 0, "setDescent (%d)", descent); + DBG_OBJ_MSG_START (); + resource->setDescent (descent); + + DBG_OBJ_MSG_END (); } void Embed::setDisplayed (bool displayed) @@ -353,17 +368,32 @@ void ComplexButtonResource::sizeAllocate (Allocation *allocation) void ComplexButtonResource::setWidth (int width) { + DBG_OBJ_MSGF ("resize", 0, "setWidth (%d)", width); + DBG_OBJ_MSG_START (); + childWidget->setWidth (width - 2 * reliefXThickness ()); + + DBG_OBJ_MSG_END (); } void ComplexButtonResource::setAscent (int ascent) { + DBG_OBJ_MSGF ("resize", 0, "setAscent (%d)", ascent); + DBG_OBJ_MSG_START (); + childWidget->setAscent (ascent - reliefYThickness ()); + + DBG_OBJ_MSG_END (); } void ComplexButtonResource::setDescent (int descent) { + DBG_OBJ_MSGF ("resize", 0, "setDescent (%d)", descent); + DBG_OBJ_MSG_START (); + childWidget->setDescent (descent - reliefYThickness ()); + + DBG_OBJ_MSG_END (); } Iterator *ComplexButtonResource::iterator (Content::Type mask, bool atEnd) -- cgit v1.2.3