Go to the source code of this file.
Data Structures | |
| struct | _MetaUI |
| struct | _EventFunc |
| struct | _MetaImageWindow |
| struct | MetaStockIcon |
Typedefs | |
| typedef struct _EventFunc | EventFunc |
Functions | |
| static void | meta_stock_icons_init (void) |
| static void | meta_ui_accelerator_parse (const char *accel, guint *keysym, guint *keycode, GdkModifierType *keymask) |
| void | meta_ui_init (int *argc, char ***argv) |
| Display * | meta_ui_get_display (void) |
| static GdkFilterReturn | filter_func (GdkXEvent *xevent, GdkEvent *event, gpointer data) |
| void | meta_ui_add_event_func (Display *xdisplay, MetaEventFunc func, gpointer data) |
| void | meta_ui_remove_event_func (Display *xdisplay, MetaEventFunc func, gpointer data) |
| MetaUI * | meta_ui_new (Display *xdisplay, Screen *screen) |
| void | meta_ui_free (MetaUI *ui) |
| void | meta_ui_get_frame_geometry (MetaUI *ui, Window frame_xwindow, int *top_height, int *bottom_height, int *left_width, int *right_width) |
| Window | meta_ui_create_frame_window (MetaUI *ui, Display *xdisplay, Visual *xvisual, gint x, gint y, gint width, gint height, gint screen_no) |
| void | meta_ui_destroy_frame_window (MetaUI *ui, Window xwindow) |
| void | meta_ui_move_resize_frame (MetaUI *ui, Window frame, int x, int y, int width, int height) |
| void | meta_ui_map_frame (MetaUI *ui, Window xwindow) |
| void | meta_ui_unmap_frame (MetaUI *ui, Window xwindow) |
| void | meta_ui_unflicker_frame_bg (MetaUI *ui, Window xwindow, int target_width, int target_height) |
| void | meta_ui_repaint_frame (MetaUI *ui, Window xwindow) |
| void | meta_ui_reset_frame_bg (MetaUI *ui, Window xwindow) |
| void | meta_ui_apply_frame_shape (MetaUI *ui, Window xwindow, int new_window_width, int new_window_height, gboolean window_has_shape) |
| void | meta_ui_queue_frame_draw (MetaUI *ui, Window xwindow) |
| void | meta_ui_set_frame_title (MetaUI *ui, Window xwindow, const char *title) |
| MetaWindowMenu * | meta_ui_window_menu_new (MetaUI *ui, Window client_xwindow, MetaMenuOp ops, MetaMenuOp insensitive, unsigned long active_workspace, int n_workspaces, MetaWindowMenuFunc func, gpointer data) |
| void | meta_ui_window_menu_popup (MetaWindowMenu *menu, int root_x, int root_y, int button, guint32 timestamp) |
| void | meta_ui_window_menu_free (MetaWindowMenu *menu) |
| MetaImageWindow * | meta_image_window_new (Display *xdisplay, int screen_number, int max_width, int max_height) |
| void | meta_image_window_free (MetaImageWindow *iw) |
| void | meta_image_window_set_showing (MetaImageWindow *iw, gboolean showing) |
| void | meta_image_window_set (MetaImageWindow *iw, GdkPixbuf *pixbuf, int x, int y) |
| static GdkColormap * | get_cmap (GdkPixmap *pixmap) |
| GdkPixbuf * | meta_gdk_pixbuf_get_from_window (GdkPixbuf *dest, Window xwindow, int src_x, int src_y, int dest_x, int dest_y, int width, int height) |
| GdkPixbuf * | meta_gdk_pixbuf_get_from_pixmap (GdkPixbuf *dest, Pixmap xpixmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height) |
| void | meta_ui_push_delay_exposes (MetaUI *ui) |
| void | meta_ui_pop_delay_exposes (MetaUI *ui) |
| GdkPixbuf * | meta_ui_get_default_window_icon (MetaUI *ui) |
| GdkPixbuf * | meta_ui_get_default_mini_icon (MetaUI *ui) |
| gboolean | meta_ui_window_should_not_cause_focus (Display *xdisplay, Window xwindow) |
| char * | meta_text_property_to_utf8 (Display *xdisplay, const XTextProperty *prop) |
| void | meta_ui_theme_get_frame_borders (MetaUI *ui, MetaFrameType type, MetaFrameFlags flags, int *top_height, int *bottom_height, int *left_width, int *right_width) |
| void | meta_ui_set_current_theme (const char *name, gboolean force_reload) |
| gboolean | meta_ui_have_a_theme (void) |
| gboolean | meta_ui_parse_accelerator (const char *accel, unsigned int *keysym, unsigned int *keycode, MetaVirtualModifier *mask) |
| gchar * | meta_ui_accelerator_name (unsigned int keysym, MetaVirtualModifier mask) |
| gboolean | meta_ui_parse_modifier (const char *accel, MetaVirtualModifier *mask) |
| gboolean | meta_ui_window_is_widget (MetaUI *ui, Window xwindow) |
| int | meta_ui_get_drag_threshold (MetaUI *ui) |
| MetaUIDirection | meta_ui_get_direction (void) |
| GdkPixbuf * | meta_ui_get_pixbuf_from_pixmap (Pixmap pmap) |
| void | meta_ui_get_fallback_icons (GdkPixbuf **fallback_icon_p, GdkPixbuf **fallback_mini_icon_p) |
Variables | |
| static EventFunc * | ef = NULL |
| typedef struct _EventFunc EventFunc |
| static GdkFilterReturn filter_func | ( | GdkXEvent * | xevent, | |
| GdkEvent * | event, | |||
| gpointer | data | |||
| ) | [static] |
Definition at line 77 of file ui.c.
References _EventFunc::data, _EventFunc::func, and NULL.
Referenced by meta_ui_add_event_func(), and meta_ui_remove_event_func().
| static GdkColormap* get_cmap | ( | GdkPixmap * | pixmap | ) | [static] |
Definition at line 440 of file ui.c.
References NULL.
Referenced by meta_gdk_pixbuf_get_from_pixmap(), and meta_gdk_pixbuf_get_from_window().
| GdkPixbuf* meta_gdk_pixbuf_get_from_pixmap | ( | GdkPixbuf * | dest, | |
| Pixmap | xpixmap, | |||
| int | src_x, | |||
| int | src_y, | |||
| int | dest_x, | |||
| int | dest_y, | |||
| int | width, | |||
| int | height | |||
| ) |
Definition at line 516 of file ui.c.
References get_cmap(), and NULL.
Referenced by try_pixmap_and_mask().
| GdkPixbuf* meta_gdk_pixbuf_get_from_window | ( | GdkPixbuf * | dest, | |
| Window | xwindow, | |||
| int | src_x, | |||
| int | src_y, | |||
| int | dest_x, | |||
| int | dest_y, | |||
| int | width, | |||
| int | height | |||
| ) |
| void meta_image_window_free | ( | MetaImageWindow * | iw | ) |
Definition at line 386 of file ui.c.
References _MetaImageWindow::pixmap, and _MetaImageWindow::window.
| MetaImageWindow* meta_image_window_new | ( | Display * | xdisplay, | |
| int | screen_number, | |||
| int | max_width, | |||
| int | max_height | |||
| ) |
Definition at line 356 of file ui.c.
References FALSE, _MetaImageWindow::pixmap, TRUE, and _MetaImageWindow::window.
| void meta_image_window_set | ( | MetaImageWindow * | iw, | |
| GdkPixbuf * | pixbuf, | |||
| int | x, | |||
| int | y | |||
| ) |
Definition at line 407 of file ui.c.
References FALSE, _MetaImageWindow::pixmap, and _MetaImageWindow::window.
| void meta_image_window_set_showing | ( | MetaImageWindow * | iw, | |
| gboolean | showing | |||
| ) |
Definition at line 394 of file ui.c.
References meta_core_increment_event_serial(), and _MetaImageWindow::window.
| static void meta_stock_icons_init | ( | void | ) | [static] |
Definition at line 916 of file ui.c.
References FALSE, METACITY_STOCK_DELETE, METACITY_STOCK_MAXIMIZE, METACITY_STOCK_MINIMIZE, NULL, stock_delete_data, stock_maximize_data, and stock_minimize_data.
Referenced by meta_ui_init().
| char* meta_text_property_to_utf8 | ( | Display * | xdisplay, | |
| const XTextProperty * | prop | |||
| ) |
| gchar* meta_ui_accelerator_name | ( | unsigned int | keysym, | |
| MetaVirtualModifier | mask | |||
| ) |
Definition at line 808 of file ui.c.
References META_VIRTUAL_ALT_MASK, META_VIRTUAL_CONTROL_MASK, META_VIRTUAL_HYPER_MASK, META_VIRTUAL_META_MASK, META_VIRTUAL_MOD2_MASK, META_VIRTUAL_MOD3_MASK, META_VIRTUAL_MOD4_MASK, META_VIRTUAL_MOD5_MASK, META_VIRTUAL_SHIFT_MASK, and META_VIRTUAL_SUPER_MASK.
Referenced by update_binding().
| static void meta_ui_accelerator_parse | ( | const char * | accel, | |
| guint * | keysym, | |||
| guint * | keycode, | |||
| GdkModifierType * | keymask | |||
| ) | [static] |
Definition at line 737 of file ui.c.
References NULL.
Referenced by meta_ui_parse_accelerator(), and meta_ui_parse_modifier().
| void meta_ui_add_event_func | ( | Display * | xdisplay, | |
| MetaEventFunc | func, | |||
| gpointer | data | |||
| ) |
Definition at line 90 of file ui.c.
References _EventFunc::data, filter_func(), _EventFunc::func, and NULL.
| void meta_ui_apply_frame_shape | ( | MetaUI * | ui, | |
| Window | xwindow, | |||
| int | new_window_width, | |||
| int | new_window_height, | |||
| gboolean | window_has_shape | |||
| ) |
Definition at line 288 of file ui.c.
References _MetaUI::frames, and meta_frames_apply_shapes().
Referenced by meta_window_ensure_frame(), and update_shape().
| Window meta_ui_create_frame_window | ( | MetaUI * | ui, | |
| Display * | xdisplay, | |||
| Visual * | xvisual, | |||
| gint | x, | |||
| gint | y, | |||
| gint | width, | |||
| gint | height, | |||
| gint | screen_no | |||
| ) |
Definition at line 154 of file ui.c.
References FALSE, _MetaUI::frames, meta_frames_manage_window(), NULL, and screen.
Referenced by meta_window_ensure_frame().
| void meta_ui_destroy_frame_window | ( | MetaUI * | ui, | |
| Window | xwindow | |||
| ) |
Definition at line 222 of file ui.c.
References _MetaUI::frames, and meta_frames_unmanage_window().
Referenced by meta_window_destroy_frame().
| void meta_ui_free | ( | MetaUI * | ui | ) |
| GdkPixbuf* meta_ui_get_default_mini_icon | ( | MetaUI * | ui | ) |
Definition at line 606 of file ui.c.
References META_DEFAULT_ICON_NAME, META_MINI_ICON_WIDTH, and NULL.
Referenced by get_fallback_icons().
| GdkPixbuf* meta_ui_get_default_window_icon | ( | MetaUI * | ui | ) |
Definition at line 571 of file ui.c.
References META_DEFAULT_ICON_NAME, META_ICON_WIDTH, and NULL.
Referenced by get_fallback_icons().
| MetaUIDirection meta_ui_get_direction | ( | void | ) |
Definition at line 965 of file ui.c.
References META_UI_DIRECTION_LTR, and META_UI_DIRECTION_RTL.
Referenced by button_layout_handler(), handle_activate_menu(), meta_fixed_tip_show(), meta_frames_button_press_event(), meta_window_show_menu(), meta_workspace_get_neighbor(), popup_position_func(), and show_tip_now().
| int meta_ui_get_drag_threshold | ( | MetaUI * | ui | ) |
Definition at line 951 of file ui.c.
References _MetaUI::frames, and NULL.
Referenced by update_move().
| void meta_ui_get_fallback_icons | ( | GdkPixbuf ** | fallback_icon_p, | |
| GdkPixbuf ** | fallback_mini_icon_p | |||
| ) |
Definition at line 1002 of file ui.c.
References _MetaTheme::fallback_icon, _MetaTheme::fallback_mini_icon, and meta_theme_get_current().
Referenced by meta_read_icons().
| void meta_ui_get_frame_geometry | ( | MetaUI * | ui, | |
| Window | frame_xwindow, | |||
| int * | top_height, | |||
| int * | bottom_height, | |||
| int * | left_width, | |||
| int * | right_width | |||
| ) |
Definition at line 143 of file ui.c.
References _MetaUI::frames, and meta_frames_get_geometry().
Referenced by meta_frame_calc_geometry().
| GdkPixbuf* meta_ui_get_pixbuf_from_pixmap | ( | Pixmap | pmap | ) |
| gboolean meta_ui_have_a_theme | ( | void | ) |
Definition at line 731 of file ui.c.
References meta_theme_get_current(), and NULL.
Referenced by main(), and meta_ui_theme_get_frame_borders().
| void meta_ui_init | ( | int * | argc, | |
| char *** | argv | |||
| ) |
Definition at line 52 of file ui.c.
References meta_fatal(), meta_stock_icons_init(), and NULL.
Referenced by main().
| void meta_ui_map_frame | ( | MetaUI * | ui, | |
| Window | xwindow | |||
| ) |
| void meta_ui_move_resize_frame | ( | MetaUI * | ui, | |
| Window | frame, | |||
| int | x, | |||
| int | y, | |||
| int | width, | |||
| int | height | |||
| ) |
Definition at line 229 of file ui.c.
References _MetaUI::frames, and meta_frames_move_resize_frame().
Referenced by meta_frame_sync_to_window().
| MetaUI* meta_ui_new | ( | Display * | xdisplay, | |
| Screen * | screen | |||
| ) |
Definition at line 118 of file ui.c.
References _MetaUI::frames, meta_frames_new(), _MetaUI::xdisplay, and _MetaUI::xscreen.
Referenced by meta_screen_new().
| gboolean meta_ui_parse_accelerator | ( | const char * | accel, | |
| unsigned int * | keysym, | |||
| unsigned int * | keycode, | |||
| MetaVirtualModifier * | mask | |||
| ) |
Definition at line 753 of file ui.c.
References FALSE, meta_ui_accelerator_parse(), META_VIRTUAL_ALT_MASK, META_VIRTUAL_CONTROL_MASK, META_VIRTUAL_HYPER_MASK, META_VIRTUAL_META_MASK, META_VIRTUAL_MOD2_MASK, META_VIRTUAL_MOD3_MASK, META_VIRTUAL_MOD4_MASK, META_VIRTUAL_MOD5_MASK, META_VIRTUAL_SHIFT_MASK, META_VIRTUAL_SUPER_MASK, and TRUE.
Referenced by update_binding(), and update_list_binding().
| gboolean meta_ui_parse_modifier | ( | const char * | accel, | |
| MetaVirtualModifier * | mask | |||
| ) |
Definition at line 844 of file ui.c.
References FALSE, meta_ui_accelerator_parse(), META_VIRTUAL_ALT_MASK, META_VIRTUAL_CONTROL_MASK, META_VIRTUAL_HYPER_MASK, META_VIRTUAL_META_MASK, META_VIRTUAL_MOD2_MASK, META_VIRTUAL_MOD3_MASK, META_VIRTUAL_MOD4_MASK, META_VIRTUAL_MOD5_MASK, META_VIRTUAL_SHIFT_MASK, META_VIRTUAL_SUPER_MASK, and TRUE.
Referenced by mouse_button_mods_handler().
| void meta_ui_pop_delay_exposes | ( | MetaUI * | ui | ) |
Definition at line 565 of file ui.c.
References _MetaUI::frames, and meta_frames_pop_delay_exposes().
Referenced by effects_draw_box_animation_timeout(), and meta_effects_end_wireframe().
| void meta_ui_push_delay_exposes | ( | MetaUI * | ui | ) |
Definition at line 559 of file ui.c.
References _MetaUI::frames, and meta_frames_push_delay_exposes().
Referenced by draw_box_animation(), and meta_effects_begin_wireframe().
| void meta_ui_queue_frame_draw | ( | MetaUI * | ui, | |
| Window | xwindow | |||
| ) |
Definition at line 300 of file ui.c.
References _MetaUI::frames, and meta_frames_queue_draw().
Referenced by meta_frame_queue_draw(), and redraw_icon().
| void meta_ui_remove_event_func | ( | Display * | xdisplay, | |
| MetaEventFunc | func, | |||
| gpointer | data | |||
| ) |
Definition at line 105 of file ui.c.
References filter_func(), and NULL.
Referenced by meta_display_close().
| void meta_ui_repaint_frame | ( | MetaUI * | ui, | |
| Window | xwindow | |||
| ) |
Definition at line 274 of file ui.c.
References _MetaUI::frames, and meta_frames_repaint_frame().
Referenced by meta_frame_sync_to_window().
| void meta_ui_reset_frame_bg | ( | MetaUI * | ui, | |
| Window | xwindow | |||
| ) |
Definition at line 281 of file ui.c.
References _MetaUI::frames, and meta_frames_reset_bg().
Referenced by meta_frame_sync_to_window(), and meta_window_ensure_frame().
| void meta_ui_set_current_theme | ( | const char * | name, | |
| gboolean | force_reload | |||
| ) |
Definition at line 723 of file ui.c.
References meta_invalidate_default_icons(), and meta_theme_set_current().
Referenced by event_callback(), main(), and prefs_changed_callback().
| void meta_ui_set_frame_title | ( | MetaUI * | ui, | |
| Window | xwindow, | |||
| const char * | title | |||
| ) |
Definition at line 308 of file ui.c.
References _MetaUI::frames, and meta_frames_set_title().
Referenced by meta_window_ensure_frame(), and set_window_title().
| void meta_ui_theme_get_frame_borders | ( | MetaUI * | ui, | |
| MetaFrameType | type, | |||
| MetaFrameFlags | flags, | |||
| int * | top_height, | |||
| int * | bottom_height, | |||
| int * | left_width, | |||
| int * | right_width | |||
| ) |
Definition at line 685 of file ui.c.
References _MetaUI::frames, meta_pango_font_desc_get_text_height(), meta_prefs_get_titlebar_font(), meta_theme_get_current(), meta_theme_get_frame_borders(), and meta_ui_have_a_theme().
Referenced by process_request_frame_extents().
| void meta_ui_unflicker_frame_bg | ( | MetaUI * | ui, | |
| Window | xwindow, | |||
| int | target_width, | |||
| int | target_height | |||
| ) |
Definition at line 264 of file ui.c.
References _MetaUI::frames, and meta_frames_unflicker_bg().
Referenced by meta_frame_sync_to_window().
| void meta_ui_unmap_frame | ( | MetaUI * | ui, | |
| Window | xwindow | |||
| ) |
| gboolean meta_ui_window_is_widget | ( | MetaUI * | ui, | |
| Window | xwindow | |||
| ) |
Definition at line 891 of file ui.c.
References FALSE, _MetaUI::frames, and NULL.
Referenced by meta_display_process_key_event().
| void meta_ui_window_menu_free | ( | MetaWindowMenu * | menu | ) |
Definition at line 344 of file ui.c.
References meta_window_menu_free().
Referenced by menu_callback(), meta_window_free(), and meta_window_show_menu().
| MetaWindowMenu* meta_ui_window_menu_new | ( | MetaUI * | ui, | |
| Window | client_xwindow, | |||
| MetaMenuOp | ops, | |||
| MetaMenuOp | insensitive, | |||
| unsigned long | active_workspace, | |||
| int | n_workspaces, | |||
| MetaWindowMenuFunc | func, | |||
| gpointer | data | |||
| ) |
Definition at line 316 of file ui.c.
References _MetaUI::frames, and meta_window_menu_new().
Referenced by meta_window_show_menu().
| void meta_ui_window_menu_popup | ( | MetaWindowMenu * | menu, | |
| int | root_x, | |||
| int | root_y, | |||
| int | button, | |||
| guint32 | timestamp | |||
| ) |
Definition at line 334 of file ui.c.
References meta_window_menu_popup().
Referenced by meta_window_show_menu().
| gboolean meta_ui_window_should_not_cause_focus | ( | Display * | xdisplay, | |
| Window | xwindow | |||
| ) |
1.5.5