1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-25 01:05:37 +00:00
elinks/src/document/html/frames.h
Witold Filipczyk 0fea79cc8f [cflags] Removed -Wno-pointer-sign
Likely some new bugs were introduced by this change.
The long term goal is clean compilation by g++.
2021-01-02 16:20:27 +01:00

60 lines
1.2 KiB
C

#ifndef EL__DOCUMENT_HTML_FRAMES_H
#define EL__DOCUMENT_HTML_FRAMES_H
#include "util/box.h"
#ifdef __cplusplus
extern "C" {
#endif
struct document_options;
struct session;
struct uri;
struct frameset_desc;
struct frame_desc {
struct frameset_desc *subframe;
char *name;
struct uri *uri;
int width, height;
};
struct frameset_desc {
int n;
/* This is an *EXOTIC* box. It doesn't say anything about the physical
* dimensions, rather about the frame_desc contents. */
struct el_box box;
struct frame_desc frame_desc[1]; /* must be last of struct. --Zas */
};
struct frameset_param {
struct frameset_desc *parent;
/* This x, y is a number of items in the appropriate arrays below. */
int x, y;
int *width, *height;
};
struct frameset_desc *create_frameset(struct frameset_param *fp);
/* Adds a frame to the @parent frameset. @subframe may be NULL. */
void
add_frameset_entry(struct frameset_desc *parent,
struct frameset_desc *subframe,
char *name, char *url);
void format_frames(struct session *ses, struct frameset_desc *fsd, struct document_options *op, int depth);
void parse_frame_widths(char *str, int max_value, int pixels_per_char,
int **new_values, int *new_values_count);
#ifdef __cplusplus
}
#endif
#endif