marco 1.29.1
Window manager
Loading...
Searching...
No Matches
frames.h File Reference
View source
#include <gtk/gtk.h>
#include <gdk/gdkx.h>
#include "common.h"
#include "theme.h"
#include "types.h"
Include dependency graph for frames.h:
This graph shows which files directly or indirectly include this file:

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
 

Enumerations

enum  MetaFrameControl {
  META_FRAME_CONTROL_NONE , META_FRAME_CONTROL_TITLE , META_FRAME_CONTROL_DELETE , META_FRAME_CONTROL_MENU ,
  META_FRAME_CONTROL_APPMENU , META_FRAME_CONTROL_MINIMIZE , META_FRAME_CONTROL_MAXIMIZE , META_FRAME_CONTROL_UNMAXIMIZE ,
  META_FRAME_CONTROL_SHADE , META_FRAME_CONTROL_UNSHADE , META_FRAME_CONTROL_ABOVE , META_FRAME_CONTROL_UNABOVE ,
  META_FRAME_CONTROL_STICK , META_FRAME_CONTROL_UNSTICK , META_FRAME_CONTROL_RESIZE_SE , META_FRAME_CONTROL_RESIZE_S ,
  META_FRAME_CONTROL_RESIZE_SW , META_FRAME_CONTROL_RESIZE_N , META_FRAME_CONTROL_RESIZE_NE , META_FRAME_CONTROL_RESIZE_NW ,
  META_FRAME_CONTROL_RESIZE_W , META_FRAME_CONTROL_RESIZE_E , META_FRAME_CONTROL_CLIENT_AREA
}
 

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)
 

Macro Definition Documentation

◆ META_FRAMES

#define META_FRAMES (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), META_TYPE_FRAMES, MetaFrames))

◆ META_FRAMES_CLASS

#define META_FRAMES_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), META_TYPE_FRAMES, MetaFramesClass))

◆ META_FRAMES_GET_CLASS

#define META_FRAMES_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), META_TYPE_FRAMES, MetaFramesClass))

◆ META_IS_FRAMES

#define META_IS_FRAMES (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), META_TYPE_FRAMES))

◆ META_IS_FRAMES_CLASS

#define META_IS_FRAMES_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), META_TYPE_FRAMES))

◆ META_TYPE_FRAMES

#define META_TYPE_FRAMES   (meta_frames_get_type ())

Typedef Documentation

◆ MetaFrames

typedef struct _MetaFrames MetaFrames

◆ MetaFramesClass

◆ MetaUIFrame

typedef struct _MetaUIFrame MetaUIFrame

Enumeration Type Documentation

◆ MetaFrameControl

Enumerator
META_FRAME_CONTROL_NONE 
META_FRAME_CONTROL_TITLE 
META_FRAME_CONTROL_DELETE 
META_FRAME_CONTROL_MENU 
META_FRAME_CONTROL_APPMENU 
META_FRAME_CONTROL_MINIMIZE 
META_FRAME_CONTROL_MAXIMIZE 
META_FRAME_CONTROL_UNMAXIMIZE 
META_FRAME_CONTROL_SHADE 
META_FRAME_CONTROL_UNSHADE 
META_FRAME_CONTROL_ABOVE 
META_FRAME_CONTROL_UNABOVE 
META_FRAME_CONTROL_STICK 
META_FRAME_CONTROL_UNSTICK 
META_FRAME_CONTROL_RESIZE_SE 
META_FRAME_CONTROL_RESIZE_S 
META_FRAME_CONTROL_RESIZE_SW 
META_FRAME_CONTROL_RESIZE_N 
META_FRAME_CONTROL_RESIZE_NE 
META_FRAME_CONTROL_RESIZE_NW 
META_FRAME_CONTROL_RESIZE_W 
META_FRAME_CONTROL_RESIZE_E 
META_FRAME_CONTROL_CLIENT_AREA 

Function Documentation

◆ meta_frames_apply_shapes()

void meta_frames_apply_shapes ( MetaFrames *  frames,
MetaDisplay *  meta_display,
Window  xwindow,
int  new_window_width,
int  new_window_height,
gboolean  window_has_shape 
)

◆ meta_frames_get_borders()

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().

Here is the call graph for this function:

◆ meta_frames_get_corner_radiuses()

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().

Here is the call graph for this function:

◆ meta_frames_get_frame_bounds()

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().

Here is the call graph for this function:

◆ meta_frames_get_moving_frame()

Window meta_frames_get_moving_frame ( MetaFrames *  frames)

◆ meta_frames_get_type()

GType meta_frames_get_type ( void  )

◆ meta_frames_manage_window()

void meta_frames_manage_window ( MetaFrames *  frames,
Window  xwindow,
GdkWindow *  window 
)

◆ meta_frames_move_resize_frame()

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().

Here is the call graph for this function:

◆ meta_frames_new()

MetaFrames * meta_frames_new ( void  )

References META_TYPE_FRAMES, NULL, and screen.

Referenced by meta_ui_new().

◆ meta_frames_notify_menu_hide()

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().

Here is the call graph for this function:

◆ meta_frames_pop_delay_exposes()

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().

Here is the call graph for this function:

◆ meta_frames_push_delay_exposes()

void meta_frames_push_delay_exposes ( MetaFrames *  frames)

◆ meta_frames_queue_draw()

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().

Here is the call graph for this function:

◆ meta_frames_repaint_frame()

void meta_frames_repaint_frame ( MetaFrames *  frames,
Window  xwindow 
)

References meta_frames_lookup_window().

Referenced by meta_ui_repaint_frame().

Here is the call graph for this function:

◆ meta_frames_set_title()

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().

Here is the call graph for this function:

◆ meta_frames_unmanage_window()

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().

Here is the call graph for this function:

◆ meta_frames_update_frame_style()

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().

Here is the call graph for this function: