mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-29 09:43:09 +03:00
4b8ed9b777
To position the page-info window we have to tunnel all the way from the current scaffolding, via its top-level gui window, through to the toolbar. In the toolbar we look up the URL bar and then determine the screen coordinates of the scaffolding via the top level widget GTK semantics. Finally we place the page-info window 4 pixels down and right of the bottom-left of the entry box, which should look nice. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
41 lines
1.3 KiB
C
41 lines
1.3 KiB
C
/*
|
|
* Copyright 2019 Vincent Sanders <vince@netsurf-browser.org>
|
|
*
|
|
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
|
*
|
|
* NetSurf is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; version 2 of the License.
|
|
*
|
|
* NetSurf is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef NETSURF_GTK_PAGE_INFO_H
|
|
#define NETSURF_GTK_PAGE_INFO_H 1
|
|
|
|
/**
|
|
* Page information window
|
|
*
|
|
* \param bw the browser window to get page information for
|
|
* \return NSERROR_OK or error code if prompt creation failed.
|
|
*/
|
|
nserror nsgtk_page_info(struct browser_window *bw);
|
|
|
|
/**
|
|
* Position the given page information window at the given
|
|
* coordinates.
|
|
*
|
|
* \param pi the page info window to position
|
|
* \param x the X coordinate for the top left of the window
|
|
* \param y the Y coordinate for the top left of the window
|
|
*/
|
|
void nsgtk_page_info_set_position(struct nsgtk_pi_window *pi, int x, int y);
|
|
|
|
#endif
|