1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
|
#ifndef AS_COMMAND_HEADER_INCLUDED
#define AS_COMMAND_HEADER_INCLUDED
#include "../configure.h"
#include "asapp.h"
#include <signal.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <regex.h>
#include <stdio.h>
#include "../libAfterImage/afterimage.h"
#include "afterstep.h"
#include "screen.h"
#include "module.h"
#include "mystyle.h"
#include "mystyle_property.h"
#include "parser.h"
#include "clientprops.h"
#include "wmprops.h"
#include "decor.h"
#include "aswindata.h"
#include "balloon.h"
#include "event.h"
#include "shape.h"
#include "../libAfterBase/aslist.h"
#include "../libAfterBase/ashash.h"
/* Flags: none right now */
extern char *DEFAULT_PATTERN;
typedef struct
{
ASFlagType flags ;
ASBiDirList *clients_order;
ASBiDirList *selected_wins;
ASBiDirList *operations;
ASHashTable *handlers;
int x_dest, y_dest; /* Move */
int new_width, new_height;
} ASASCommandState;
void ascom_init( void );
void ascom_deinit( void );
void ascom_update_winlist( void );
char **ascom_get_win_names( void );
XRectangle *ascom_get_available_area( void );
void ascom_do( const char *operation, void *data);
void ascom_do_one(const char *operation, void *data, Bool last);
/* use with care and don't go casting 'round the constness. */
const ASWindowData *ascom_get_next_window(Bool last);
void ascom_pop_winlist(Bool last);
Bool winlist_is_empty(void);
void ascom_wait( void ); /* wait until all operations have been executed */
/* selection */
void select_all( Bool unselect );
Bool select_windows_by_pattern(const char *pattern, Bool just_one, Bool unselect);
void select_windows_on_screen( Bool unselect );
void select_windows_on_desk ( Bool unselect );
void select_windows_by_flag( ASFlagType flag, Bool unselect );
void select_windows_by_state_flag( ASFlagType flag, Bool unselect);
void select_untitled_windows( Bool unselect);
void select_focused_window( Bool unselect );
int num_selected_windows( void );
void clear_selection( void );
/* manipulate ascommand's state. */
void ascom_set_flag( ASFlagType flag );
#endif
|