| Flutter Linux Embedder |

Classes | Functions
fl_keyboard_pending_event.cc File Reference
`#include "flutter/shell/platform/linux/fl_keyboard_pending_event.h"`

Go to the source code of this file.

## Classes
struct | _FlKeyboardPendingEvent

## Functions
static void | fl_keyboard_pending_event_dispose (GObject *object)
static void | fl_keyboard_pending_event_class_init (FlKeyboardPendingEventClass *klass)
static void | fl_keyboard_pending_event_init (FlKeyboardPendingEvent *self)
FlKeyboardPendingEvent * | fl_keyboard_pending_event_new (FlKeyEvent *event)
FlKeyEvent * | fl_keyboard_pending_event_get_event (FlKeyboardPendingEvent *self)
uint64_t | fl_keyboard_pending_event_get_hash (FlKeyboardPendingEvent *self)
void | fl_keyboard_pending_event_mark_embedder_replied (FlKeyboardPendingEvent *self, gboolean handled)
void | fl_keyboard_pending_event_mark_channel_replied (FlKeyboardPendingEvent *self, gboolean handled)
gboolean | fl_keyboard_pending_event_get_any_handled (FlKeyboardPendingEvent *self)
gboolean | fl_keyboard_pending_event_is_complete (FlKeyboardPendingEvent *self)

## Function Documentation

## ◆ fl_keyboard_pending_event_class_init()

static void fl_keyboard_pending_event_class_init | ( | FlKeyboardPendingEventClass * | klass | ) |
| static

Definition at line 49 of file fl_keyboard_pending_event.cc.

50 {
51 G_OBJECT_CLASS(klass)->dispose = fl_keyboard_pending_event_dispose;
52 }

References fl_keyboard_pending_event_dispose().

## ◆ fl_keyboard_pending_event_dispose()

static void fl_keyboard_pending_event_dispose | ( | GObject * | object | ) |
| static

Definition at line 41 of file fl_keyboard_pending_event.cc.

41 {
42 FlKeyboardPendingEvent* self = FL_KEYBOARD_PENDING_EVENT(object);
43
44 g_clear_object(&self->event);
45
46 G_OBJECT_CLASS(fl_keyboard_pending_event_parent_class)->dispose(object);
47 }

Referenced by fl_keyboard_pending_event_class_init().

## ◆ fl_keyboard_pending_event_get_any_handled()

gboolean fl_keyboard_pending_event_get_any_handled | ( | FlKeyboardPendingEvent * | self | ) |

Definition at line 94 of file fl_keyboard_pending_event.cc.

95 {
96 g_return_val_if_fail(FL_IS_KEYBOARD_PENDING_EVENT(self), FALSE);
97 return self->embedder_handled || self->channel_handled;
98 }

Referenced by responder_handle_event_callback().

## ◆ fl_keyboard_pending_event_get_event()

FlKeyEvent* fl_keyboard_pending_event_get_event | ( | FlKeyboardPendingEvent * | self | ) |

Definition at line 68 of file fl_keyboard_pending_event.cc.

68 {
69 g_return_val_if_fail(FL_IS_KEYBOARD_PENDING_EVENT(self), nullptr);
70 return self->event;
71 }

Referenced by responder_handle_event_callback().

## ◆ fl_keyboard_pending_event_get_hash()

uint64_t fl_keyboard_pending_event_get_hash | ( | FlKeyboardPendingEvent * | self | ) |

Definition at line 73 of file fl_keyboard_pending_event.cc.

73 {
74 g_return_val_if_fail(FL_IS_KEYBOARD_PENDING_EVENT(self), 0);
75 return self->hash;
76 }

Referenced by compare_pending_by_hash().

## ◆ fl_keyboard_pending_event_init()

static void fl_keyboard_pending_event_init | ( | FlKeyboardPendingEvent * | self | ) |
| static

Definition at line 54 of file fl_keyboard_pending_event.cc.

54 {}

## ◆ fl_keyboard_pending_event_is_complete()

gboolean fl_keyboard_pending_event_is_complete | ( | FlKeyboardPendingEvent * | self | ) |

Definition at line 100 of file fl_keyboard_pending_event.cc.

100 {
101 g_return_val_if_fail(FL_IS_KEYBOARD_PENDING_EVENT(self), FALSE);
102 return self->embedder_replied && self->channel_replied;
103 }

Referenced by responder_handle_event_callback().

## ◆ fl_keyboard_pending_event_mark_channel_replied()

void fl_keyboard_pending_event_mark_channel_replied | ( | FlKeyboardPendingEvent * | self,
|  | gboolean | handled
| ) |  |

Definition at line 86 of file fl_keyboard_pending_event.cc.

88 {
89 g_return_if_fail(FL_IS_KEYBOARD_PENDING_EVENT(self));
90 self->channel_replied = true;
91 self->channel_handled = handled;
92 }

Referenced by responder_handle_channel_event_cb().

## ◆ fl_keyboard_pending_event_mark_embedder_replied()

void fl_keyboard_pending_event_mark_embedder_replied | ( | FlKeyboardPendingEvent * | self,
|  | gboolean | handled
| ) |  |

Definition at line 78 of file fl_keyboard_pending_event.cc.

80 {
81 g_return_if_fail(FL_IS_KEYBOARD_PENDING_EVENT(self));
82 self->embedder_replied = true;
83 self->embedder_handled = handled;
84 }

Referenced by responder_handle_embedder_event_callback().

## ◆ fl_keyboard_pending_event_new()

FlKeyboardPendingEvent* fl_keyboard_pending_event_new | ( | FlKeyEvent * | event | ) |

Definition at line 58 of file fl_keyboard_pending_event.cc.

58 {
59 FlKeyboardPendingEvent* self = FL_KEYBOARD_PENDING_EVENT(
60 g_object_new(fl_keyboard_pending_event_get_type(), nullptr));
61
62 self->event = FL_KEY_EVENT(g_object_ref(event));
63 self->hash = fl_key_event_hash(self->event);
64
65 return self;
66 }

References fl_key_event_hash().

Referenced by fl_keyboard_manager_handle_event().

fl_key_event_hash
uint64_t fl_key_event_hash(FlKeyEvent *self)
Definition: fl_key_event.cc:114
fl_keyboard_pending_event_dispose
static void fl_keyboard_pending_event_dispose(GObject *object)
Definition: fl_keyboard_pending_event.cc:41