NetSurf
Data Fields
fb_corewindow Struct Reference

fb core window state More...

#include <corewindow.h>

Collaboration diagram for fb_corewindow:
[legend]

Data Fields

struct fbtk_widget_swnd
 framebuffer toolkit window. More...
 
struct fbtk_widget_shscroll
 framebuffer toolkit horizontal scrollbar. More...
 
struct fbtk_widget_svscroll
 framebuffer toolkit vertical scrollbar. More...
 
struct fbtk_widget_sdrawable
 framebuffer toolkit user drawable widget. More...
 
int scrollx
 
int scrolly
 scroll offsets. More...
 
core_window_drag_status drag_status
 drag status set by core More...
 
nserror(* draw )(struct fb_corewindow *fb_cw, struct rect *r)
 callback to draw on drawable area of fb core window More...
 
nserror(* key )(struct fb_corewindow *fb_cw, uint32_t nskey)
 callback for keypress on fb core window More...
 
nserror(* mouse )(struct fb_corewindow *fb_cw, browser_mouse_state mouse_state, int x, int y)
 callback for mouse event on fb core window More...
 

Detailed Description

fb core window state

Definition at line 29 of file corewindow.h.

Field Documentation

◆ drag_status

core_window_drag_status fb_corewindow::drag_status

drag status set by core

Definition at line 52 of file corewindow.h.

Referenced by fb_corewindow_init(), and fb_cw_drag_status().

◆ draw

nserror(* fb_corewindow::draw) (struct fb_corewindow *fb_cw, struct rect *r)

callback to draw on drawable area of fb core window

Parameters
fb_cwThe fb core window structure.
rThe rectangle of the window that needs updating.
Returns
NSERROR_OK on success otherwise apropriate error code

Definition at line 61 of file corewindow.h.

Referenced by fb_cw_draw_event(), and fb_local_history_init().

◆ drawable

struct fbtk_widget_s* fb_corewindow::drawable

framebuffer toolkit user drawable widget.

Definition at line 46 of file corewindow.h.

Referenced by fb_corewindow_init(), and fb_cw_get_window_dimensions().

◆ hscroll

struct fbtk_widget_s* fb_corewindow::hscroll

framebuffer toolkit horizontal scrollbar.

Definition at line 38 of file corewindow.h.

Referenced by fb_corewindow_init().

◆ key

nserror(* fb_corewindow::key) (struct fb_corewindow *fb_cw, uint32_t nskey)

callback for keypress on fb core window

Parameters
fb_cwThe fb core window structure.
nskeyThe netsurf key code.
Returns
NSERROR_OK if key processed, NSERROR_NOT_IMPLEMENTED if key not processed otherwise apropriate error code

Definition at line 72 of file corewindow.h.

Referenced by fb_local_history_init().

◆ mouse

nserror(* fb_corewindow::mouse) (struct fb_corewindow *fb_cw, browser_mouse_state mouse_state, int x, int y)

callback for mouse event on fb core window

Parameters
fb_cwThe fb core window structure.
mouse_statemouse state
xlocation of event
ylocation of event
Returns
NSERROR_OK on sucess otherwise apropriate error code.

Definition at line 83 of file corewindow.h.

Referenced by fb_cw_mouse_press_event(), and fb_local_history_init().

◆ scrollx

int fb_corewindow::scrollx

Definition at line 48 of file corewindow.h.

Referenced by fb_cw_draw_event().

◆ scrolly

int fb_corewindow::scrolly

scroll offsets.

Definition at line 48 of file corewindow.h.

Referenced by fb_cw_draw_event().

◆ vscroll

struct fbtk_widget_s* fb_corewindow::vscroll

framebuffer toolkit vertical scrollbar.

Definition at line 42 of file corewindow.h.

Referenced by fb_corewindow_init().

◆ wnd

struct fbtk_widget_s* fb_corewindow::wnd

framebuffer toolkit window.

Definition at line 34 of file corewindow.h.

Referenced by fb_corewindow_init(), fb_local_history_hide(), fb_local_history_mouse(), and fb_local_history_present().


The documentation for this struct was generated from the following file: