2000-05-31 21:50:38 +00:00
|
|
|
#ifndef GDKFB_H
|
|
|
|
#define GDKFB_H 1
|
|
|
|
|
|
|
|
#include "gdk/gdkprivate.h"
|
|
|
|
|
|
|
|
typedef struct _GdkFBDisplay GdkFBDisplay;
|
|
|
|
typedef struct _GdkFBWindow GdkFBWindow;
|
|
|
|
|
|
|
|
extern GdkFBWindow *gdk_root_window;
|
|
|
|
extern GdkFBDisplay *gdk_display;
|
|
|
|
|
|
|
|
#define GDK_ROOT_WINDOW() gdk_root_window
|
|
|
|
#define GDK_DISPLAY() gdk_display
|
|
|
|
|
Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup and
* gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
* gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
2001-10-18 20:23:17 +00:00
|
|
|
#define gdk_font_lookup(xid) ((GdkFont*) (xid))
|
2000-07-24 16:19:00 +00:00
|
|
|
|
Added ENABLE_SHADOW_FB
2001-01-11 Alexander Larsson <alexl@redhat.com>
* acconfig.h:
Added ENABLE_SHADOW_FB
* configure.in:
Added --disable-shadowfb
* gdk/linux-fb/gdkcursor-fb.c:
Update shadowfb when updating cursor
* gdk/linux-fb/gdkdrawable-fb2.c:
Added wrappers for shadowfb that calls the normal drawable
methods, but calls gdk_shadow_fb_update(bounding box) when
GdkWindows are drawed to.
Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
which also returns the bounding box.
* gdk/linux-fb/gdkfb.h:
Added GdkFBAngle type and gdk_fb_set_rotation declaration.
* gdk/linux-fb/gdkgeometry-fb.c:
Update shadowfb when scrolling window.
* gdk/linux-fb/gdkglobals-fb.c:
Add _gdk_fb_screen_angle.
* gdk/linux-fb/gdkkeyboard-fb.c:
Test code for screen rotation. Shift-F2 in the xlate driver
rotates the screen.
* gdk/linux-fb/gdkmain-fb.c:
Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
* gdk/linux-fb/gdkmouse-fb.c:
Use fb_width/height instead of modeinfo.xres/yres.
* gdk/linux-fb/gdkprivate-fb.h:
Added fb_men, fb_width, fb_height & fb_stride. When using
shadow fb these can differ from the framebuffer stuff.
Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
_gdk_fb_screen_angle. Removed CM, RP.
* gdk/linux-fb/gdkrender-fb.c:
Added code for shadowfb handling and screen rotation using
shadowfb.
* gdk/linux-fb/gdkwindow-fb.c:
Use fb_mem, fb_stride, fb_width, fb_height.
Added recompute_rowstride to reset the rowstride of all windows.
Added gdk_fb_recompute_all() which recomputes rootwindow size,
window abs positions and window rowstrides. Usefull when the
rotation has changed.
2001-01-11 16:39:21 +00:00
|
|
|
typedef enum {
|
|
|
|
GDK_FB_0_DEGREES,
|
|
|
|
GDK_FB_90_DEGREES,
|
|
|
|
GDK_FB_180_DEGREES,
|
|
|
|
GDK_FB_270_DEGREES
|
|
|
|
} GdkFBAngle;
|
|
|
|
|
2001-01-12 15:45:26 +00:00
|
|
|
#define GDK_FB_USE_CHILD_SHAPE ((void *)1)
|
|
|
|
|
2000-12-21 10:33:40 +00:00
|
|
|
/* FB specific functions: */
|
|
|
|
|
|
|
|
typedef gboolean (*GdkWindowChildChanged) (GdkWindow *window,
|
|
|
|
gint x, gint y,
|
|
|
|
gint width, gint height,
|
|
|
|
gpointer user_data);
|
|
|
|
typedef void (*GdkWindowChildGetPos) (GdkWindow *window,
|
|
|
|
gint *x, gint *y,
|
|
|
|
gpointer user_data);
|
|
|
|
|
2001-01-12 15:45:26 +00:00
|
|
|
void gdk_fb_window_set_child_handler (GdkWindow *window,
|
|
|
|
GdkWindowChildChanged changed,
|
|
|
|
GdkWindowChildGetPos get_pos,
|
|
|
|
gpointer user_data);
|
Added ENABLE_SHADOW_FB
2001-01-11 Alexander Larsson <alexl@redhat.com>
* acconfig.h:
Added ENABLE_SHADOW_FB
* configure.in:
Added --disable-shadowfb
* gdk/linux-fb/gdkcursor-fb.c:
Update shadowfb when updating cursor
* gdk/linux-fb/gdkdrawable-fb2.c:
Added wrappers for shadowfb that calls the normal drawable
methods, but calls gdk_shadow_fb_update(bounding box) when
GdkWindows are drawed to.
Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
which also returns the bounding box.
* gdk/linux-fb/gdkfb.h:
Added GdkFBAngle type and gdk_fb_set_rotation declaration.
* gdk/linux-fb/gdkgeometry-fb.c:
Update shadowfb when scrolling window.
* gdk/linux-fb/gdkglobals-fb.c:
Add _gdk_fb_screen_angle.
* gdk/linux-fb/gdkkeyboard-fb.c:
Test code for screen rotation. Shift-F2 in the xlate driver
rotates the screen.
* gdk/linux-fb/gdkmain-fb.c:
Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
* gdk/linux-fb/gdkmouse-fb.c:
Use fb_width/height instead of modeinfo.xres/yres.
* gdk/linux-fb/gdkprivate-fb.h:
Added fb_men, fb_width, fb_height & fb_stride. When using
shadow fb these can differ from the framebuffer stuff.
Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
_gdk_fb_screen_angle. Removed CM, RP.
* gdk/linux-fb/gdkrender-fb.c:
Added code for shadowfb handling and screen rotation using
shadowfb.
* gdk/linux-fb/gdkwindow-fb.c:
Use fb_mem, fb_stride, fb_width, fb_height.
Added recompute_rowstride to reset the rowstride of all windows.
Added gdk_fb_recompute_all() which recomputes rootwindow size,
window abs positions and window rowstrides. Usefull when the
rotation has changed.
2001-01-11 16:39:21 +00:00
|
|
|
|
|
|
|
void gdk_fb_set_rotation (GdkFBAngle angle);
|
|
|
|
|
2000-05-31 21:50:38 +00:00
|
|
|
#endif /* GDKFB_H */
|