summaryrefslogtreecommitdiff
path: root/dw/ui.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-03-14 21:16:35 +0100
committerSebastian Geerken <devnull@localhost>2014-03-14 21:16:35 +0100
commit96a0181e59a9555c4953d59432e986cf23ea8bfc (patch)
tree3d9eaf3f57167d7760f9d08e4f318cb673d4c3a3 /dw/ui.cc
parent3b62d68aeed5aed4cce19c22ab03e6337c07c438 (diff)
And more RTFL.
Diffstat (limited to 'dw/ui.cc')
-rw-r--r--dw/ui.cc30
1 files changed, 30 insertions, 0 deletions
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, "<b>setWidth</b> (%d)", width);
+ DBG_OBJ_MSG_START ();
+
resource->setWidth (width);
+
+ DBG_OBJ_MSG_END ();
}
void Embed::setAscent (int ascent)
{
+ DBG_OBJ_MSGF ("resize", 0, "<b>setAscent</b> (%d)", ascent);
+ DBG_OBJ_MSG_START ();
+
resource->setAscent (ascent);
+
+ DBG_OBJ_MSG_END ();
}
void Embed::setDescent (int descent)
{
+ DBG_OBJ_MSGF ("resize", 0, "<b>setDescent</b> (%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, "<b>setWidth</b> (%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, "<b>setAscent</b> (%d)", ascent);
+ DBG_OBJ_MSG_START ();
+
childWidget->setAscent (ascent - reliefYThickness ());
+
+ DBG_OBJ_MSG_END ();
}
void ComplexButtonResource::setDescent (int descent)
{
+ DBG_OBJ_MSGF ("resize", 0, "<b>setDescent</b> (%d)", descent);
+ DBG_OBJ_MSG_START ();
+
childWidget->setDescent (descent - reliefYThickness ());
+
+ DBG_OBJ_MSG_END ();
}
Iterator *ComplexButtonResource::iterator (Content::Type mask, bool atEnd)