NetSurf
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
gui.h File Reference
#include <stdbool.h>
#include <mt_gem.h>
#include "netsurf/mouse.h"
#include "atari/redrawslots.h"
#include "atari/gemtk/gemtk.h"
Include dependency graph for gui.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  s_caret
 
struct  point_s
 
struct  mform_ex_s
 
struct  s_gem_cursors
 
struct  s_focus_info
 
struct  s_gui_win_root
 
struct  s_browser
 
struct  gui_window
 first entry in window list More...
 

Macros

#define PATH_MAX   1024
 
#define CARET_STATE_VISIBLE   0x01
 
#define CARET_STATE_ENABLED   0x02
 
#define MFORM_EX_FLAG_USERFORM   0x01
 
#define CDT_OBJECT   0x004f424aUL
 
#define CDT_OWNER   0x03UL
 
#define CDT_ICON   0x04UL
 
#define CDT_ICON_TYPE   0x05UL
 
#define CDT_ICON_TYPE_NONE   0x00UL
 
#define CDT_ICON_TYPE_OBJECT   0x01UL
 
#define CDT_ICON_TYPE_BITMAP   0x02UL
 

Typedefs

typedef struct point_s POINT
 
typedef struct mform_ex_s MFORM_EX
 
typedef struct s_toolbarCMP_TOOLBAR
 
typedef struct s_statusbarCMP_STATUSBAR
 
typedef struct s_browserCMP_BROWSER
 
typedef struct s_gui_win_root ROOTWIN
 

Enumerations

enum  focus_element_type { WIDGET_NONE =0 , URL_WIDGET , SEARCH_INPUT , BROWSER }
 

Functions

void gui_set_input_gui_window (struct gui_window *gw)
 
struct gui_windowgui_get_input_window (void)
 
char * gui_window_get_url (struct gui_window *gw)
 
char * gui_window_get_title (struct gui_window *gw)
 
void atari_window_set_status (struct gui_window *w, const char *text)
 Set the status bar of a browser window. More...
 
void gui_window_set_pointer (struct gui_window *gw, gui_pointer_shape shape)
 set the pointer shape More...
 
void gui_window_destroy (struct gui_window *w)
 Destroy previously created gui window. More...
 

Variables

struct s_gem_cursors gem_cursors
 
struct gui_windowwindow_list
 

Macro Definition Documentation

◆ CARET_STATE_ENABLED

#define CARET_STATE_ENABLED   0x02

Definition at line 35 of file gui.h.

◆ CARET_STATE_VISIBLE

#define CARET_STATE_VISIBLE   0x01

Definition at line 34 of file gui.h.

◆ CDT_ICON

#define CDT_ICON   0x04UL

Definition at line 97 of file gui.h.

◆ CDT_ICON_TYPE

#define CDT_ICON_TYPE   0x05UL

Definition at line 98 of file gui.h.

◆ CDT_ICON_TYPE_BITMAP

#define CDT_ICON_TYPE_BITMAP   0x02UL

Definition at line 101 of file gui.h.

◆ CDT_ICON_TYPE_NONE

#define CDT_ICON_TYPE_NONE   0x00UL

Definition at line 99 of file gui.h.

◆ CDT_ICON_TYPE_OBJECT

#define CDT_ICON_TYPE_OBJECT   0x01UL

Definition at line 100 of file gui.h.

◆ CDT_OBJECT

#define CDT_OBJECT   0x004f424aUL

Definition at line 95 of file gui.h.

◆ CDT_OWNER

#define CDT_OWNER   0x03UL

Definition at line 96 of file gui.h.

◆ MFORM_EX_FLAG_USERFORM

#define MFORM_EX_FLAG_USERFORM   0x01

Definition at line 51 of file gui.h.

◆ PATH_MAX

#define PATH_MAX   1024

Definition at line 31 of file gui.h.

Typedef Documentation

◆ CMP_BROWSER

typedef struct s_browser* CMP_BROWSER

Definition at line 111 of file gui.h.

◆ CMP_STATUSBAR

typedef struct s_statusbar* CMP_STATUSBAR

Definition at line 110 of file gui.h.

◆ CMP_TOOLBAR

typedef struct s_toolbar* CMP_TOOLBAR

Definition at line 109 of file gui.h.

◆ MFORM_EX

typedef struct mform_ex_s MFORM_EX

Definition at line 60 of file gui.h.

◆ POINT

typedef struct point_s POINT

Definition at line 49 of file gui.h.

◆ ROOTWIN

typedef struct s_gui_win_root ROOTWIN

Definition at line 133 of file gui.h.

Enumeration Type Documentation

◆ focus_element_type

Enumerator
WIDGET_NONE 
URL_WIDGET 
SEARCH_INPUT 
BROWSER 

Definition at line 80 of file gui.h.

Function Documentation

◆ atari_window_set_status()

void atari_window_set_status ( struct gui_window w,
const char *  text 
)

Set the status bar of a browser window.

Parameters
wThe gui_window to update.
textnew status text

Definition at line 355 of file gui.c.

References input_window, gui_window::root, gui_window::status, text(), and window_set_stauts().

Referenced by gui_download_window_done(), and gui_download_window_error().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gui_get_input_window()

struct gui_window * gui_get_input_window ( void  )

Definition at line 771 of file gui.c.

References input_window.

Referenced by handle_event().

Here is the caller graph for this function:

◆ gui_set_input_gui_window()

void gui_set_input_gui_window ( struct gui_window gw)

Definition at line 764 of file gui.c.

References input_window, and NSLOG.

Referenced by gui_window_create(), gui_window_destroy(), handle_event(), on_content_mouse_click(), and window_unref_gui_window().

Here is the caller graph for this function:

◆ gui_window_destroy()

void gui_window_destroy ( struct gui_window gw)

Destroy previously created gui window.

Parameters
gwThe gui window to destroy.

Definition at line 251 of file gui.c.

References gui_window::browser, gui_set_input_gui_window(), input_window, gui_window::next, nsatari_search_session_destroy(), NSLOG, gui_window::prev, gui_window::root, gui_window::search, gui_window::status, gui_window::title, gui_window::url, window_list, and window_unref_gui_window().

Here is the call graph for this function:

◆ gui_window_get_title()

char * gui_window_get_title ( struct gui_window gw)

Definition at line 589 of file gui.c.

References gui_window::title.

Referenced by handle_event().

Here is the caller graph for this function:

◆ gui_window_get_url()

char * gui_window_get_url ( struct gui_window gw)

Definition at line 581 of file gui.c.

References gui_window::url.

Referenced by handle_event().

Here is the caller graph for this function:

◆ gui_window_set_pointer()

void gui_window_set_pointer ( struct gui_window gw,
gui_pointer_shape  shape 
)

set the pointer shape

Definition at line 216 of file theme.c.

Variable Documentation

◆ gem_cursors

struct s_gem_cursors gem_cursors

◆ window_list

struct gui_window* window_list
extern

Definition at line 74 of file gui.c.