src/widget/widget_resizebox.cpp
branchcpp_gui
changeset 6281 2ae707873e23
parent 6278 c09f5e53af9b
child 6282 c5b92f2d924f
equal deleted inserted replaced
6280:57f6156a327d 6281:2ae707873e23
    20 
    20 
    21 namespace gui {
    21 namespace gui {
    22 
    22 
    23 /*virtual*/ void ResizeBox::DrawBackground(EvtPaint &ev)
    23 /*virtual*/ void ResizeBox::DrawBackground(EvtPaint &ev)
    24 {
    24 {
    25 	bool sizing = false;
    25 	bool sizing = m_ticket_sizing.IsActive();
    26 	DrawFrameRect(Left(), Top(), Right(), Bottom(), m_color, sizing ? FR_LOWERED : FR_NONE);
    26 	DrawFrameRect(Left(), Top(), Right(), Bottom(), m_color, sizing ? FR_LOWERED : FR_NONE);
    27 }
    27 }
    28 
    28 
    29 void ResizeBox::OnCaptureSizing(EvtMouseOver &e)
    29 void ResizeBox::OnCaptureSizing(EvtMouseOver &e)
    30 {
    30 {
    57 /*virtual*/ void ResizeBox::OnPaint(EvtPaint &ev)
    57 /*virtual*/ void ResizeBox::OnPaint(EvtPaint &ev)
    58 {
    58 {
    59 	assert(Size() == Point16(11, 11));
    59 	assert(Size() == Point16(11, 11));
    60 
    60 
    61 	DrawBackground(ev);
    61 	DrawBackground(ev);
    62 	bool sizing = false;
    62 	bool sizing = m_ticket_sizing.IsActive();
    63 	DrawSprite(SPR_WINDOW_RESIZE, PAL_NONE, Left() + 3 + sizing, Top() + 3 + sizing);
    63 	DrawSprite(SPR_WINDOW_RESIZE, PAL_NONE, Left() + 3 + sizing, Top() + 3 + sizing);
    64 	ev.SetHandled();
    64 	ev.SetHandled();
    65 }
    65 }
    66 
    66 
    67 /*virtual*/ void ResizeBox::OnLeftClick(EvtClick &ev)
    67 /*virtual*/ void ResizeBox::OnLeftClick(EvtClick &ev)