  | 
  
    Flutter Linux Embedder
    
   | 
           
 | 
 
 
 
 
Go to the documentation of this file.
   36 G_DEFINE_TYPE(FlWindowingChannel, fl_windowing_channel, G_TYPE_OBJECT)
 
   63   if (strcmp(text, 
"WindowState.restored") == 0) {
 
   66   } 
else if (strcmp(text, 
"WindowState.maximized") == 0) {
 
   69   } 
else if (strcmp(text, 
"WindowState.minimized") == 0) {
 
   82       return "WindowState.restored";
 
   84       return "WindowState.maximized";
 
   86       return "WindowState.minimized";
 
  109   if (min_size_value != 
nullptr) {
 
  119   if (max_size_value != 
nullptr) {
 
  128   const gchar* title = 
nullptr;
 
  129   if (title_value != 
nullptr) {
 
  138   if (state_value != 
nullptr) {
 
  145   return self->vtable->create_regular(size, min_size, max_size, title, 
state,
 
  158   if (view_id_value == 
nullptr ||
 
  167   if (size_value != 
nullptr) {
 
  175   const gchar* title = 
nullptr;
 
  176   if (title_value != 
nullptr) {
 
  185   if (state_value != 
nullptr) {
 
  192   return self->vtable->modify_regular(view_id, size, title, 
state,
 
  205   if (view_id_value == 
nullptr ||
 
  212   return self->vtable->destroy_window(view_id, self->user_data);
 
  219   FlWindowingChannel* 
self = FL_WINDOWING_CHANNEL(
user_data);
 
  223   g_autoptr(FlMethodResponse) response = 
nullptr;
 
  235   if (response != 
nullptr) {
 
  236     g_autoptr(GError) 
error = 
nullptr;
 
  238       g_warning(
"Failed to send method call response: %s", 
error->message);
 
  244   FlWindowingChannel* 
self = FL_WINDOWING_CHANNEL(
object);
 
  246   g_clear_object(&self->channel);
 
  248   G_OBJECT_CLASS(fl_windowing_channel_parent_class)->dispose(
object);
 
  260   FlWindowingChannel* 
self = FL_WINDOWING_CHANNEL(
 
  261       g_object_new(fl_windowing_channel_get_type(), 
nullptr));
 
  263   self->vtable = vtable;
 
  
 
static void method_call_cb(FlMethodChannel *channel, FlMethodCall *method_call, gpointer user_data)
 
static FlMethodResponse * destroy_window(FlWindowingChannel *self, FlValue *args)
 
static void fl_windowing_channel_dispose(GObject *object)
 
static constexpr char kMaxSizeKey[]
 
static gboolean parse_window_state_value(FlValue *value, FlWindowState *state)
 
@ FL_WINDOW_STATE_RESTORED
 
G_MODULE_EXPORT FlMethodChannel * fl_method_channel_new(FlBinaryMessenger *messenger, const gchar *name, FlMethodCodec *codec)
 
FlWindowingChannelVTable * vtable
 
G_MODULE_EXPORT FlMethodErrorResponse * fl_method_error_response_new(const gchar *code, const gchar *message, FlValue *details)
 
static constexpr char kBadArgumentsError[]
 
G_MODULE_EXPORT void fl_value_set_string_take(FlValue *self, const gchar *key, FlValue *value)
 
G_MODULE_EXPORT FlMethodNotImplementedResponse * fl_method_not_implemented_response_new()
 
G_MODULE_EXPORT FlStandardMethodCodec * fl_standard_method_codec_new()
 
static FlWindowingSize * parse_size_value(FlValue *value)
 
static void fl_windowing_channel_class_init(FlWindowingChannelClass *klass)
 
G_MODULE_EXPORT FlValue * fl_value_new_list()
 
static constexpr char kTitleKey[]
 
static constexpr char kSizeKey[]
 
typedefG_BEGIN_DECLS struct _FlValue FlValue
 
static constexpr char kViewIdKey[]
 
FlWindowingChannel * fl_windowing_channel_new(FlBinaryMessenger *messenger, FlWindowingChannelVTable *vtable, gpointer user_data)
 
@ FL_WINDOW_STATE_UNDEFINED
 
FlMethodChannel * channel
 
static constexpr char kChannelName[]
 
G_MODULE_EXPORT FlValue * fl_value_lookup_string(FlValue *self, const gchar *key)
 
G_MODULE_EXPORT FlValue * fl_value_new_int(int64_t value)
 
const G_MODULE_EXPORT gchar * fl_value_get_string(FlValue *self)
 
G_MODULE_EXPORT FlMethodSuccessResponse * fl_method_success_response_new(FlValue *result)
 
G_MODULE_EXPORT int64_t fl_value_get_int(FlValue *self)
 
G_BEGIN_DECLS G_MODULE_EXPORT FlValue gpointer user_data
 
@ FL_WINDOW_STATE_MINIMIZED
 
static void fl_windowing_channel_init(FlWindowingChannel *self)
 
G_MODULE_EXPORT gboolean fl_method_call_respond(FlMethodCall *self, FlMethodResponse *response, GError **error)
 
G_MODULE_EXPORT FlValue * fl_value_new_map()
 
G_MODULE_EXPORT FlValueType fl_value_get_type(FlValue *self)
 
static constexpr char kStateKey[]
 
G_MODULE_EXPORT FlValue * fl_value_get_list_value(FlValue *self, size_t index)
 
G_BEGIN_DECLS G_MODULE_EXPORT FlMethodCall * method_call
 
FlMethodResponse * fl_windowing_channel_make_destroy_window_response()
 
@ FL_WINDOW_STATE_MAXIMIZED
 
const G_MODULE_EXPORT gchar * fl_method_call_get_name(FlMethodCall *self)
 
G_DEFINE_TYPE(FlBasicMessageChannelResponseHandle, fl_basic_message_channel_response_handle, G_TYPE_OBJECT) static void fl_basic_message_channel_response_handle_dispose(GObject *object)
 
G_MODULE_EXPORT double fl_value_get_float(FlValue *self)
 
G_MODULE_EXPORT void fl_value_append_take(FlValue *self, FlValue *value)
 
G_MODULE_EXPORT size_t fl_value_get_length(FlValue *self)
 
static gboolean is_valid_size_argument(FlValue *value)
 
static constexpr char kDestroyWindowMethod[]
 
G_MODULE_EXPORT void fl_value_set_string(FlValue *self, const gchar *key, FlValue *value)
 
G_MODULE_EXPORT void fl_method_channel_set_method_call_handler(FlMethodChannel *self, FlMethodChannelMethodCallHandler handler, gpointer user_data, GDestroyNotify destroy_notify)
 
static constexpr char kMinSizeKey[]
 
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
 
const uint8_t uint32_t uint32_t GError ** error
 
static FlMethodResponse * modify_regular(FlWindowingChannel *self, FlValue *args)
 
static constexpr char kModifyRegularMethod[]
 
FlMethodResponse * fl_windowing_channel_make_create_regular_response(int64_t view_id, FlWindowingSize *size, FlWindowState state)
 
G_MODULE_EXPORT FlValue * fl_value_new_float(double value)
 
static FlMethodResponse * create_regular(FlWindowingChannel *self, FlValue *args)
 
G_MODULE_EXPORT FlValue * fl_method_call_get_args(FlMethodCall *self)
 
FlMethodResponse * fl_windowing_channel_make_modify_regular_response()
 
G_MODULE_EXPORT FlValue * fl_value_new_string(const gchar *value)
 
static constexpr char kCreateRegularMethod[]
 
static const gchar * window_state_to_string(FlWindowState state)