diff options
Diffstat (limited to 'src/gtkutil.h')
| -rw-r--r-- | src/gtkutil.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/gtkutil.h b/src/gtkutil.h index a69932cc25c..5c7d8b03379 100644 --- a/src/gtkutil.h +++ b/src/gtkutil.h @@ -33,6 +33,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #define XG_SB_MIN 1 #define XG_SB_MAX 10000000 #define XG_SB_RANGE (XG_SB_MAX-XG_SB_MIN) +#define YG_SB_MIN 1 +#define YG_SB_MAX 10000000 +#define YG_SB_RANGE (YG_SB_MAX-YG_SB_MIN) /* Key for data that is valid for menus and scroll bars in a frame */ #define XG_FRAME_DATA "emacs_frame" @@ -114,6 +117,11 @@ extern void xg_create_scroll_bar (struct frame *f, GCallback scroll_callback, GCallback end_callback, const char *scroll_bar_name); +extern void xg_create_horizontal_scroll_bar (struct frame *f, + struct scroll_bar *bar, + GCallback scroll_callback, + GCallback end_callback, + const char *scroll_bar_name); extern void xg_remove_scroll_bar (struct frame *f, ptrdiff_t scrollbar_id); extern void xg_update_scrollbar_pos (struct frame *f, @@ -122,18 +130,30 @@ extern void xg_update_scrollbar_pos (struct frame *f, int left, int width, int height); +extern void xg_update_horizontal_scrollbar_pos (struct frame *f, + ptrdiff_t scrollbar_id, + int top, + int left, + int width, + int height); extern void xg_set_toolkit_scroll_bar_thumb (struct scroll_bar *bar, int portion, int position, int whole); +extern void xg_set_toolkit_horizontal_scroll_bar_thumb (struct scroll_bar *bar, + int portion, + int position, + int whole); extern bool xg_event_is_for_scrollbar (struct frame *, const XEvent *); extern int xg_get_default_scrollbar_width (void); +extern int xg_get_default_scrollbar_height (void); extern void update_frame_tool_bar (struct frame *f); extern void free_frame_tool_bar (struct frame *f); extern void xg_change_toolbar_position (struct frame *f, Lisp_Object pos); +extern void xg_clear_under_internal_border (struct frame *f); extern void xg_frame_resized (struct frame *f, int pixelwidth, int pixelheight); @@ -162,7 +182,6 @@ extern bool xg_prepare_tooltip (struct frame *f, extern void xg_show_tooltip (struct frame *f, int root_x, int root_y); extern bool xg_hide_tooltip (struct frame *f); - /* Mark all callback data that are Lisp_object:s during GC. */ extern void xg_mark_data (void); |
