static int
panel_launcher_enter_handler(struct widget *widget, struct input *input,
- GLfloat x, GLfloat y, void *data)
+ float x, float y, void *data)
{
struct panel_launcher *launcher = data;
static int
unlock_dialog_widget_enter_handler(struct widget *widget,
struct input *input,
- GLfloat x, GLfloat y, void *data)
+ float x, float y, void *data)
{
struct unlock_dialog *dialog = data;
static int
dnd_enter_handler(struct widget *widget,
- struct input *input, GLfloat x, GLfloat y, void *data)
+ struct input *input, float x, float y, void *data)
{
return lookup_cursor(data, x, y);
}
static int
dnd_motion_handler(struct widget *widget,
struct input *input, uint32_t time,
- GLfloat x, GLfloat y, void *data)
+ float x, float y, void *data)
{
return lookup_cursor(data, x, y);
}
static void
dnd_data_handler(struct window *window,
struct input *input,
- GLfloat x, GLfloat y, const char **types, void *data)
+ float x, float y, const char **types, void *data)
{
struct dnd *dnd = data;
*/
static int
motion_handler(struct widget *widget, struct input *input, uint32_t time,
- GLfloat x, GLfloat y, void *data)
+ float x, float y, void *data)
{
struct eventdemo *e = data;
static int
motion_handler(struct widget *widget, struct input *input,
- uint32_t time, GLfloat x, GLfloat y, void *data)
+ uint32_t time, float x, float y, void *data)
{
return POINTER_HAND1;
}
static int
motion_handler(struct widget *widget, struct input *input,
- uint32_t time, GLfloat x, GLfloat y, void *data)
+ uint32_t time, float x, float y, void *data)
{
struct gears *gears = data;
int offset_x, offset_y;
wl_fixed_t y_w)
{
struct touch *touch = data;
- GLfloat x = wl_fixed_to_double(x_w);
- GLfloat y = wl_fixed_to_double(y_w);
+ float x = wl_fixed_to_double(x_w);
+ float y = wl_fixed_to_double(y_w);
touch_paint(touch, x, y, id);
}
wl_fixed_t y_w)
{
struct touch *touch = data;
- GLfloat x = wl_fixed_to_double(x_w);
- GLfloat y = wl_fixed_to_double(y_w);
+ float x = wl_fixed_to_double(x_w);
+ float y = wl_fixed_to_double(y_w);
touch_paint(touch, x, y, id);
}
static int
smoke_motion_handler(struct widget *widget, struct input *input,
- uint32_t time, GLfloat x, GLfloat y, void *data)
+ uint32_t time, float x, float y, void *data)
{
struct smoke *smoke = data;
int i, i0, i1, j, j0, j1, k, d = 5;
static int
motion_handler(struct widget *widget,
struct input *input, uint32_t time,
- GLfloat x, GLfloat y, void *data)
+ float x, float y, void *data)
{
struct terminal *terminal = data;
int current_cursor;
uint32_t modifiers;
uint32_t pointer_enter_serial;
- GLfloat sx, sy;
+ float sx, sy;
struct wl_list link;
struct widget *focus_widget;
static int
frame_enter_handler(struct widget *widget,
- struct input *input, GLfloat x, GLfloat y, void *data)
+ struct input *input, float x, float y, void *data)
{
return frame_get_pointer_image_for_location(data, input);
}
static int
frame_motion_handler(struct widget *widget,
struct input *input, uint32_t time,
- GLfloat x, GLfloat y, void *data)
+ float x, float y, void *data)
{
return frame_get_pointer_image_for_location(data, input);
}
static void
input_set_focus_widget(struct input *input, struct widget *focus,
- GLfloat x, GLfloat y)
+ float x, float y)
{
struct widget *old, *widget;
int pointer = POINTER_LEFT_PTR;
struct window *window = input->pointer_focus;
struct widget *widget;
int pointer = POINTER_LEFT_PTR;
- GLfloat sx = wl_fixed_to_double(sx_w);
- GLfloat sy = wl_fixed_to_double(sy_w);
+ float sx = wl_fixed_to_double(sx_w);
+ float sy = wl_fixed_to_double(sy_w);
input->sx = sx;
input->sy = sy;
struct input *input = data;
struct window *window;
struct widget *widget;
- GLfloat sx = wl_fixed_to_double(sx_w);
- GLfloat sy = wl_fixed_to_double(sy_w);
+ float sx = wl_fixed_to_double(sx_w);
+ float sy = wl_fixed_to_double(sy_w);
input->display->serial = serial;
input->pointer_enter_serial = serial;
{
struct input *input = data;
struct window *window;
- GLfloat x = wl_fixed_to_double(x_w);
- GLfloat y = wl_fixed_to_double(y_w);
+ float x = wl_fixed_to_double(x_w);
+ float y = wl_fixed_to_double(y_w);
char **p;
input->pointer_enter_serial = serial;
{
struct input *input = data;
struct window *window = input->pointer_focus;
- GLfloat x = wl_fixed_to_double(x_w);
- GLfloat y = wl_fixed_to_double(y_w);
+ float x = wl_fixed_to_double(x_w);
+ float y = wl_fixed_to_double(y_w);
input->sx = x;
input->sy = y;
static int
menu_motion_handler(struct widget *widget,
struct input *input, uint32_t time,
- GLfloat x, GLfloat y, void *data)
+ float x, float y, void *data)
{
struct menu *menu = data;
static int
menu_enter_handler(struct widget *widget,
- struct input *input, GLfloat x, GLfloat y, void *data)
+ struct input *input, float x, float y, void *data)
{
struct menu *menu = data;
#ifndef _WINDOW_H_
#define _WINDOW_H_
-#include <GLES2/gl2.h>
#include <xkbcommon/xkbcommon.h>
#include <wayland-client.h>
#include <cairo.h>
typedef void (*window_data_handler_t)(struct window *window,
struct input *input,
- GLfloat x, GLfloat y,
+ float x, float y,
const char **types,
void *data);
typedef int (*widget_enter_handler_t)(struct widget *widget,
struct input *input,
- GLfloat x, GLfloat y, void *data);
+ float x, float y, void *data);
typedef void (*widget_leave_handler_t)(struct widget *widget,
struct input *input, void *data);
typedef int (*widget_motion_handler_t)(struct widget *widget,
struct input *input, uint32_t time,
- GLfloat x, GLfloat y, void *data);
+ float x, float y, void *data);
typedef void (*widget_button_handler_t)(struct widget *widget,
struct input *input, uint32_t time,
uint32_t button, uint32_t state,