NetSurf
Macros | Functions
theme.h File Reference
#include "netsurf/mouse.h"
Include dependency graph for theme.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define AMI_GUI_POINTER_BLANK   GUI_POINTER_PROGRESS+1
 
#define AMI_GUI_POINTER_DRAG   GUI_POINTER_PROGRESS+2
 
#define AMI_LASTPOINTER   AMI_GUI_POINTER_DRAG
 

Functions

void ami_theme_init (void)
 
void ami_get_theme_filename (char *filename, const char *themestring, bool protocol)
 
int ami_theme_throbber_get_width (void)
 
int ami_theme_throbber_get_height (void)
 
void ami_theme_throbber_setup (void)
 
void ami_theme_throbber_free (void)
 
void ami_update_throbber (struct gui_window_2 *g, bool redraw)
 
void ami_init_mouse_pointers (void)
 
void ami_mouse_pointers_free (void)
 
void ami_update_pointer (struct Window *win, gui_pointer_shape shape)
 
void gui_window_start_throbber (struct gui_window *g)
 
void gui_window_stop_throbber (struct gui_window *g)
 
void ami_throbber_redraw_schedule (int t, struct gui_window *g)
 
void gui_window_set_pointer (struct gui_window *g, gui_pointer_shape shape)
 set the pointer shape More...
 

Macro Definition Documentation

◆ AMI_GUI_POINTER_BLANK

#define AMI_GUI_POINTER_BLANK   GUI_POINTER_PROGRESS+1

Definition at line 27 of file theme.h.

◆ AMI_GUI_POINTER_DRAG

#define AMI_GUI_POINTER_DRAG   GUI_POINTER_PROGRESS+2

Definition at line 28 of file theme.h.

◆ AMI_LASTPOINTER

#define AMI_LASTPOINTER   AMI_GUI_POINTER_DRAG

Definition at line 29 of file theme.h.

Function Documentation

◆ ami_get_theme_filename()

void ami_get_theme_filename ( char *  filename,
const char *  themestring,
bool  protocol 
)

Definition at line 198 of file theme.c.

References messages_get(), and nsoption_charp.

Referenced by ami_init_mouse_pointers(), ami_theme_throbber_setup(), and gui_window_create().

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

◆ ami_init_mouse_pointers()

void ami_init_mouse_pointers ( void  )

Definition at line 284 of file theme.c.

References ami_get_theme_filename(), AMI_LASTPOINTER, height, ICONCTRLA_GetImageDataFormat, IDFMT_BITMAPPED, IDFMT_DIRECTMAPPED, LIB_IS_AT_LEAST, mouseptrbm, mouseptrobj, NewObject(), nsoption_bool, ptrs, ptrs32, and width.

Referenced by main().

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

◆ ami_mouse_pointers_free()

void ami_mouse_pointers_free ( void  )

Definition at line 396 of file theme.c.

References AMI_LASTPOINTER, LIB_IS_AT_LEAST, and mouseptrbm.

Referenced by gui_quit().

Here is the caller graph for this function:

◆ ami_theme_init()

void ami_theme_init ( void  )

Definition at line 134 of file theme.c.

References amiga_warn_user(), messages_add_from_file(), nsoption_charp, and nsoption_set_charp.

Referenced by main().

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

◆ ami_theme_throbber_free()

void ami_theme_throbber_free ( void  )

Definition at line 191 of file theme.c.

References amiga_bitmap_destroy(), and throbber_nsbm.

Referenced by gui_quit().

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

◆ ami_theme_throbber_get_height()

int ami_theme_throbber_get_height ( void  )

Definition at line 168 of file theme.c.

References bitmap_get_height(), and throbber_nsbm.

Referenced by ami_throbber_update(), gui_window_create(), and gui_window_stop_throbber().

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

◆ ami_theme_throbber_get_width()

int ami_theme_throbber_get_width ( void  )

Definition at line 163 of file theme.c.

References bitmap_get_width(), throbber_frames, and throbber_nsbm.

Referenced by ami_throbber_update(), gui_window_create(), and gui_window_stop_throbber().

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

◆ ami_theme_throbber_setup()

void ami_theme_throbber_setup ( void  )

Definition at line 173 of file theme.c.

References ami_bitmap_from_datatype(), ami_bitmap_get_native(), ami_get_theme_filename(), ami_plot_screen_is_palettemapped(), bitmap_get_height(), bitmap_get_width(), messages_get(), throbber_frames, throbber_nsbm, and throbber_update_interval.

Referenced by ami_openscreenfirst().

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

◆ ami_throbber_redraw_schedule()

void ami_throbber_redraw_schedule ( int  t,
struct gui_window g 
)

Definition at line 517 of file theme.c.

References ami_schedule(), and ami_throbber_update().

Referenced by ami_gui_event(), ami_switch_tab(), ami_throbber_update(), gui_window_start_throbber(), gui_window_stop_throbber(), and HOOKF().

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

◆ ami_update_pointer()

void ami_update_pointer ( struct Window *  win,
gui_pointer_shape  shape 
)
Todo:
check this shouldn't be drag_in_progress

Definition at line 221 of file theme.c.

References ami_drag_has_data(), GUI_POINTER_DEFAULT, GUI_POINTER_WAIT, LIB_IS_AT_LEAST, mouseptrobj, and nsoption_bool.

Referenced by ami_file_save(), ami_gui_opts_use(), ami_reset_pointer(), ami_search_set_hourglass(), ami_set_pointer(), and HOOKF().

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

◆ ami_update_throbber()

void ami_update_throbber ( struct gui_window_2 g,
bool  redraw 
)

◆ gui_window_set_pointer()

void gui_window_set_pointer ( struct gui_window g,
gui_pointer_shape  shape 
)

set the pointer shape

Definition at line 216 of file theme.c.

◆ gui_window_start_throbber()

void gui_window_start_throbber ( struct gui_window g)

Definition at line 413 of file theme.c.

◆ gui_window_stop_throbber()

void gui_window_stop_throbber ( struct gui_window g)

Definition at line 432 of file theme.c.