1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
/*
Simple GUI & Network demo application,
Copyright (c) 2000 by Magnus Norddahl and Kenneth Gangstoe.
*/
#include "chat_view.h"
#include "chat_component.h"
#include "userlist_component.h"
#include <ClanLib/display.h>
#include <ClanLib/gui.h>
/////////////////////////////////////////////////////////////////////////////
// Construction:
ChatView::ChatView(MainFrame *parent)
: View(parent)
{
// Connect events to signals:
slots.connect(sig_paint(), this, &ChatView::on_paint);
chat = new ChatComponent(this);
userlist = new UserListComponent(this);
chat->set_size(get_width() - 100, get_height());
userlist->set_size(100, get_height());
userlist->set_position(get_width() - 100, 0);
set_title("Chat");
}
ChatView::~ChatView()
{
}
/////////////////////////////////////////////////////////////////////////////
// Attributes:
/////////////////////////////////////////////////////////////////////////////
// Operations:
/////////////////////////////////////////////////////////////////////////////
// Events:
void ChatView::on_paint()
{
// CL_Display::fill_rect(0, 0, get_width(), get_height(), 0.0f, 1.0f, 0.0f);
}
|