VLC 4.0.0-dev
Loading...
Searching...
No Matches
vlc_mouse.h File Reference
Include dependency graph for vlc_mouse.h:

Go to the source code of this file.

Data Structures

struct  vlc_mouse_t
 Mouse state. More...
 

Typedefs

typedef struct vlc_mouse_t vlc_mouse_t
 Mouse state.
 
typedef void(* vlc_mouse_event) (const vlc_mouse_t *mouse, void *user_data)
 Mouse event callback.
 

Enumerations

enum  vlc_mouse_button {
  MOUSE_BUTTON_LEFT =0 , MOUSE_BUTTON_CENTER , MOUSE_BUTTON_RIGHT , MOUSE_BUTTON_WHEEL_UP ,
  MOUSE_BUTTON_WHEEL_DOWN , MOUSE_BUTTON_WHEEL_LEFT , MOUSE_BUTTON_WHEEL_RIGHT , MOUSE_BUTTON_MAX
}
 Mouse buttons. More...
 

Functions

static void vlc_mouse_Init (vlc_mouse_t *p_mouse)
 
static void vlc_mouse_SetPressed (vlc_mouse_t *p_mouse, int i_button)
 
static void vlc_mouse_SetReleased (vlc_mouse_t *p_mouse, int i_button)
 
static void vlc_mouse_SetPosition (vlc_mouse_t *p_mouse, int i_x, int i_y)
 
static bool vlc_mouse_IsPressed (const vlc_mouse_t *p_mouse, int i_button)
 
static bool vlc_mouse_IsLeftPressed (const vlc_mouse_t *p_mouse)
 
static bool vlc_mouse_IsCenterPressed (const vlc_mouse_t *p_mouse)
 
static bool vlc_mouse_IsRightPressed (const vlc_mouse_t *p_mouse)
 
static bool vlc_mouse_IsWheelUpPressed (const vlc_mouse_t *p_mouse)
 
static bool vlc_mouse_IsWheelDownPressed (const vlc_mouse_t *p_mouse)
 
static void vlc_mouse_GetMotion (int *pi_x, int *pi_y, const vlc_mouse_t *p_old, const vlc_mouse_t *p_new)
 
static bool vlc_mouse_HasChanged (const vlc_mouse_t *p_old, const vlc_mouse_t *p_new)
 
static bool vlc_mouse_HasMoved (const vlc_mouse_t *p_old, const vlc_mouse_t *p_new)
 
static bool vlc_mouse_HasButton (const vlc_mouse_t *p_old, const vlc_mouse_t *p_new)
 
static bool vlc_mouse_HasPressed (const vlc_mouse_t *p_old, const vlc_mouse_t *p_new, int i_button)
 
static bool vlc_mouse_HasReleased (const vlc_mouse_t *p_old, const vlc_mouse_t *p_new, int i_button)
 

Typedef Documentation

◆ vlc_mouse_event

typedef void(* vlc_mouse_event) (const vlc_mouse_t *mouse, void *user_data)

Mouse event callback.

Parameters
mousenew mouse event to process, can be NULL for an invalidate state (a new vout is created or restarted).
user_data

◆ vlc_mouse_t

typedef struct vlc_mouse_t vlc_mouse_t

Mouse state.

Enumeration Type Documentation

◆ vlc_mouse_button

Mouse buttons.

Enumerator
MOUSE_BUTTON_LEFT 
MOUSE_BUTTON_CENTER 
MOUSE_BUTTON_RIGHT 
MOUSE_BUTTON_WHEEL_UP 
MOUSE_BUTTON_WHEEL_DOWN 
MOUSE_BUTTON_WHEEL_LEFT 
MOUSE_BUTTON_WHEEL_RIGHT 
MOUSE_BUTTON_MAX 

Function Documentation

◆ vlc_mouse_GetMotion()

static void vlc_mouse_GetMotion ( int *  pi_x,
int *  pi_y,
const vlc_mouse_t p_old,
const vlc_mouse_t p_new 
)
inlinestatic

◆ vlc_mouse_HasButton()

static bool vlc_mouse_HasButton ( const vlc_mouse_t p_old,
const vlc_mouse_t p_new 
)
inlinestatic

◆ vlc_mouse_HasChanged()

static bool vlc_mouse_HasChanged ( const vlc_mouse_t p_old,
const vlc_mouse_t p_new 
)
inlinestatic

◆ vlc_mouse_HasMoved()

static bool vlc_mouse_HasMoved ( const vlc_mouse_t p_old,
const vlc_mouse_t p_new 
)
inlinestatic

◆ vlc_mouse_HasPressed()

static bool vlc_mouse_HasPressed ( const vlc_mouse_t p_old,
const vlc_mouse_t p_new,
int  i_button 
)
inlinestatic

◆ vlc_mouse_HasReleased()

static bool vlc_mouse_HasReleased ( const vlc_mouse_t p_old,
const vlc_mouse_t p_new,
int  i_button 
)
inlinestatic

◆ vlc_mouse_Init()

◆ vlc_mouse_IsCenterPressed()

static bool vlc_mouse_IsCenterPressed ( const vlc_mouse_t p_mouse)
inlinestatic

◆ vlc_mouse_IsLeftPressed()

static bool vlc_mouse_IsLeftPressed ( const vlc_mouse_t p_mouse)
inlinestatic

◆ vlc_mouse_IsPressed()

static bool vlc_mouse_IsPressed ( const vlc_mouse_t p_mouse,
int  i_button 
)
inlinestatic

◆ vlc_mouse_IsRightPressed()

static bool vlc_mouse_IsRightPressed ( const vlc_mouse_t p_mouse)
inlinestatic

◆ vlc_mouse_IsWheelDownPressed()

static bool vlc_mouse_IsWheelDownPressed ( const vlc_mouse_t p_mouse)
inlinestatic

◆ vlc_mouse_IsWheelUpPressed()

static bool vlc_mouse_IsWheelUpPressed ( const vlc_mouse_t p_mouse)
inlinestatic

◆ vlc_mouse_SetPosition()

static void vlc_mouse_SetPosition ( vlc_mouse_t p_mouse,
int  i_x,
int  i_y 
)
inlinestatic

◆ vlc_mouse_SetPressed()

static void vlc_mouse_SetPressed ( vlc_mouse_t p_mouse,
int  i_button 
)
inlinestatic

◆ vlc_mouse_SetReleased()

static void vlc_mouse_SetReleased ( vlc_mouse_t p_mouse,
int  i_button 
)
inlinestatic