summaryrefslogtreecommitdiff
path: root/src/haiku_support.h
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-05-01 00:59:55 +0000
committerPo Lu <luangruo@yahoo.com>2022-05-01 01:00:15 +0000
commitb2fdf78fd9ef46683775014716a2cbf98f11ad8c (patch)
tree7f728276bbdaa82bf6c17d9fd397c3a8f4ec0cbd /src/haiku_support.h
parent02bf6650b073ffad702772a2ebae20023fa8276a (diff)
downloademacs-b2fdf78fd9ef46683775014716a2cbf98f11ad8c.tar.gz
emacs-b2fdf78fd9ef46683775014716a2cbf98f11ad8c.tar.bz2
emacs-b2fdf78fd9ef46683775014716a2cbf98f11ad8c.zip
Implement font selection dialog on Haiku
* src/haiku_font_support.cc (font_style_to_flags): Handle style allocation failures. (be_font_style_to_flags): New function. * src/haiku_support.cc (struct font_selection_dialog_message): New struct. (class EmacsFontSelectionDialog): New class. (be_select_font): New function. * src/haiku_support.h: Update prototypes. * src/haikufont.c (Fx_select_font): New function. (syms_of_haikufont): Define new subr.
Diffstat (limited to 'src/haiku_support.h')
-rw-r--r--src/haiku_support.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/haiku_support.h b/src/haiku_support.h
index 88edc1ae149..faaee2ed9de 100644
--- a/src/haiku_support.h
+++ b/src/haiku_support.h
@@ -648,6 +648,7 @@ extern int be_get_display_screens (void);
extern bool be_use_subpixel_antialiasing (void);
extern const char *be_find_setting (const char *);
extern haiku_font_family_or_style *be_list_font_families (size_t *);
+extern void be_font_style_to_flags (char *, struct haiku_font_pattern *);
extern int be_get_ui_color (const char *, uint32_t *);
extern void BMessage_delete (void *);
@@ -658,6 +659,9 @@ extern bool be_drag_message (void *, void *, bool, void (*) (void),
extern bool be_drag_and_drop_in_progress (void);
extern bool be_replay_menu_bar_event (void *, struct haiku_menu_bar_click_event *);
+extern bool be_select_font (void (*process_pending_signals_function) (void),
+ haiku_font_family_or_style *,
+ haiku_font_family_or_style *);
#ifdef __cplusplus
}