view src/nav.h @ 1494:9225a90ad7dd

make Doctree a non-virtual class Doctree now is a proper class with it's own implementation. StyleEngine no longer needs to provide the Doctree interface itself. This hopefully make the code easier to understand and should also be a bit faster as no virtual methods are involved.
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Thu, 07 Jan 2010 16:23:05 +0100
parents 7322cd940c51
children f275bd2cdeed
line wrap: on
line source
#ifndef __NAV_H__
#define __NAV_H__

#include "bw.h"

/*
 * useful macros for the navigation stack
 */
#define NAV_UIDX(bw, i)       a_Nav_get_uidx(bw, i)
#define NAV_TOP_UIDX(bw)      a_Nav_get_top_uidx(bw)

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

void a_Nav_redirection0(BrowserWindow *bw, const DilloUrl *new_url);
void a_Nav_push(BrowserWindow *bw, const DilloUrl *url);
void a_Nav_repush(BrowserWindow *bw);
void a_Nav_back(BrowserWindow *bw);
void a_Nav_forw(BrowserWindow *bw);
void a_Nav_home(BrowserWindow *bw);
void a_Nav_reload(BrowserWindow *bw);
void a_Nav_jump(BrowserWindow *bw, int offset, int new_bw);
void a_Nav_free(BrowserWindow *bw);
void a_Nav_cancel_expect (BrowserWindow *bw);
void a_Nav_cancel_expect_if_eq(BrowserWindow *bw, const DilloUrl *url);
void a_Nav_expect_done(BrowserWindow *bw);
int a_Nav_stack_ptr(BrowserWindow *bw);
int a_Nav_stack_size(BrowserWindow *bw);
int a_Nav_get_uidx(BrowserWindow *bw, int i);
int a_Nav_get_top_uidx(BrowserWindow *bw);

void a_Nav_save_url(BrowserWindow *bw,
                    const DilloUrl *url, const char *filename);
int a_Nav_get_buf(const DilloUrl *Url, char **PBuf, int *BufSize);
void a_Nav_unref_buf(const DilloUrl *Url);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* __NAV_H__ */