ui.c File Reference

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)
MetaUImeta_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)
MetaWindowMenumeta_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)
MetaImageWindowmeta_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 EventFuncef = NULL


Typedef Documentation

typedef struct _EventFunc EventFunc

Definition at line 66 of file ui.c.


Function Documentation

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 
)

Definition at line 477 of file ui.c.

References get_cmap(), and NULL.

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]

char* meta_text_property_to_utf8 ( Display *  xdisplay,
const XTextProperty *  prop 
)

Definition at line 658 of file ui.c.

References NULL.

Referenced by text_property_from_results().

gchar* meta_ui_accelerator_name ( unsigned int  keysym,
MetaVirtualModifier  mask 
)

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  ) 

Definition at line 135 of file ui.c.

References _MetaUI::frames.

Referenced by meta_screen_free().

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   ) 

Display* meta_ui_get_display ( void   ) 

Definition at line 61 of file ui.c.

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 
)

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  ) 

Definition at line 974 of file ui.c.

References NULL, and screen.

Referenced by get_window_pixbuf().

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 
)

Definition at line 240 of file ui.c.

Referenced by meta_window_show().

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 
)

gboolean meta_ui_parse_modifier ( const char *  accel,
MetaVirtualModifier mask 
)

void meta_ui_pop_delay_exposes ( MetaUI ui  ) 

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 
)

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 
)

Definition at line 252 of file ui.c.

Referenced by meta_window_hide().

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 
)

Definition at line 641 of file ui.c.

References FALSE, and TRUE.

Referenced by event_callback().


Variable Documentation

EventFunc* ef = NULL [static]

Definition at line 74 of file ui.c.


Generated on Sat Aug 23 22:04:23 2008 for metacity by  doxygen 1.5.5