319 pit->
height = (height_px * 8 + 3) / 6;
339 switch (entry->
type) {
414 lwc_string_data(pi->
domain) :
"<No domain>";
424 }
else if ((
unsigned) printed >=
sizeof(pi->
cookie_text)) {
505 switch (entry->
type) {
508 if (max_x < entry->
u.text.width) {
520 if (max_x < full_width) {
544 pi = calloc(1,
sizeof(*pi));
573 lwc_string_unref(pi->
domain);
584 if (pgi->
domain != NULL) {
585 lwc_string_unref(pgi->
domain);
611 int baseline = (pit->
height * 3 + 2) / 4;
658 switch (entry->
type) {
738 *did_something =
true;
742 *did_something =
true;
766 bool hovering =
false;
773 switch (entry->
type) {
784 if (y >= cur_y && y < cur_y +
height) {
787 pi, mouse, i, did_something);
Browser window creation and manipulation interface.
nserror browser_window_show_certificates(struct browser_window *bw)
Show the certificate page for the current page.
nserror browser_window_show_cookies(const struct browser_window *bw)
Open cookie viewer for the current page.
struct nsurl * browser_window_access_url(const struct browser_window *bw)
Access a browser window's URL.
browser_window_page_info_state
Browser window page information states.
@ PAGE_STATE_INSECURE
Insecure page load.
@ PAGE_STATE_UNKNOWN
Unable to determine.
@ PAGE_STATE_SECURE_ISSUES
Secure load, but has insecure elements.
@ PAGE_STATE__COUNT
Count of number of valid page states.
@ PAGE_STATE_SECURE
Secure load.
@ PAGE_STATE_SECURE_OVERRIDE
Secure load, but had to override.
@ PAGE_STATE_LOCAL
Page loaded from file:/// etc.
@ PAGE_STATE_INTERNAL
Page loaded from internal handler.
int browser_window_get_cookie_count(const struct browser_window *bw)
Get the number of cookies in use for the current page.
browser_window_page_info_state browser_window_get_page_info_state(const struct browser_window *bw)
Request the current browser window page info state.
Interface to core window handling.
css_fixed nscss_screen_dpi
Screen DPI in fixed point units: defaults to 90, which RISC OS uses.
nserror
Enumeration of error codes.
@ NSERROR_NOSPACE
Insufficient space.
@ NSERROR_UNKNOWN
Unknown error - DO NOT USE.
@ NSERROR_NOMEM
Memory exhaustion.
struct netsurf_table * guit
The global interface table.
Interface to core interface table.
Interface to platform-specific layout operation table.
Core mouse and pointer states.
browser_mouse_state
Mouse state: 1 is primary mouse button.
@ BROWSER_MOUSE_CLICK_1
button 1 clicked.
Target independent plotting interface.
Interface to key press operations.
bool knockout_plot_end(const struct redraw_context *ctx)
End a knockout plotting session.
bool knockout_plot_start(const struct redraw_context *ctx, struct redraw_context *knk_ctx)
Start a knockout plotting session.
Knockout rendering (interface).
colour nscolours[NSCOLOUR__COUNT]
NetSurf UI colour table.
NetSurf UI colours (interface).
@ NSCOLOUR_WIN_EVEN_BG_HOVER
@ NSCOLOUR_WIN_EVEN_FG_BAD
@ NSCOLOUR_WIN_EVEN_FG_FADED
@ NSCOLOUR_WIN_EVEN_FG_GOOD
NetSurf URL handling (interface).
enum nsurl_scheme_type nsurl_get_scheme_type(const nsurl *url)
Get the scheme type from a NetSurf URL object.
lwc_string * nsurl_get_component(const nsurl *url, nsurl_component part)
Get part of a URL as a lwc_string, from a NetSurf URL object.
struct nsurl nsurl
NetSurf URL object.
nsurl_scheme_type
A type for URL schemes.
nserror page_info_get_size(struct page_info *pi, int *width, int *height)
Get size of page info content area.
static nserror page_info__layout(struct page_info *pi)
Lay out the page info window.
nserror page_info_destroy(struct page_info *pi)
Destroy a page info corewindow.
static plot_font_style_t pi__domain
Plot style for domain font.
static nserror page_info__measure_text(struct page_info *pi)
Measure the text in the page_info window.
nserror page_info_fini(void)
Finalise the page_info module.
nserror page_info_redraw(const struct page_info *pi, int x, int y, const struct rect *clip, const struct redraw_context *ctx)
Redraw the page info window.
static plot_style_t pi__hover
Plot style for hover background.
nserror page_info_create(struct core_window *cw_h, struct browser_window *bw, struct page_info **pi_out)
Create a page info corewindow.
static nserror page_info__redraw_text_entry(const struct page_info_text *pit, int x, int y, const struct redraw_context *ctx)
Render a text entry.
static plot_font_style_t pi__item
Plot style for item font.
nserror page_info_init(void)
Initialise the page_info module.
bool page_info_keypress(struct page_info *pi, int32_t key)
Key press handling.
static nserror page_info__create_from_bw(struct page_info *pi, struct browser_window *bw)
Create page info from a browser window.
struct page_info_entry pi__entries[PI_ENTRY__COUNT]
The default page info window data.
static bool page_info__hide_entry(enum pi_entry entry, enum nsurl_scheme_type scheme)
Check whether an entry is relevant.
static plot_font_style_t pi__heading[PAGE_STATE__COUNT]
Plot style for heading font.
nserror page_info_set(struct page_info *pgi, struct browser_window *bw)
change the browser window the page information refers to
static nserror page_info__measure_text_entry(struct page_info_text *pit)
Measure the text in the page_info window.
pi_entry
List of page info window entries.
static plot_font_style_t pi__item_detail
Plot style for item detail font.
static nserror page_info__handle_item_click(struct page_info *pi, enum browser_mouse_state mouse, enum pi_entry clicked, bool *did_something)
Handle any clicks on an item.
static nserror page_info__set_text(struct page_info *pi)
Set the text for the page_info window.
nserror page_info_mouse_action(struct page_info *pi, enum browser_mouse_state mouse, int x, int y, bool *did_something)
Mouse action handling.
static plot_style_t pi__bg
Plot style for window background.
Pave info viewer window interface.
@ PLOT_OP_TYPE_SOLID
Solid colour.
@ PLOT_FONT_FAMILY_SANS_SERIF
#define PLOT_STYLE_SCALE
Scaling factor for plot styles.
Interface to utility string handling.
nserror(* set_extent)(struct core_window *cw, int width, int height)
Update the logical extent of the window.
nserror(* get_dimensions)(const struct core_window *cw, int *width, int *height)
Get window viewport dimensions.
nserror(* invalidate)(struct core_window *cw, const struct rect *rect)
Invalidate an area of a window.
nserror(* width)(const struct plot_font_style *fstyle, const char *string, size_t length, int *width)
Measure the width of a string.
struct core_window_table * corewindow
Core window table.
struct gui_layout_table * layout
Layout table.
An entry on a page info window.
enum page_info_entry::page_info_entry_type type
union page_info_entry::@74 u
Type-specific page info entry data.
struct page_info_item item
page_info_entry_type
List of page info entry types.
@ PAGE_INFO_ENTRY_TYPE_ITEM
@ PAGE_INFO_ENTRY_TYPE_TEXT
struct page_info_text text
An "item" type page info entry.
struct page_info_text detail
const plot_style_t * hover_bg
struct page_info_text item
An "text" type page info entry.
const plot_font_style_t * style
The page info window structure.
enum nsurl_scheme_type scheme
struct browser_window * bw
struct core_window * cw_h
browser_window_page_info_state state
struct page_info_entry entries[PI_ENTRY__COUNT]
plot_font_generic_family_t family
Generic family to plot with.
colour foreground
Colour of text.
plot_style_fixed size
Font size, in pt.
colour background
Background colour to blend to, if appropriate.
Plot style for stroke/fill plotters.
colour fill_colour
Colour of fill.
plot_operation_type_t fill_type
Fill plot type.
bool option_knockout
flag to enable knockout rendering.
nserror(* text)(const struct redraw_context *ctx, const plot_font_style_t *fstyle, int x, int y, const char *text, size_t length)
Text plotting.
nserror(* rectangle)(const struct redraw_context *ctx, const plot_style_t *pstyle, const struct rect *rectangle)
Plots a rectangle.
nserror(* clip)(const struct redraw_context *ctx, const struct rect *clip)
Sets a clip rectangle for subsequent plot operations.
const struct plotter_table * plot
Current plot operation table.
Interface to system colour values.
static nserror clip(const struct redraw_context *ctx, const struct rect *clip)
Sets a clip rectangle for subsequent plot operations.