NetSurf
Data Fields
nsgtk_corewindow Struct Reference

nsgtk core window state More...

#include <corewindow.h>

Collaboration diagram for nsgtk_corewindow:
[legend]

Data Fields

GtkDrawingArea * drawing_area
 GTK drawable widget. More...
 
GtkScrolledWindow * scrolled
 scrollable area drawing area is within More...
 
GtkIMContext * input_method
 Input method. More...
 
struct core_window_callback_tablecb_table
 table of callbacks for core window operations More...
 
struct nsgtk_corewindow_mouse mouse_state
 mouse state More...
 
core_window_drag_status drag_status
 drag status set by core More...
 
nserror(* draw )(struct nsgtk_corewindow *nsgtk_cw, struct rect *r)
 callback to draw on drawable area of nsgtk core window More...
 
nserror(* key )(struct nsgtk_corewindow *nsgtk_cw, uint32_t nskey)
 callback for keypress on nsgtk core window More...
 
nserror(* mouse )(struct nsgtk_corewindow *nsgtk_cw, browser_mouse_state mouse_state, int x, int y)
 callback for mouse event on nsgtk core window More...
 

Detailed Description

nsgtk core window state

Definition at line 39 of file corewindow.h.

Field Documentation

◆ cb_table

struct core_window_callback_table* nsgtk_corewindow::cb_table

table of callbacks for core window operations

Definition at line 50 of file corewindow.h.

Referenced by gtk_cert_verify(), nsgtk_cookies_init(), nsgtk_corewindow_init(), nsgtk_global_history_init(), nsgtk_hotlist_init(), and nsgtk_local_history_init().

◆ drag_status

core_window_drag_status nsgtk_corewindow::drag_status

drag status set by core

Definition at line 54 of file corewindow.h.

Referenced by nsgtk_corewindow_init(), and nsgtk_cw_drag_status().

◆ draw

nserror(* nsgtk_corewindow::draw) (struct nsgtk_corewindow *nsgtk_cw, struct rect *r)

callback to draw on drawable area of nsgtk core window

Parameters
nsgtk_cwThe nsgtk core window structure.
rThe rectangle of the window that needs updating.
Returns
NSERROR_OK on success otherwise appropriate error code

Definition at line 63 of file corewindow.h.

Referenced by gtk_cert_verify(), nsgtk_cookies_init(), nsgtk_cw_draw_event(), nsgtk_cw_input_method_commit(), nsgtk_global_history_init(), nsgtk_hotlist_init(), and nsgtk_local_history_init().

◆ drawing_area

GtkDrawingArea* nsgtk_corewindow::drawing_area

◆ input_method

GtkIMContext* nsgtk_corewindow::input_method

◆ key

nserror(* nsgtk_corewindow::key) (struct nsgtk_corewindow *nsgtk_cw, uint32_t nskey)

callback for keypress on nsgtk core window

Parameters
nsgtk_cwThe nsgtk core window structure.
nskeyThe netsurf key code.
Returns
NSERROR_OK if key processed, NSERROR_NOT_IMPLEMENTED if key not processed otherwise appropriate error code

Definition at line 74 of file corewindow.h.

Referenced by gtk_cert_verify(), nsgtk_cookies_init(), nsgtk_cw_input_method_commit(), nsgtk_cw_keypress_event(), nsgtk_global_history_init(), nsgtk_hotlist_init(), and nsgtk_local_history_init().

◆ mouse

nserror(* nsgtk_corewindow::mouse) (struct nsgtk_corewindow *nsgtk_cw, browser_mouse_state mouse_state, int x, int y)

callback for mouse event on nsgtk core window

Parameters
nsgtk_cwThe nsgtk core window structure.
mouse_statemouse state
xlocation of event
ylocation of event
Returns
NSERROR_OK on success otherwise appropriate error code.

Definition at line 85 of file corewindow.h.

Referenced by gtk_cert_verify(), nsgtk_cookies_init(), nsgtk_cw_button_press_event(), nsgtk_cw_button_release_event(), nsgtk_cw_motion_notify_event(), nsgtk_global_history_init(), nsgtk_hotlist_init(), and nsgtk_local_history_init().

◆ mouse_state

struct nsgtk_corewindow_mouse nsgtk_corewindow::mouse_state

◆ scrolled

GtkScrolledWindow* nsgtk_corewindow::scrolled

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