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

Data Structures

struct  _MetaWindowMenu
 

Macros

#define MARCO_STOCK_DELETE   "window-close"
 
#define MARCO_STOCK_RESTORE   "view-restore"
 
#define MARCO_STOCK_MINIMIZE   "go-down"
 
#define MARCO_STOCK_MAXIMIZE   "view-fullscreen"
 

Functions

MetaWindowMenu * meta_window_menu_new (MetaFrames *frames, MetaMenuOp ops, MetaMenuOp insensitive, Window client_xwindow, unsigned long active_workspace, int n_workspaces, MetaWindowMenuFunc func, gpointer data)
 
void meta_window_menu_popup (MetaWindowMenu *menu, int root_x, int root_y, int button, guint32 timestamp)
 
void meta_window_menu_free (MetaWindowMenu *menu)
 

Macro Definition Documentation

◆ MARCO_STOCK_DELETE

#define MARCO_STOCK_DELETE   "window-close"

◆ MARCO_STOCK_MAXIMIZE

#define MARCO_STOCK_MAXIMIZE   "view-fullscreen"

◆ MARCO_STOCK_MINIMIZE

#define MARCO_STOCK_MINIMIZE   "go-down"

◆ MARCO_STOCK_RESTORE

#define MARCO_STOCK_RESTORE   "view-restore"

Function Documentation

◆ meta_window_menu_free()

void meta_window_menu_free ( MetaWindowMenu *  menu)

◆ meta_window_menu_new()

MetaWindowMenu * meta_window_menu_new ( MetaFrames *  frames,
MetaMenuOp  ops,
MetaMenuOp  insensitive,
Window  client_xwindow,
unsigned long  active_workspace,
int  n_workspaces,
MetaWindowMenuFunc  func,
gpointer  data 
)

◆ meta_window_menu_popup()

void meta_window_menu_popup ( MetaWindowMenu *  menu,
int  root_x,
int  root_y,
int  button,
guint32  timestamp 
)

References _MetaWindowMenu::frames, _MetaWindowMenu::menu, META_UI_DIRECTION_RTL, meta_ui_get_direction(), meta_warning(), and NULL.

Referenced by meta_ui_window_menu_popup().

Here is the call graph for this function: