summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.h
blob: 85b9a710393c46dcaf2c5bd705f41f5ff52e333b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include "widget.h"

iDeclareType(History)

iDeclareWidgetClass(DocumentWidget)
iDeclareObjectConstruction(DocumentWidget)

iDocumentWidget *duplicate_DocumentWidget       (const iDocumentWidget *);
iHistory *      history_DocumentWidget          (iDocumentWidget *);

const iString * url_DocumentWidget              (const iDocumentWidget *);
iBool           isRequestOngoing_DocumentWidget (const iDocumentWidget *);

void    setUrl_DocumentWidget           (iDocumentWidget *, const iString *url);
void    setUrlFromCache_DocumentWidget  (iDocumentWidget *d, const iString *url, iBool isFromCache);
void    setInitialScroll_DocumentWidget (iDocumentWidget *, int scrollY); /* set after content received */