summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.h
blob: 5e7c3f2cf1598e923ea4a43458432f1dde033e7e (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       (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 */