marco 1.29.1
Window manager
Loading...
Searching...
No Matches
draw-workspace.c File Reference
View source
#include "draw-workspace.h"
#include "theme.h"
Include dependency graph for draw-workspace.c:

Functions

static void get_window_rect (const WnckWindowDisplayInfo *win, int screen_width, int screen_height, const GdkRectangle *workspace_rect, GdkRectangle *rect)
 
static void get_background_color (GtkStyleContext *context, GtkStateFlags state, GdkRGBA *color)
 
static void draw_window (GtkWidget *widget, cairo_t *cr, const WnckWindowDisplayInfo *win, const GdkRectangle *winrect, GtkStateFlags state)
 
void wnck_draw_workspace (GtkWidget *widget, cairo_t *cr, int x, int y, int width, int height, int screen_width, int screen_height, GdkPixbuf *workspace_background, gboolean is_active, const WnckWindowDisplayInfo *windows, int n_windows)
 

Function Documentation

◆ draw_window()

static void draw_window ( GtkWidget *  widget,
cairo_t *  cr,
const WnckWindowDisplayInfo *  win,
const GdkRectangle *  winrect,
GtkStateFlags  state 
)
static

References get_background_color(), WnckWindowDisplayInfo::icon, WnckWindowDisplayInfo::is_active, meta_gtk_style_get_light_color(), WnckWindowDisplayInfo::mini_icon, and NULL.

Referenced by wnck_draw_workspace().

Here is the call graph for this function:

◆ get_background_color()

static void get_background_color ( GtkStyleContext *  context,
GtkStateFlags  state,
GdkRGBA *  color 
)
static

References NULL.

Referenced by draw_window().

◆ get_window_rect()

static void get_window_rect ( const WnckWindowDisplayInfo *  win,
int  screen_width,
int  screen_height,
const GdkRectangle *  workspace_rect,
GdkRectangle *  rect 
)
static

◆ wnck_draw_workspace()

void wnck_draw_workspace ( GtkWidget *  widget,
cairo_t *  cr,
int  x,
int  y,
int  width,
int  height,
int  screen_width,
int  screen_height,
GdkPixbuf *  workspace_background,
gboolean  is_active,
const WnckWindowDisplayInfo *  windows,
int  n_windows 
)

References draw_window(), get_window_rect(), meta_gtk_style_get_dark_color(), screen_height, screen_width, and windows.

Referenced by meta_select_workspace_draw().

Here is the call graph for this function: