summaryrefslogtreecommitdiff
path: root/gdk/win32/gdksurface-win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdk/win32/gdksurface-win32.c')
-rw-r--r--gdk/win32/gdksurface-win32.c184
1 files changed, 92 insertions, 92 deletions
diff --git a/gdk/win32/gdksurface-win32.c b/gdk/win32/gdksurface-win32.c
index 3b26a475ab..428311904b 100644
--- a/gdk/win32/gdksurface-win32.c
+++ b/gdk/win32/gdksurface-win32.c
@@ -211,10 +211,10 @@ gdk_surface_win32_finalize (GObject *object)
void
_gdk_win32_get_window_client_area_rect (GdkSurface *window,
- gint scale,
+ int scale,
RECT *rect)
{
- gint x, y, width, height;
+ int x, y, width, height;
x = y = 0;
width = gdk_surface_get_width (window);
@@ -488,10 +488,10 @@ _gdk_win32_display_create_surface (GdkDisplay *display,
GdkSurface *surface;
const gchar *title;
wchar_t *wtitle;
- gint window_width, window_height;
- gint window_x, window_y;
- gint offset_x = 0, offset_y = 0;
- gint real_x = 0, real_y = 0;
+ int window_width, window_height;
+ int window_x, window_y;
+ int offset_x = 0, offset_y = 0;
+ int real_x = 0, real_y = 0;
GdkFrameClock *frame_clock;
g_return_val_if_fail (display == _gdk_display, NULL);
@@ -750,8 +750,8 @@ gdk_win32_surface_destroy_notify (GdkSurface *window)
static void
get_outer_rect (GdkSurface *window,
- gint width,
- gint height,
+ int width,
+ int height,
RECT *rect)
{
GdkWin32Surface *impl = GDK_WIN32_SURFACE (window);
@@ -765,16 +765,16 @@ get_outer_rect (GdkSurface *window,
static void
adjust_for_gravity_hints (GdkSurface *window,
- RECT *outer_rect,
- gint *x,
- gint *y)
+ RECT *outer_rect,
+ int *x,
+ int *y)
{
GdkWin32Surface *impl = GDK_WIN32_SURFACE (window);
if (impl->hint_flags & GDK_HINT_WIN_GRAVITY)
{
#ifdef G_ENABLE_DEBUG
- gint orig_x = *x, orig_y = *y;
+ int orig_x = *x, orig_y = *y;
#endif
switch (impl->hints.win_gravity)
@@ -1106,7 +1106,7 @@ gdk_win32_surface_hide (GdkSurface *window)
static void
gdk_win32_surface_do_move (GdkSurface *window,
- gint x, gint y)
+ int x, int y)
{
RECT outer_rect;
GdkWin32Surface *impl;
@@ -1143,7 +1143,7 @@ gdk_win32_surface_do_move (GdkSurface *window,
void
gdk_win32_surface_resize (GdkSurface *window,
- gint width, gint height)
+ int width, int height)
{
RECT outer_rect;
@@ -1182,10 +1182,10 @@ gdk_win32_surface_resize (GdkSurface *window,
static void
gdk_win32_surface_do_move_resize (GdkSurface *window,
- gint x,
- gint y,
- gint width,
- gint height)
+ int x,
+ int y,
+ int width,
+ int height)
{
RECT outer_rect;
GdkWin32Surface *impl;
@@ -1233,10 +1233,10 @@ gdk_win32_surface_do_move_resize (GdkSurface *window,
static void
gdk_win32_surface_move_resize_internal (GdkSurface *window,
gboolean with_move,
- gint x,
- gint y,
- gint width,
- gint height)
+ int x,
+ int y,
+ int width,
+ int height)
{
GdkWin32Surface *surface = GDK_WIN32_SURFACE (window);
@@ -1271,18 +1271,18 @@ gdk_win32_surface_move_resize_internal (GdkSurface *window,
void
gdk_win32_surface_move_resize (GdkSurface *window,
- gint x,
- gint y,
- gint width,
- gint height)
+ int x,
+ int y,
+ int width,
+ int height)
{
gdk_win32_surface_move_resize_internal (window, TRUE, x, y, width, height);
}
void
gdk_win32_surface_move (GdkSurface *surface,
- gint x,
- gint y)
+ int x,
+ int y)
{
gdk_win32_surface_move_resize_internal (surface, TRUE, x, y, -1, -1);
}
@@ -1706,10 +1706,10 @@ _gdk_modal_current (void)
static void
gdk_win32_surface_get_geometry (GdkSurface *window,
- gint *x,
- gint *y,
- gint *width,
- gint *height)
+ int *x,
+ int *y,
+ int *width,
+ int *height)
{
if (!GDK_SURFACE_DESTROYED (window))
{
@@ -1772,13 +1772,13 @@ gdk_win32_surface_get_geometry (GdkSurface *window,
static void
gdk_win32_surface_get_root_coords (GdkSurface *window,
- gint x,
- gint y,
- gint *root_x,
- gint *root_y)
+ int x,
+ int y,
+ int *root_x,
+ int *root_y)
{
- gint tx;
- gint ty;
+ int tx;
+ int ty;
POINT pt;
GdkWin32Surface *impl = GDK_WIN32_SURFACE (window);
@@ -2051,10 +2051,10 @@ calculate_aerosnap_regions (GdkW32DragMoveResizeContext *context)
{
GdkDisplay *display;
GListModel *monitors;
- gint monitor_idx, other_monitor_idx;
+ int monitor_idx, other_monitor_idx;
GdkWin32Surface *impl = GDK_WIN32_SURFACE (context->window);
#if defined(MORE_AEROSNAP_DEBUGGING)
- gint i;
+ int i;
#endif
display = gdk_display_get_default ();
@@ -2072,8 +2072,8 @@ calculate_aerosnap_regions (GdkW32DragMoveResizeContext *context)
AeroSnapEdgeRegion snap_region;
gboolean move_edge[4] = { TRUE, FALSE, TRUE, TRUE };
gboolean resize_edge[2] = { TRUE, TRUE };
- gint diff;
- gint thickness, trigger_thickness;
+ int diff;
+ int thickness, trigger_thickness;
GdkMonitor *monitor;
monitor = g_list_model_get_item (monitors, monitor_idx);
@@ -2306,9 +2306,9 @@ static void
stash_window (GdkSurface *window,
GdkWin32Surface *impl)
{
- gint x, y;
- gint width, wwidth;
- gint height, wheight;
+ int x, y;
+ int width, wwidth;
+ int height, wheight;
WINDOWPLACEMENT placement;
HMONITOR hmonitor;
MONITORINFO hmonitor_info;
@@ -2379,8 +2379,8 @@ static void
snap_up (GdkSurface *window)
{
SHORT maxysize;
- gint x, y;
- gint width, height;
+ int x, y;
+ int width, height;
GdkWin32Surface *impl;
impl = GDK_WIN32_SURFACE (window);
@@ -2475,7 +2475,7 @@ _gdk_win32_surface_handle_aerosnap (GdkSurface *window,
GdkWin32Surface *impl;
GdkDisplay *display;
GListModel *monitors;
- gint n_monitors;
+ int n_monitors;
GdkSurfaceState surface_state = gdk_toplevel_get_state (GDK_TOPLEVEL (window));
gboolean minimized = surface_state & GDK_SURFACE_STATE_MINIMIZED;
gboolean maximized = surface_state & GDK_SURFACE_STATE_MAXIMIZED;
@@ -2563,7 +2563,7 @@ _gdk_win32_surface_handle_aerosnap (GdkSurface *window,
else if (impl->snap_state == GDK_WIN32_AEROSNAP_STATE_HALFRIGHT)
{
GdkMonitor *other;
- gint i;
+ int i;
unsnap (window, monitor);
for (i = 0; i < n_monitors; i++)
@@ -2695,8 +2695,8 @@ ensure_snap_indicator_exists (GdkW32DragMoveResizeContext *context)
static gboolean
ensure_snap_indicator_surface (GdkW32DragMoveResizeContext *context,
- gint width,
- gint height,
+ int width,
+ int height,
guint scale)
{
if (context->indicator_surface != NULL &&
@@ -2731,7 +2731,7 @@ adjust_indicator_rectangle (GdkRectangle *rect,
gboolean inward)
{
gdouble inverter;
- const gint gap = AEROSNAP_INDICATOR_EDGE_GAP;
+ const int gap = AEROSNAP_INDICATOR_EDGE_GAP;
#if defined(MORE_AEROSNAP_DEBUGGING)
GdkRectangle cache = *rect;
#endif
@@ -2755,10 +2755,10 @@ adjust_indicator_rectangle (GdkRectangle *rect,
static void
rounded_rectangle (cairo_t *cr,
- gint x,
- gint y,
- gint width,
- gint height,
+ int x,
+ int y,
+ int width,
+ int height,
gdouble radius,
gdouble line_width,
GdkRGBA *fill,
@@ -3194,8 +3194,8 @@ get_monitor_at_point (GdkDisplay *display,
static void
start_indicator (GdkSurface *window,
GdkW32DragMoveResizeContext *context,
- gint x,
- gint y,
+ int x,
+ int y,
GdkWin32AeroSnapState state)
{
GdkMonitor *monitor;
@@ -3266,12 +3266,12 @@ stop_indicator (GdkSurface *window,
SWP_NOSIZE | SWP_NOREDRAW | SWP_HIDEWINDOW | SWP_NOACTIVATE));
}
-static gint
-point_in_aerosnap_region (gint x,
- gint y,
+static int
+point_in_aerosnap_region (int x,
+ int y,
AeroSnapEdgeRegion *region)
{
- gint edge, trigger;
+ int edge, trigger;
edge = (x >= region->edge.x &&
y >= region->edge.y &&
@@ -3287,15 +3287,15 @@ point_in_aerosnap_region (gint x,
static void
handle_aerosnap_move_resize (GdkSurface *window,
GdkW32DragMoveResizeContext *context,
- gint x,
- gint y)
+ int x,
+ int y)
{
- gint i;
+ int i;
AeroSnapEdgeRegion *reg;
- gint maximize = 0;
- gint halfleft = 0;
- gint halfright = 0;
- gint fullup = 0;
+ int maximize = 0;
+ int halfleft = 0;
+ int halfright = 0;
+ int fullup = 0;
gboolean fullup_edge = FALSE;
if (context->op == GDK_WIN32_DRAGOP_RESIZE)
@@ -3505,9 +3505,9 @@ setup_drag_move_resize_context (GdkSurface *window,
GdkW32WindowDragOp op,
GdkSurfaceEdge edge,
GdkDevice *device,
- gint button,
- gint x,
- gint y,
+ int button,
+ int x,
+ int y,
guint32 timestamp)
{
RECT rect;
@@ -3515,7 +3515,7 @@ setup_drag_move_resize_context (GdkSurface *window,
GdkSurface *pointer_window;
GdkWin32Surface *impl = GDK_WIN32_SURFACE (window);
gboolean maximized = gdk_toplevel_get_state (GDK_TOPLEVEL (window)) & GDK_SURFACE_STATE_MAXIMIZED;
- gint root_x, root_y;
+ int root_x, root_y;
gdk_win32_surface_get_root_coords (window, x, y, &root_x, &root_y);
@@ -3571,10 +3571,10 @@ setup_drag_move_resize_context (GdkSurface *window,
impl->snap_state == GDK_WIN32_AEROSNAP_STATE_FULLUP))
{
GdkMonitor *monitor;
- gint wx, wy, wwidth, wheight;
- gint swx, swy, swwidth, swheight;
+ int wx, wy, wwidth, wheight;
+ int swx, swy, swwidth, swheight;
gboolean pointer_outside_of_window;
- gint offsetx, offsety;
+ int offsetx, offsety;
gboolean left_half;
GdkDisplay *display;
@@ -3632,8 +3632,8 @@ setup_drag_move_resize_context (GdkSurface *window,
if (!pointer_outside_of_window && maximized)
{
WINDOWPLACEMENT placement;
- gint unmax_width, unmax_height;
- gint shadow_unmax_width, shadow_unmax_height;
+ int unmax_width, unmax_height;
+ int shadow_unmax_width, shadow_unmax_height;
placement.length = sizeof (placement);
API_CALL (GetWindowPlacement, (GDK_SURFACE_HWND (window), &placement));
@@ -3937,17 +3937,17 @@ _gdk_win32_update_layered_window_from_cache (GdkSurface *surface,
void
gdk_win32_surface_do_move_resize_drag (GdkSurface *window,
- gint x,
- gint y)
+ int x,
+ int y)
{
RECT rect;
RECT new_rect;
- gint diffy, diffx;
+ int diffy, diffx;
MINMAXINFO mmi;
GdkWin32Surface *impl;
GdkW32DragMoveResizeContext *context;
- gint width;
- gint height;
+ int width;
+ int height;
impl = GDK_WIN32_SURFACE (window);
context = &impl->drag_move_resize_context;
@@ -4289,7 +4289,7 @@ gdk_win32_surface_unmaximize (GdkSurface *window)
static void
gdk_win32_surface_fullscreen (GdkSurface *window)
{
- gint x, y, width, height;
+ int x, y, width, height;
FullscreenInfo *fi;
HMONITOR monitor;
MONITORINFO mi;
@@ -4465,7 +4465,7 @@ gdk_win32_surface_show_window_menu (GdkSurface *window,
GdkEvent *event)
{
double event_x, event_y;
- gint x, y;
+ int x, y;
GdkWin32Surface *impl = GDK_WIN32_SURFACE (window);
switch ((int) event->event_type)
@@ -4586,10 +4586,10 @@ GtkShowWindow (GdkSurface *window,
static void
gdk_win32_surface_set_shadow_width (GdkSurface *window,
- gint left,
- gint right,
- gint top,
- gint bottom)
+ int left,
+ int right,
+ int top,
+ int bottom)
{
GdkWin32Surface *impl = GDK_WIN32_SURFACE (window);
@@ -4614,7 +4614,7 @@ gdk_win32_surface_set_shadow_width (GdkSurface *window,
}
-gint
+int
_gdk_win32_surface_get_scale_factor (GdkSurface *window)
{
GdkDisplay *display;
@@ -4663,8 +4663,8 @@ _gdk_win32_surface_get_scale_factor (GdkSurface *window)
void
_gdk_win32_surface_get_unscaled_size (GdkSurface *window,
- gint *unscaled_width,
- gint *unscaled_height)
+ int *unscaled_width,
+ int *unscaled_height)
{
GdkWin32Surface *impl = GDK_WIN32_SURFACE (window);