Minor changes in box.cpp and image_view.cpp

This commit is contained in:
David Capello 2012-04-05 23:21:31 -03:00
parent 46bc974d3b
commit f6f6225b1a
3 changed files with 3 additions and 9 deletions

View File

@ -18,10 +18,6 @@
using namespace gfx;
static bool box_msg_proc(JWidget widget, Message* msg);
static void box_request_size(JWidget widget, int *w, int *h);
static void box_set_position(JWidget widget, JRect rect);
Box::Box(int align)
: Widget(JI_BOX)
{
@ -34,7 +30,7 @@ bool Box::onProcessMessage(Message* msg)
switch (msg->type) {
case JM_SETPOS:
box_set_position(&msg->setpos.rect);
layoutBox(&msg->setpos.rect);
return true;
}
@ -111,7 +107,7 @@ void Box::onPaint(PaintEvent& ev)
getTheme()->paintBox(ev);
}
void Box::box_set_position(JRect rect)
void Box::layoutBox(JRect rect)
{
#define FIXUP(x, y, w, h, l, t, r, b) \
{ \

View File

@ -22,7 +22,7 @@ protected:
void onPaint(PaintEvent& ev) OVERRIDE;
private:
void box_set_position(JRect rect);
void layoutBox(JRect rect);
};
class VBox : public Box

View File

@ -16,8 +16,6 @@
#include "gui/system.h"
#include "gui/theme.h"
static bool image_msg_proc(JWidget widget, Message* msg);
ImageView::ImageView(BITMAP* bmp, int align)
: Widget(JI_IMAGE_VIEW)
{