Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::testing::MockIMContext Class Reference

#include <mock_im_context.h>

Public Member Functions

 ~MockIMContext ()
 
 operator GtkIMContext * ()
 
 MOCK_METHOD (void, gtk_im_context_set_client_window,(GtkIMContext *context, GdkWindow *window))
 
 MOCK_METHOD (void, gtk_im_context_get_preedit_string,(GtkIMContext *context, gchar **str, PangoAttrList **attrs, gint *cursor_pos))
 
 MOCK_METHOD (gboolean, gtk_im_context_filter_keypress,(GtkIMContext *context, GdkEventKey *event))
 
 MOCK_METHOD (gboolean, gtk_im_context_focus_in,(GtkIMContext *context))
 
 MOCK_METHOD (void, gtk_im_context_focus_out,(GtkIMContext *context))
 
 MOCK_METHOD (void, gtk_im_context_reset,(GtkIMContext *context))
 
 MOCK_METHOD (void, gtk_im_context_set_cursor_location,(GtkIMContext *context, GdkRectangle *area))
 
 MOCK_METHOD (void, gtk_im_context_set_use_preedit,(GtkIMContext *context, gboolean use_preedit))
 
 MOCK_METHOD (void, gtk_im_context_set_surrounding,(GtkIMContext *context, const gchar *text, gint len, gint cursor_index))
 
 MOCK_METHOD (gboolean, gtk_im_context_get_surrounding,(GtkIMContext *context, gchar **text, gint *cursor_index))
 

Detailed Description

Definition at line 15 of file mock_im_context.h.

Constructor & Destructor Documentation

◆ ~MockIMContext()

MockIMContext::~MockIMContext ( )

Definition at line 110 of file mock_im_context.cc.

110 {
111 if (FL_IS_MOCK_IM_CONTEXT(instance_)) {
112 g_clear_object(&instance_);
113 }
114}

Member Function Documentation

◆ MOCK_METHOD() [1/10]

flutter::testing::MockIMContext::MOCK_METHOD ( gboolean  ,
gtk_im_context_filter_keypress  ,
(GtkIMContext *context, GdkEventKey *event  
)

◆ MOCK_METHOD() [2/10]

flutter::testing::MockIMContext::MOCK_METHOD ( gboolean  ,
gtk_im_context_focus_in  ,
(GtkIMContext *context)   
)

◆ MOCK_METHOD() [3/10]

flutter::testing::MockIMContext::MOCK_METHOD ( gboolean  ,
gtk_im_context_get_surrounding  ,
(GtkIMContext *context, gchar **text, gint *cursor_index)   
)

◆ MOCK_METHOD() [4/10]

flutter::testing::MockIMContext::MOCK_METHOD ( void  ,
gtk_im_context_focus_out  ,
(GtkIMContext *context)   
)

◆ MOCK_METHOD() [5/10]

flutter::testing::MockIMContext::MOCK_METHOD ( void  ,
gtk_im_context_get_preedit_string  ,
(GtkIMContext *context, gchar **str, PangoAttrList **attrs, gint *cursor_pos)   
)

◆ MOCK_METHOD() [6/10]

flutter::testing::MockIMContext::MOCK_METHOD ( void  ,
gtk_im_context_reset  ,
(GtkIMContext *context)   
)

◆ MOCK_METHOD() [7/10]

flutter::testing::MockIMContext::MOCK_METHOD ( void  ,
gtk_im_context_set_client_window  ,
(GtkIMContext *context, GdkWindow *window  
)

◆ MOCK_METHOD() [8/10]

flutter::testing::MockIMContext::MOCK_METHOD ( void  ,
gtk_im_context_set_cursor_location  ,
(GtkIMContext *context, GdkRectangle *area)   
)

◆ MOCK_METHOD() [9/10]

flutter::testing::MockIMContext::MOCK_METHOD ( void  ,
gtk_im_context_set_surrounding  ,
(GtkIMContext *context, const gchar *text, gint len, gint cursor_index)   
)

◆ MOCK_METHOD() [10/10]

flutter::testing::MockIMContext::MOCK_METHOD ( void  ,
gtk_im_context_set_use_preedit  ,
(GtkIMContext *context, gboolean use_preedit)   
)

◆ operator GtkIMContext *()

MockIMContext::operator GtkIMContext * ( )

Definition at line 116 of file mock_im_context.cc.

116 {
117 if (instance_ == nullptr) {
118 instance_ = fl_mock_im_context_new(this);
119 }
120 return instance_;
121}
static GtkIMContext * fl_mock_im_context_new(MockIMContext *mock)

The documentation for this class was generated from the following files: