|
marco 1.29.1
Window manager
|
#include "common.h"#include "types.h"#include <X11/Xlib.h>#include <X11/Xutil.h>#include <glib.h>#include <gdk-pixbuf/gdk-pixbuf.h>#include <cairo/cairo.h>#include "tabpopup.h"#include "tile-preview.h"Macros | |
| #define | META_PRIORITY_RESIZE (G_PRIORITY_HIGH_IDLE + 15) |
Typedefs | |
| typedef struct _MetaUI | MetaUI |
| typedef struct _MetaImageWindow | MetaImageWindow |
| typedef gboolean(* | MetaEventFunc) (XEvent *xevent, gpointer data) |
Enumerations | |
| enum | MetaUIDirection { META_UI_DIRECTION_LTR , META_UI_DIRECTION_RTL } |
Functions | |
| void | meta_ui_init (int *argc, char ***argv) |
| Display * | meta_ui_get_display (void) |
| 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_theme_get_frame_borders (MetaUI *ui, MetaFrameType type, MetaFrameFlags flags, MetaFrameBorders *borders) |
| void | meta_ui_get_frame_borders (MetaUI *ui, Window frame_xwindow, MetaFrameBorders *borders) |
| Window | meta_ui_create_frame_window (MetaUI *ui, Display *xdisplay, Visual *xvisual, gint x, gint y, gint width, gint height) |
| 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_apply_frame_shape (MetaUI *ui, MetaDisplay *display, Window xwindow, int new_window_width, int new_window_height, gboolean window_has_shape) |
| cairo_region_t * | meta_ui_get_frame_bounds (MetaUI *ui, Window xwindow, int window_width, int window_height) |
| void | meta_ui_get_corner_radiuses (MetaUI *ui, Window xwindow, float *top_left, float *top_right, float *bottom_left, float *bottom_right) |
| void | meta_ui_queue_frame_draw (MetaUI *ui, Window xwindow) |
| void | meta_ui_set_frame_title (MetaUI *ui, Window xwindow, const char *title) |
| void | meta_ui_update_frame_style (MetaUI *ui, Window window) |
| void | meta_ui_repaint_frame (MetaUI *ui, Window xwindow) |
| 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) |
| 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) |
| GdkPixbuf * | meta_ui_get_window_icon_from_desktop_id (MetaUI *ui, char *desktop_id) |
| GdkPixbuf * | meta_ui_get_mini_icon_from_desktop_id (MetaUI *ui, char *desktop_id) |
| gboolean | meta_ui_window_should_not_cause_focus (Display *xdisplay, Window xwindow) |
| 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) |
| gboolean | meta_ui_parse_modifier (const char *accel, MetaVirtualModifier *mask) |
| gchar * | meta_ui_accelerator_name (unsigned int keysym, 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_surface (cairo_surface_t *surface) |
| #define META_PRIORITY_RESIZE (G_PRIORITY_HIGH_IDLE + 15) |
| typedef gboolean(* MetaEventFunc) (XEvent *xevent, gpointer data) |
| typedef struct _MetaImageWindow MetaImageWindow |
| enum MetaUIDirection |
| 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 | ||
| ) |
References NULL.
Referenced by try_pixmap_and_mask().
| gchar * meta_ui_accelerator_name | ( | unsigned int | keysym, |
| MetaVirtualModifier | mask | ||
| ) |
| void meta_ui_add_event_func | ( | Display * | xdisplay, |
| MetaEventFunc | func, | ||
| gpointer | data | ||
| ) |
References _EventFunc::data, ef, filter_func(), _EventFunc::func, and NULL.
Referenced by meta_display_open().
| void meta_ui_apply_frame_shape | ( | MetaUI * | ui, |
| MetaDisplay * | display, | ||
| Window | xwindow, | ||
| int | new_window_width, | ||
| int | new_window_height, | ||
| gboolean | window_has_shape | ||
| ) |
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 | ||
| ) |
References FALSE, _MetaUI::frames, meta_frames_manage_window(), NULL, screen, and set_background_none().
Referenced by meta_window_ensure_frame().
| void meta_ui_destroy_frame_window | ( | MetaUI * | ui, |
| Window | xwindow | ||
| ) |
References _MetaUI::frames, and meta_frames_unmanage_window().
Referenced by meta_window_destroy_frame().
| void meta_ui_free | ( | MetaUI * | ui | ) |
References _MetaUI::frames, NULL, and _MetaUI::xdisplay.
Referenced by meta_screen_free().
| void meta_ui_get_corner_radiuses | ( | MetaUI * | ui, |
| Window | xwindow, | ||
| float * | top_left, | ||
| float * | top_right, | ||
| float * | bottom_left, | ||
| float * | bottom_right | ||
| ) |
References _MetaUI::frames, and meta_frames_get_corner_radiuses().
Referenced by meta_frame_get_corner_radiuses().
| GdkPixbuf * meta_ui_get_default_mini_icon | ( | MetaUI * | ui | ) |
References _MetaUI::frames, load_default_window_icon(), META_MINI_ICON_WIDTH, and NULL.
Referenced by get_fallback_icons().
| GdkPixbuf * meta_ui_get_default_window_icon | ( | MetaUI * | ui | ) |
References _MetaUI::frames, icon_size, load_default_window_icon(), meta_prefs_get_icon_size(), and NULL.
Referenced by get_fallback_icons().
| MetaUIDirection meta_ui_get_direction | ( | void | ) |
| Display * meta_ui_get_display | ( | void | ) |
Referenced by meta_display_open().
| int meta_ui_get_drag_threshold | ( | MetaUI * | ui | ) |
References _MetaUI::frames, and NULL.
Referenced by update_move().
| void meta_ui_get_frame_borders | ( | MetaUI * | ui, |
| Window | frame_xwindow, | ||
| MetaFrameBorders * | borders | ||
| ) |
References _MetaUI::frames, and meta_frames_get_borders().
Referenced by meta_frame_calc_borders().
| cairo_region_t * meta_ui_get_frame_bounds | ( | MetaUI * | ui, |
| Window | xwindow, | ||
| int | window_width, | ||
| int | window_height | ||
| ) |
References _MetaUI::frames, and meta_frames_get_frame_bounds().
Referenced by meta_frame_get_frame_bounds().
| GdkPixbuf * meta_ui_get_mini_icon_from_desktop_id | ( | MetaUI * | ui, |
| char * | desktop_id | ||
| ) |
References _MetaUI::frames, load_window_icon_from_desktop_id(), and META_MINI_ICON_WIDTH.
Referenced by meta_read_icons().
| GdkPixbuf * meta_ui_get_pixbuf_from_surface | ( | cairo_surface_t * | surface | ) |
| GdkPixbuf * meta_ui_get_window_icon_from_desktop_id | ( | MetaUI * | ui, |
| char * | desktop_id | ||
| ) |
References _MetaUI::frames, load_window_icon_from_desktop_id(), and meta_prefs_get_icon_size().
Referenced by meta_read_icons().
| gboolean meta_ui_have_a_theme | ( | void | ) |
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 | ||
| ) |
| void meta_ui_map_frame | ( | MetaUI * | ui, |
| Window | xwindow | ||
| ) |
References _MetaUI::xdisplay.
Referenced by meta_window_show().
| void meta_ui_move_resize_frame | ( | MetaUI * | ui, |
| Window | frame, | ||
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height | ||
| ) |
References _MetaUI::frames, and meta_frames_move_resize_frame().
Referenced by meta_frame_sync_to_window().
| MetaUI * meta_ui_new | ( | Display * | xdisplay, |
| Screen * | screen | ||
| ) |
References _MetaUI::frames, meta_frames_new(), screen, _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 | ||
| ) |
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().
| gboolean meta_ui_parse_modifier | ( | const char * | accel, |
| MetaVirtualModifier * | mask | ||
| ) |
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, NULL, and TRUE.
Referenced by mouse_button_mods_handler().
| void meta_ui_pop_delay_exposes | ( | MetaUI * | ui | ) |
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 | ) |
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 | ||
| ) |
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 | ||
| ) |
References ef, filter_func(), and NULL.
Referenced by meta_display_close().
| void meta_ui_repaint_frame | ( | MetaUI * | ui, |
| Window | xwindow | ||
| ) |
References _MetaUI::frames, and meta_frames_repaint_frame().
Referenced by meta_frame_sync_to_window().
| void meta_ui_set_current_theme | ( | const char * | name, |
| gboolean | force_reload | ||
| ) |
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 | ||
| ) |
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, | ||
| MetaFrameBorders * | borders | ||
| ) |
References _MetaUI::frames, meta_frame_borders_clear(), meta_pango_font_desc_get_text_height(), meta_prefs_get_titlebar_font(), meta_theme_get_current(), meta_theme_get_frame_borders(), meta_ui_have_a_theme(), NULL, screen, and _MetaUI::xdisplay.
Referenced by process_request_frame_extents().
| void meta_ui_unmap_frame | ( | MetaUI * | ui, |
| Window | xwindow | ||
| ) |
References _MetaUI::xdisplay.
Referenced by meta_window_hide().
| void meta_ui_update_frame_style | ( | MetaUI * | ui, |
| Window | window | ||
| ) |
References _MetaUI::frames, and meta_frames_update_frame_style().
Referenced by meta_window_ensure_frame(), and reload_gtk_theme_variant().
| gboolean meta_ui_window_is_widget | ( | MetaUI * | ui, |
| Window | xwindow | ||
| ) |
References FALSE, _MetaUI::frames, NULL, and _MetaUI::xdisplay.
Referenced by meta_display_process_key_event().
| void meta_ui_window_menu_free | ( | MetaWindowMenu * | menu | ) |
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 | ||
| ) |
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 | ||
| ) |
References meta_window_menu_popup().
Referenced by meta_window_show_menu().
| gboolean meta_ui_window_should_not_cause_focus | ( | Display * | xdisplay, |
| Window | xwindow | ||
| ) |
Referenced by event_callback().