summaryrefslogtreecommitdiff
path: root/navit/graphics.h
diff options
context:
space:
mode:
authormvglasow <michael -at- vonglasow.com>2016-01-19 17:02:07 +0100
committermvglasow <michael -at- vonglasow.com>2016-02-02 09:58:31 +0100
commit2309b377da6e89f1fc35bef42577b8de7a80ef85 (patch)
treeb06de7bb910ea65c530e6df45bf72787a7958c87 /navit/graphics.h
parent97e493aaacf25e4a56cb9c8dae8b4e90615ca2c9 (diff)
downloadnavit-2309b377da6e89f1fc35bef42577b8de7a80ef85.tar.gz
Add:graphics_android:Implement padding for areas obstructed by system UI
Signed-off-by: mvglasow <michael -at- vonglasow.com>
Diffstat (limited to 'navit/graphics.h')
-rw-r--r--navit/graphics.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/navit/graphics.h b/navit/graphics.h
index fb18347cf..44bd6c919 100644
--- a/navit/graphics.h
+++ b/navit/graphics.h
@@ -74,6 +74,21 @@ struct graphics_image_buffer {
* @see graphics_gtk_drawing_area#plugin_init()
* @see graphics_android#plugin_init()
*/
+
+/**
+ * Describes areas at each edge of the application window which may be obstructed by the system UI.
+ *
+ * This allows the map to use all available space, including areas which may be obscured by system UI
+ * elements, while constraining other elements such as OSDs or UI controls to an area that is guaranteed
+ * to be visible as long as Navit is in the foreground.
+ */
+struct padding {
+ int left;
+ int top;
+ int right;
+ int bottom;
+};
+
struct graphics_methods {
void (*graphics_destroy)(struct graphics_priv *gr);
void (*draw_mode)(struct graphics_priv *gr, enum draw_mode_num mode);