#include "flutter/shell/platform/linux/fl_window_state_monitor.h"
#include <gtk/gtk.h>
#include "flutter/shell/platform/linux/public/flutter_linux/fl_string_codec.h"
Go to the source code of this file.
Classes | |
struct | _FlWindowStateMonitor |
Functions | |
G_DEFINE_TYPE (FlWindowStateMonitor, fl_window_state_monitor, G_TYPE_OBJECT) | |
static void | send_lifecycle_state (FlWindowStateMonitor *self, const gchar *lifecycle_state) |
static gboolean | is_hidden (GdkWindowState state) |
static gboolean | window_state_event_cb (FlWindowStateMonitor *self, GdkEvent *event) |
static void | fl_window_state_monitor_dispose (GObject *object) |
static void | fl_window_state_monitor_class_init (FlWindowStateMonitorClass *klass) |
static void | fl_window_state_monitor_init (FlWindowStateMonitor *self) |
FlWindowStateMonitor * | fl_window_state_monitor_new (FlBinaryMessenger *messenger, GtkWindow *window) |
Variables | |
static constexpr const char * | kFlutterLifecycleChannel = "flutter/lifecycle" |
static constexpr const char * | kAppLifecycleStateResumed |
static constexpr const char * | kAppLifecycleStateInactive |
static constexpr const char * | kAppLifecycleStateHidden |
|
static |
Definition at line 97 of file fl_window_state_monitor.cc.
References fl_window_state_monitor_dispose().
|
static |
Definition at line 85 of file fl_window_state_monitor.cc.
Referenced by fl_window_state_monitor_class_init().
|
static |
Definition at line 102 of file fl_window_state_monitor.cc.
FlWindowStateMonitor* fl_window_state_monitor_new | ( | FlBinaryMessenger * | messenger, |
GtkWindow * | window | ||
) |
FlWindowStateMonitor:
Monitors a GtkWindow and reports state change events to the Flutter engine. fl_window_state_monitor_new: @messenger: an #FlBinaryMessenger. @window: a #GtkWindow.
Creates a new window state manager to monitor @window and report events to @messenger.
Returns: a new #FlWindowStateMonitor.
Definition at line 104 of file fl_window_state_monitor.cc.
References window_state_event_cb().
Referenced by realize_cb(), and TEST().
G_DEFINE_TYPE | ( | FlWindowStateMonitor | , |
fl_window_state_monitor | , | ||
G_TYPE_OBJECT | |||
) |
|
static |
Definition at line 54 of file fl_window_state_monitor.cc.
References state.
Referenced by window_state_event_cb().
|
static |
Definition at line 38 of file fl_window_state_monitor.cc.
References error, fl_binary_messenger_send_on_channel(), fl_message_codec_encode_message(), fl_string_codec_new(), fl_value_new_string(), kFlutterLifecycleChannel, and value.
Referenced by window_state_event_cb().
|
static |
Definition at line 60 of file fl_window_state_monitor.cc.
References is_hidden(), kAppLifecycleStateHidden, kAppLifecycleStateInactive, kAppLifecycleStateResumed, send_lifecycle_state(), and state.
Referenced by fl_window_state_monitor_new().
|
staticconstexpr |
Definition at line 17 of file fl_window_state_monitor.cc.
Referenced by window_state_event_cb().
|
staticconstexpr |
Definition at line 15 of file fl_window_state_monitor.cc.
Referenced by window_state_event_cb().
|
staticconstexpr |
Definition at line 13 of file fl_window_state_monitor.cc.
Referenced by window_state_event_cb().
|
staticconstexpr |
Definition at line 11 of file fl_window_state_monitor.cc.
Referenced by send_lifecycle_state().