-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.cpp
More file actions
36 lines (36 loc) · 895 Bytes
/
Copy path.cpp
File metadata and controls
36 lines (36 loc) · 895 Bytes
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
#include<Wt/WApplication>
#include<Wt/WText>
#include<Wt/WContainerWidget>
#include<Wt/WImage>
#include<Wt/WEnvironment>
#include<Wt/WLink>
#include<Wt/WContainerWidget>
using namespace Wt;
class index:public WApplication
{
public:
index(const WEnvironment& env);
private:WText *heading;
WLink *link;
WImage *img;
WContainerWidget *paragraph, *child2;
};
index::index(const WEnvironment& env)
:WApplication(env)
{
setTitle("Amrit Villa");
useStyleSheet("index.css");
heading=new WText("Amrit Villa");
heading->setStyleClass("heading");
img=new WImage(Wlink& "5.jpeg");
paragraph->addWidget(new WText("Welcome to the house of Glories"));
root()->addWidget(new WContainerWidget("Paragraph"));
paragraph->setStyleClass("paragraph");
}
WApplication *createApplication(const WEnvironment& env)
{
return new index(env);
}
int main(int argc, char **argv)
{
return WRun(argc, argv, &createApplication);