LCOV - code coverage report
Current view: top level - src/libvalent/input - valent-input-adapter.h (source / functions) Coverage Total Hit
Test: Code Coverage Lines: 100.0 % 1 1
Test Date: 2024-04-23 06:02:46 Functions: 100.0 % 1 1
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 50.0 % 8 4

             Branch data     Line data    Source code
       1                 :             : // SPDX-License-Identifier: GPL-3.0-or-later
       2                 :             : // SPDX-FileCopyrightText: Andy Holmes <andrew.g.r.holmes@gmail.com>
       3                 :             : 
       4                 :             : #pragma once
       5                 :             : 
       6                 :             : #if !defined (VALENT_INSIDE) && !defined (VALENT_COMPILATION)
       7                 :             : # error "Only <valent.h> can be included directly."
       8                 :             : #endif
       9                 :             : 
      10                 :             : #include "../core/valent-extension.h"
      11                 :             : 
      12                 :             : G_BEGIN_DECLS
      13                 :             : 
      14                 :             : #define VALENT_TYPE_INPUT_ADAPTER (valent_input_adapter_get_type())
      15                 :             : 
      16                 :             : VALENT_AVAILABLE_IN_1_0
      17   [ +  -  +  -  :         190 : G_DECLARE_DERIVABLE_TYPE (ValentInputAdapter, valent_input_adapter, VALENT, INPUT_ADAPTER, ValentExtension)
             +  -  +  - ]
      18                 :             : 
      19                 :             : struct _ValentInputAdapterClass
      20                 :             : {
      21                 :             :   ValentExtensionClass   parent_class;
      22                 :             : 
      23                 :             :   /* virtual functions */
      24                 :             :   void                   (*keyboard_keysym) (ValentInputAdapter *adapter,
      25                 :             :                                              uint32_t            keysym,
      26                 :             :                                              gboolean            state);
      27                 :             :   void                   (*pointer_axis)    (ValentInputAdapter *adapter,
      28                 :             :                                              double              dx,
      29                 :             :                                              double              dy);
      30                 :             :   void                   (*pointer_button)  (ValentInputAdapter *adapter,
      31                 :             :                                              unsigned int        button,
      32                 :             :                                              gboolean            state);
      33                 :             :   void                   (*pointer_motion)  (ValentInputAdapter *adapter,
      34                 :             :                                              double              dx,
      35                 :             :                                              double              dy);
      36                 :             : 
      37                 :             :   /*< private >*/
      38                 :             :   gpointer               padding[8];
      39                 :             : };
      40                 :             : 
      41                 :             : VALENT_AVAILABLE_IN_1_0
      42                 :             : void   valent_input_adapter_keyboard_keysym (ValentInputAdapter *adapter,
      43                 :             :                                              uint32_t            keysym,
      44                 :             :                                              gboolean            state);
      45                 :             : VALENT_AVAILABLE_IN_1_0
      46                 :             : void   valent_input_adapter_pointer_axis    (ValentInputAdapter *adapter,
      47                 :             :                                              double              dx,
      48                 :             :                                              double              dy);
      49                 :             : VALENT_AVAILABLE_IN_1_0
      50                 :             : void   valent_input_adapter_pointer_button  (ValentInputAdapter *adapter,
      51                 :             :                                              unsigned int        button,
      52                 :             :                                              gboolean            state);
      53                 :             : VALENT_AVAILABLE_IN_1_0
      54                 :             : void   valent_input_adapter_pointer_motion  (ValentInputAdapter *adapter,
      55                 :             :                                              double              dx,
      56                 :             :                                              double              dy);
      57                 :             : 
      58                 :             : G_END_DECLS
      59                 :             : 
        

Generated by: LCOV version 2.0-1