summaryrefslogtreecommitdiff
path: root/src/nsterm.h
diff options
context:
space:
mode:
authorAlan Third <alan@idiocy.org>2017-12-23 11:00:35 +0000
committerAlan Third <alan@idiocy.org>2018-01-06 22:50:35 +0000
commit15cd18991c1d9a9bafeef7bf9b4dad91ecc0332a (patch)
treefca8d2460b73c843ac270c6ce9c0194ec59ca326 /src/nsterm.h
parent5fd229735384a5fa479466124a181bf7d4ea8dab (diff)
downloademacs-15cd18991c1d9a9bafeef7bf9b4dad91ecc0332a.tar.gz
Allow setting tooltip colors in NS port
* src/nsfns.m (Fx_show_tip): Get face colors and apply them to the tooltip. * src/nsmenu.m (EmacsTooltip::setBackgroundColor): (EmacsTooltip::setForegroundColor): New functions. * src/nsterm.h (EmacsTooltip::setBackgroundColor): (EmacsTooltip::setForegroundColor): New function prototypes.
Diffstat (limited to 'src/nsterm.h')
-rw-r--r--src/nsterm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nsterm.h b/src/nsterm.h
index bef2c1011bc..878923cbb41 100644
--- a/src/nsterm.h
+++ b/src/nsterm.h
@@ -585,6 +585,8 @@ typedef id instancetype;
}
- (instancetype) init;
- (void) setText: (char *)text;
+- (void) setBackgroundColor: (NSColor *)col;
+- (void) setForegroundColor: (NSColor *)col;
- (void) showAtX: (int)x Y: (int)y for: (int)seconds;
- (void) hide;
- (BOOL) isActive;