enlightenment/src/bin/e_remember.h

143 lines
4.6 KiB
C
Raw Normal View History

#ifdef E_TYPEDEFS
E_API extern int E_EVENT_REMEMBER_UPDATE;
E_API extern E_Config_DD *e_remember_edd;
typedef struct E_Event_Remember_Update
{
compositor rewrite / charlie-foxtrot situation huge fustercluck commit because there wasn't really a way to separate out the changes. better to just rip it all out at once. * compositor and window management completely rewritten. this was the goal for E19, but it pretty much required everything existing to be scrapped since it wasn't optimized, streamlined, or sensible. now instead of having the compositor strapped to the window manager like an outboard motor, it's housed more like an automobile engine. ** various comp structs have been merged into other places (eg. E_Comp_Zone is now just part of E_Zone where applicable), leading to a large deduplication of attributes ** awful E_Comp_Win is totally dead, having been replaced with e_comp_object smart objects which work just like normal canvas objects ** protocol-specific window management and compositor functionality is now kept exclusively in backend files ** e_pixmap api provides generic client finding and rendering api ** screen/xinerama screens are now provided directly by compositor on startup and re-set on change ** e_comp_render_update finally replaced with eina_tiler ** wayland compositor no longer creates X windows ** compositor e_layout removed entirely * e_container is gone. this was made unnecessary in E18, but I kept it to avoid having too much code churn in one release. its sole purpose was to catch some events and handle window stacking, both of which are now just done by the compositor infra * e_manager is just for screensaver and keybind stuff now, possibly remove later? * e_border is gone along with a lot of its api. e_client has replaced it, and e_client has been rewritten completely; some parts may be similar, but the design now relies upon having a functional compositor ** window configuration/focus functions are all removed. all windows are now managed solely with evas_object_X functions on the "frame" member of a client, just as any other canvas object can be managed. *** do NOT set interceptors on a client's comp_object. seriously. * startup order rewritten: compositor now starts much earlier, other things just use attrs and members of the compositor * ecore_x_pointer_xy_get usage replaced with ecore_evas_pointer_xy_get * e_popup is totally gone, existing usage replaced by e_comp_object_util_add where applicable, otherwise just placed normally on the canvas * deskmirror is (more) broken for now * illume is totally fucked * Ecore_X_Window replaced with Ecore_Window in most cases * edge binding XWindows replaced with regular canvas objects * some E_Win functionality has changed such that delete callbacks are now correctly called in ALL cases. various dialogs have been updated to not crash as a result comp files and descriptions: e_comp.c - overall compositor functions, rendering/update loop, shape cutting e_comp_x.c - X window management and compositor functionality e_comp_wl.c - Wayland surface management and compositor functionality e_comp_canvas.c - general compositor canvas functions and utilities e_comp_object.c - E_Client->frame member for managing clients as Evas_Objects, utility functions for adding objects to the compositor rendering systems additional authors: ivan.briano@intel.com feature: new compositor removal: e_border, e_container, e_popup
2014-01-14 17:19:12 -08:00
E_Client *ec;
} E_Event_Remember_Update;
typedef struct _E_Remember E_Remember;
#define E_REMEMBER_VERSION 1
2012-08-03 02:17:30 -07:00
#define E_REMEMBER_MATCH_NAME (1 << 0)
#define E_REMEMBER_MATCH_CLASS (1 << 1)
#define E_REMEMBER_MATCH_TITLE (1 << 2)
#define E_REMEMBER_MATCH_ROLE (1 << 3)
#define E_REMEMBER_MATCH_TYPE (1 << 4)
#define E_REMEMBER_MATCH_TRANSIENT (1 << 5)
2012-08-03 02:17:30 -07:00
#define E_REMEMBER_APPLY_POS (1 << 0)
#define E_REMEMBER_APPLY_SIZE (1 << 1)
#define E_REMEMBER_APPLY_LAYER (1 << 2)
#define E_REMEMBER_APPLY_LOCKS (1 << 3)
#define E_REMEMBER_APPLY_BORDER (1 << 4)
#define E_REMEMBER_APPLY_STICKY (1 << 5)
#define E_REMEMBER_APPLY_DESKTOP (1 << 6)
#define E_REMEMBER_APPLY_SHADE (1 << 7)
#define E_REMEMBER_APPLY_ZONE (1 << 8)
#define E_REMEMBER_APPLY_RUN (1 << 9)
#define E_REMEMBER_APPLY_SKIP_WINLIST (1 << 10)
#define E_REMEMBER_APPLY_SKIP_PAGER (1 << 11)
#define E_REMEMBER_APPLY_SKIP_TASKBAR (1 << 12)
#define E_REMEMBER_APPLY_ICON_PREF (1 << 13)
#define E_REMEMBER_SET_FOCUS_ON_START (1 << 14)
#define E_REMEMBER_APPLY_FULLSCREEN (1 << 15)
#define E_REMEMBER_APPLY_OFFER_RESISTANCE (1 << 16)
#define E_REMEMBER_APPLY_OPACITY (1 << 17)
#define E_REMEMBER_APPLY_UUID (1 << 18)
#define E_REMEMBER_APPLY_VOLUME (1 << 19)
2012-08-03 02:17:30 -07:00
#define E_REMEMBER_INTERNAL_DIALOGS (1 << 0)
#define E_REMEMBER_INTERNAL_FM_WINS (1 << 1)
#else
#ifndef E_REMEMBER_H
#define E_REMEMBER_H
struct _E_Remember
{
unsigned int version;
2012-08-03 02:17:30 -07:00
int match;
int no_reopen;
2012-08-03 02:17:30 -07:00
unsigned char apply_first_only;
unsigned char keep_settings;
int used_count;
const char *name;
const char *class;
const char *title;
const char *role;
int type;
unsigned char transient;
int apply;
int max_score;
2012-06-20 23:19:43 -07:00
struct
2012-08-03 02:17:30 -07:00
{
int pos_x, pos_y;
int res_x, res_y;
int pos_w, pos_h;
int w, h;
int frame_w, frame_h;
2012-08-03 02:17:30 -07:00
int layer;
unsigned int maximize; //just direction
2012-08-03 02:17:30 -07:00
unsigned char lock_user_location;
unsigned char lock_client_location;
unsigned char lock_user_size;
unsigned char lock_client_size;
unsigned char lock_user_stacking;
unsigned char lock_client_stacking;
unsigned char lock_user_iconify;
unsigned char lock_client_iconify;
unsigned char lock_user_desk;
unsigned char lock_client_desk;
unsigned char lock_user_sticky;
unsigned char lock_client_sticky;
unsigned char lock_user_shade;
unsigned char lock_client_shade;
unsigned char lock_user_maximize;
unsigned char lock_client_maximize;
unsigned char lock_user_fullscreen;
unsigned char lock_client_fullscreen;
unsigned char lock_border;
unsigned char lock_close;
unsigned char lock_focus_in;
unsigned char lock_focus_out;
unsigned char lock_life;
2012-08-03 02:17:30 -07:00
const char *border;
2012-08-03 02:17:30 -07:00
unsigned char sticky;
unsigned char shaded;
unsigned char fullscreen;
unsigned char skip_winlist;
unsigned char skip_pager;
unsigned char skip_taskbar;
unsigned char icon_preference;
unsigned char offer_resistance;
2012-06-20 23:19:43 -07:00
2012-08-03 02:17:30 -07:00
int desk_x, desk_y;
int zone;
const char *command;
const char *desktop_file;
unsigned char opacity;
int volume;
int volume_min;
int volume_max;
unsigned char mute;
2012-08-03 02:17:30 -07:00
} prop;
Eina_Stringshare *uuid;
int pid;
Eina_Bool applying E_BITFIELD;
};
2012-08-03 02:17:30 -07:00
EINTERN int e_remember_init(E_Startup_Mode mode);
EINTERN int e_remember_shutdown(void);
E_API E_Remember *e_remember_new(void);
E_API int e_remember_usable_get(E_Remember *rem);
E_API void e_remember_use(E_Remember *rem);
E_API void e_remember_unuse(E_Remember *rem);
E_API void e_remember_del(E_Remember *rem);
E_API E_Remember *e_remember_find(E_Client *ec);
E_API E_Remember *e_remember_find_usable(E_Client *ec);
E_API E_Remember *e_remember_sr_find(E_Client *ec);
E_API void e_remember_match_update(E_Remember *rem);
E_API void e_remember_update(E_Client *ec);
E_API int e_remember_default_match_set(E_Remember *rem, E_Client *ec);
E_API void e_remember_internal_save(void);
E_API void e_remember_apply(E_Remember *rem, E_Client *ec);
#endif
#endif