summaryrefslogtreecommitdiff
path: root/endless/eoswindow.h
diff options
context:
space:
mode:
authorPatrick Ward <patrick@endlessm.com>2014-01-06 17:32:47 -0800
committerPatrick Ward <patrick@endlessm.com>2014-01-13 16:09:07 -0800
commitbe49c065c70be7377edcc1c9f432d2876bf0ab0d (patch)
treed4118927477449001aec261559e164ff0ece624e /endless/eoswindow.h
parentc8aa17d78ccdf8b631f08967eabf86a9f50396fb (diff)
Add configurable properties for font scaling
Added configurable properties to EosWindow to allow turning on/off scaling, setting a custom base font, and setting a custom base resolution. EosWindow now has a base font-size that allows children widgets to scale font-size via using em. Also added font rescaling tests to both the automated test and smoke test. [endlessm/eos-sdk#398]
Diffstat (limited to 'endless/eoswindow.h')
-rw-r--r--endless/eoswindow.h38
1 files changed, 33 insertions, 5 deletions
diff --git a/endless/eoswindow.h b/endless/eoswindow.h
index 820aa09..317f0c5 100644
--- a/endless/eoswindow.h
+++ b/endless/eoswindow.h
@@ -59,17 +59,45 @@ struct _EosWindowClass
};
EOS_SDK_ALL_API_VERSIONS
-GType eos_window_get_type (void) G_GNUC_CONST;
+GType eos_window_get_type (void) G_GNUC_CONST;
EOS_SDK_ALL_API_VERSIONS
-GtkWidget *eos_window_new (EosApplication *application);
+GtkWidget *eos_window_new (EosApplication *application);
EOS_SDK_ALL_API_VERSIONS
-EosPageManager *eos_window_get_page_manager (EosWindow *self);
+EosPageManager *eos_window_get_page_manager (EosWindow *self);
EOS_SDK_ALL_API_VERSIONS
-void eos_window_set_page_manager (EosWindow *self,
- EosPageManager *page_manager);
+void eos_window_set_page_manager (EosWindow *self,
+ EosPageManager *page_manager);
+
+EOS_SDK_ALL_API_VERSIONS
+gboolean eos_window_get_font_scaling_active (EosWindow *self);
+
+EOS_SDK_ALL_API_VERSIONS
+void eos_window_set_font_scaling_active (EosWindow *self,
+ gboolean is_scaling);
+
+EOS_SDK_ALL_API_VERSIONS
+gint eos_window_get_font_scaling_default_size (EosWindow *self);
+
+EOS_SDK_ALL_API_VERSIONS
+void eos_window_set_font_scaling_default_size (EosWindow *self,
+ gint new_default_font_size);
+
+EOS_SDK_ALL_API_VERSIONS
+gint eos_window_get_font_scaling_default_window_size (EosWindow *self);
+
+EOS_SDK_ALL_API_VERSIONS
+void eos_window_set_font_scaling_default_window_size (EosWindow *self,
+ gint new_default_window_size);
+
+EOS_SDK_ALL_API_VERSIONS
+gint eos_window_get_font_scaling_min_font_size (EosWindow *self);
+
+EOS_SDK_ALL_API_VERSIONS
+void eos_window_set_font_scaling_min_font_size (EosWindow *self,
+ gint new_min_font_size);
G_END_DECLS