|
marco 1.29.1
Window manager
|
#include <gtk/gtk.h>#include <gdk/gdkx.h>#include "common.h"#include "theme.h"#include "types.h"Data Structures | |
| struct | _MetaUIFrame |
| struct | _MetaFrames |
| struct | _MetaFramesClass |
Macros | |
| #define | META_TYPE_FRAMES (meta_frames_get_type ()) |
| #define | META_FRAMES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), META_TYPE_FRAMES, MetaFrames)) |
| #define | META_FRAMES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), META_TYPE_FRAMES, MetaFramesClass)) |
| #define | META_IS_FRAMES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), META_TYPE_FRAMES)) |
| #define | META_IS_FRAMES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), META_TYPE_FRAMES)) |
| #define | META_FRAMES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), META_TYPE_FRAMES, MetaFramesClass)) |
Typedefs | |
| typedef struct _MetaFrames | MetaFrames |
| typedef struct _MetaFramesClass | MetaFramesClass |
| typedef struct _MetaUIFrame | MetaUIFrame |
Functions | |
| GType | meta_frames_get_type (void) |
| MetaFrames * | meta_frames_new (void) |
| void | meta_frames_manage_window (MetaFrames *frames, Window xwindow, GdkWindow *window) |
| void | meta_frames_unmanage_window (MetaFrames *frames, Window xwindow) |
| void | meta_frames_set_title (MetaFrames *frames, Window xwindow, const char *title) |
| void | meta_frames_update_frame_style (MetaFrames *frames, Window xwindow) |
| void | meta_frames_repaint_frame (MetaFrames *frames, Window xwindow) |
| void | meta_frames_get_borders (MetaFrames *frames, Window xwindow, MetaFrameBorders *borders) |
| void | meta_frames_apply_shapes (MetaFrames *frames, MetaDisplay *meta_display, Window xwindow, int new_window_width, int new_window_height, gboolean window_has_shape) |
| cairo_region_t * | meta_frames_get_frame_bounds (MetaFrames *frames, Window xwindow, int window_width, int window_height) |
| void | meta_frames_get_corner_radiuses (MetaFrames *frames, Window xwindow, float *top_left, float *top_right, float *bottom_left, float *bottom_right) |
| void | meta_frames_move_resize_frame (MetaFrames *frames, Window xwindow, int x, int y, int width, int height) |
| void | meta_frames_queue_draw (MetaFrames *frames, Window xwindow) |
| void | meta_frames_notify_menu_hide (MetaFrames *frames) |
| Window | meta_frames_get_moving_frame (MetaFrames *frames) |
| void | meta_frames_push_delay_exposes (MetaFrames *frames) |
| void | meta_frames_pop_delay_exposes (MetaFrames *frames) |
| #define META_FRAMES | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_CAST ((obj), META_TYPE_FRAMES, MetaFrames)) |
| #define META_FRAMES_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_CAST ((klass), META_TYPE_FRAMES, MetaFramesClass)) |
| #define META_FRAMES_GET_CLASS | ( | obj | ) | (G_TYPE_INSTANCE_GET_CLASS ((obj), META_TYPE_FRAMES, MetaFramesClass)) |
| #define META_IS_FRAMES | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), META_TYPE_FRAMES)) |
| #define META_IS_FRAMES_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_TYPE ((klass), META_TYPE_FRAMES)) |
| #define META_TYPE_FRAMES (meta_frames_get_type ()) |
| typedef struct _MetaFrames MetaFrames |
| typedef struct _MetaFramesClass MetaFramesClass |
| typedef struct _MetaUIFrame MetaUIFrame |
| enum MetaFrameControl |
| void meta_frames_apply_shapes | ( | MetaFrames * | frames, |
| MetaDisplay * | meta_display, | ||
| Window | xwindow, | ||
| int | new_window_width, | ||
| int | new_window_height, | ||
| gboolean | window_has_shape | ||
| ) |
References _MetaFrameGeometry::borders, compositing_manager, FALSE, get_visible_region(), meta_core_get(), META_CORE_GET_CLIENT_XWINDOW, META_CORE_GET_END, META_DEBUG_SHAPES, meta_display_get_compositor(), meta_frames_calc_geometry(), meta_frames_lookup_window(), meta_prefs_get_compositing_manager(), NULL, screen, _MetaUIFrame::shape_applied, _MetaFrameBorders::total, TRUE, and _MetaUIFrame::xwindow.
Referenced by meta_ui_apply_frame_shape().
| void meta_frames_get_borders | ( | MetaFrames * | frames, |
| Window | xwindow, | ||
| MetaFrameBorders * | borders | ||
| ) |
References meta_frames_lookup_window(), meta_ui_frame_get_borders(), and NULL.
Referenced by meta_ui_get_frame_borders().
| void meta_frames_get_corner_radiuses | ( | MetaFrames * | frames, |
| Window | xwindow, | ||
| float * | top_left, | ||
| float * | top_right, | ||
| float * | bottom_left, | ||
| float * | bottom_right | ||
| ) |
References meta_frames_lookup_window(), and meta_ui_frame_get_corner_radiuses().
Referenced by meta_ui_get_corner_radiuses().
| cairo_region_t * meta_frames_get_frame_bounds | ( | MetaFrames * | frames, |
| Window | xwindow, | ||
| int | window_width, | ||
| int | window_height | ||
| ) |
References get_visible_region(), meta_frames_calc_geometry(), meta_frames_lookup_window(), and NULL.
Referenced by meta_ui_get_frame_bounds().
| Window meta_frames_get_moving_frame | ( | MetaFrames * | frames | ) |
| GType meta_frames_get_type | ( | void | ) |
| void meta_frames_manage_window | ( | MetaFrames * | frames, |
| Window | xwindow, | ||
| GdkWindow * | window | ||
| ) |
References _MetaUIFrame::cache_style, _MetaUIFrame::expose_delayed, FALSE, _MetaFrames::frames, meta_core_grab_buttons(), META_FRAME_CONTROL_NONE, NULL, _MetaUIFrame::prelit_control, _MetaUIFrame::shape_applied, _MetaUIFrame::style, _MetaUIFrame::text_height, _MetaUIFrame::text_layout, _MetaUIFrame::title, _MetaUIFrame::window, and _MetaUIFrame::xwindow.
Referenced by meta_ui_create_frame_window().
| void meta_frames_move_resize_frame | ( | MetaFrames * | frames, |
| Window | xwindow, | ||
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height | ||
| ) |
References invalidate_whole_window(), meta_frames_lookup_window(), and _MetaUIFrame::window.
Referenced by meta_ui_move_resize_frame().
| MetaFrames * meta_frames_new | ( | void | ) |
References META_TYPE_FRAMES, NULL, and screen.
Referenced by meta_ui_new().
| void meta_frames_notify_menu_hide | ( | MetaFrames * | frames | ) |
References meta_core_end_grab_op(), meta_core_get_grab_frame(), meta_core_get_grab_op(), META_FRAME_CONTROL_MENU, meta_frames_lookup_window(), META_GRAB_OP_CLICKING_MENU, and redraw_control().
Referenced by activate_cb(), and menu_closed().
| void meta_frames_pop_delay_exposes | ( | MetaFrames * | frames | ) |
References _MetaFrames::expose_delay_count, _MetaFrames::frames, and queue_pending_exposes_func().
Referenced by meta_ui_pop_delay_exposes().
| void meta_frames_push_delay_exposes | ( | MetaFrames * | frames | ) |
References _MetaFrames::expose_delay_count.
Referenced by meta_ui_push_delay_exposes().
| void meta_frames_queue_draw | ( | MetaFrames * | frames, |
| Window | xwindow | ||
| ) |
References invalidate_whole_window(), and meta_frames_lookup_window().
Referenced by meta_ui_queue_frame_draw().
| void meta_frames_repaint_frame | ( | MetaFrames * | frames, |
| Window | xwindow | ||
| ) |
References meta_frames_lookup_window().
Referenced by meta_ui_repaint_frame().
| void meta_frames_set_title | ( | MetaFrames * | frames, |
| Window | xwindow, | ||
| const char * | title | ||
| ) |
References invalidate_whole_window(), meta_frames_lookup_window(), _MetaUIFrame::text_layout, and _MetaUIFrame::title.
Referenced by meta_ui_set_frame_title().
| void meta_frames_unmanage_window | ( | MetaFrames * | frames, |
| Window | xwindow | ||
| ) |
References clear_tip(), _MetaFrames::frames, invalidate_all_caches(), _MetaFrames::last_motion_frame, meta_core_set_screen_cursor(), META_CURSOR_DEFAULT, meta_warning(), NULL, _MetaUIFrame::style, _MetaUIFrame::text_layout, _MetaUIFrame::title, _MetaUIFrame::window, and _MetaUIFrame::xwindow.
Referenced by meta_frames_destroy(), and meta_ui_destroy_frame_window().
| void meta_frames_update_frame_style | ( | MetaFrames * | frames, |
| Window | xwindow | ||
| ) |
References invalidate_whole_window(), meta_frames_attach_style(), and meta_frames_lookup_window().
Referenced by meta_ui_update_frame_style().