mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-19 18:52:39 +03:00
remove unused interface
This commit is contained in:
parent
3be2b98cc2
commit
98f8eaeb31
@ -4765,31 +4765,6 @@ ro_gui_window_to_window_pos(struct gui_window *g, int x, int y, os_coord *pos)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* exported interface documented in riscos/window.h */
|
|
||||||
bool ro_gui_window_to_screen_pos(struct gui_window *g,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
os_coord *pos)
|
|
||||||
{
|
|
||||||
wimp_window_state state;
|
|
||||||
os_error *error;
|
|
||||||
|
|
||||||
assert(g);
|
|
||||||
|
|
||||||
state.w = g->window;
|
|
||||||
error = xwimp_get_window_state(&state);
|
|
||||||
if (error) {
|
|
||||||
NSLOG(netsurf, INFO, "xwimp_get_window_state: 0x%x:%s",
|
|
||||||
error->errnum, error->errmess);
|
|
||||||
ro_warn_user("WimpError", error->errmess);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
pos->x = (x * 2 * g->scale) + (state.visible.x0 - state.xscroll);
|
|
||||||
pos->y = (state.visible.y1 - state.yscroll) - (y * 2 * g->scale);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* exported interface documented in riscos/window.h */
|
/* exported interface documented in riscos/window.h */
|
||||||
enum browser_mouse_state
|
enum browser_mouse_state
|
||||||
ro_gui_mouse_click_state(wimp_mouse_state buttons, wimp_icon_flags type)
|
ro_gui_mouse_click_state(wimp_mouse_state buttons, wimp_icon_flags type)
|
||||||
|
@ -191,17 +191,6 @@ struct gui_window *ro_gui_toolbar_lookup(wimp_w window);
|
|||||||
bool ro_gui_window_to_window_pos(struct gui_window *g, int x, int y, os_coord *pos);
|
bool ro_gui_window_to_window_pos(struct gui_window *g, int x, int y, os_coord *pos);
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convert x,y window co-ordinates into screen co-ordinates.
|
|
||||||
*
|
|
||||||
* \param g gui window
|
|
||||||
* \param x x ordinate
|
|
||||||
* \param y y ordinate
|
|
||||||
* \param pos receives position in screen co-ordinatates
|
|
||||||
* \return true iff conversion successful
|
|
||||||
*/
|
|
||||||
bool ro_gui_window_to_screen_pos(struct gui_window *g, int x, int y, os_coord *pos);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the state of the mouse buttons and modifiers keys for a
|
* Returns the state of the mouse buttons and modifiers keys for a
|
||||||
* mouse action, suitable for passing to the OS-independent
|
* mouse action, suitable for passing to the OS-independent
|
||||||
|
Loading…
Reference in New Issue
Block a user