Flutter Linux Embedder
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
fl_keyboard_view_delegate.h File Reference
#include <gdk/gdk.h>
#include <cinttypes>
#include <functional>
#include <memory>
#include "flutter/shell/platform/embedder/embedder.h"
#include "flutter/shell/platform/linux/fl_key_event.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_binary_messenger.h"

Go to the source code of this file.

Classes

struct  _FlKeyboardViewDelegateInterface
 

Functions

G_BEGIN_DECLS G_DECLARE_INTERFACE (FlKeyboardViewDelegate, fl_keyboard_view_delegate, FL, KEYBOARD_VIEW_DELEGATE, GObject)
 
gboolean fl_keyboard_view_delegate_text_filter_key_press (FlKeyboardViewDelegate *delegate, FlKeyEvent *event)
 

Function Documentation

◆ fl_keyboard_view_delegate_text_filter_key_press()

gboolean fl_keyboard_view_delegate_text_filter_key_press ( FlKeyboardViewDelegate *  delegate,
FlKeyEvent *  event 
)

fl_keyboard_view_delegate_text_filter_key_press:

Handles FlKeyboardHandler's request to check if the GTK text input IM filter would like to handle a GDK event.

The ownership of the event is kept by the keyboard handler.

Definition at line 14 of file fl_keyboard_view_delegate.cc.

16  {
17  g_return_val_if_fail(FL_IS_KEYBOARD_VIEW_DELEGATE(self), false);
18  g_return_val_if_fail(event != nullptr, false);
19 
20  return FL_KEYBOARD_VIEW_DELEGATE_GET_IFACE(self)->text_filter_key_press(
21  self, event);
22 }

Referenced by responder_handle_event_callback().

◆ G_DECLARE_INTERFACE()

G_BEGIN_DECLS G_DECLARE_INTERFACE ( FlKeyboardViewDelegate  ,
fl_keyboard_view_delegate  ,
FL  ,
KEYBOARD_VIEW_DELEGATE  ,
GObject   
)