CTWM
Loading...
Searching...
No Matches
Enumerations | Functions | Variables
/usr/src/RPM/BUILD/ctwm-4.1.0/functions_win_moveresize.c File Reference
#include "ctwm.h"
#include <stdio.h>
#include <stdlib.h>
#include "colormaps.h"
#include "events.h"
#include "event_handlers.h"
#include "functions.h"
#include "functions_defs.h"
#include "functions_internal.h"
#include "icons.h"
#include "otp.h"
#include "parse.h"
#include "r_area.h"
#include "r_layout.h"
#include "screen.h"
#include "util.h"
#include "vscreen.h"
#include "win_decorations.h"
#include "win_ops.h"
#include "win_resize.h"
#include "win_utils.h"
#include "workspace_manager.h"
#include "xparsegeometry.h"
Include dependency graph for functions_win_moveresize.c:

Go to the source code of this file.

Enumerations

enum  MoveFillDir { MFD_BOTTOM , MFD_LEFT , MFD_RIGHT , MFD_TOP }
 

Functions

static int FindConstraint (TwmWindow *tmp_win, MoveFillDir direction)
 
static bool belongs_to_twm_window (TwmWindow *t, Window w)
 
static void movewindow (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_move_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_forcemove_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_movepack_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_movepush_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
static void packwindow (TwmWindow *tmp_win, const char *direction)
 
void f_pack_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
static void jump (TwmWindow *tmp_win, MoveFillDir direction, const char *action)
 
void f_jumpleft_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_jumpright_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_jumpdown_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_jumpup_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_resize_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_zoom_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_horizoom_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_fullzoom_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_fullscreenzoom_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_leftzoom_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_rightzoom_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_topzoom_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_bottomzoom_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_xzoom_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_xhorizoom_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_xfullzoom_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_xfullscreenzoom_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_xleftzoom_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_xrightzoom_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_xtopzoom_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_xbottomzoom_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
static void fillwindow (TwmWindow *tmp_win, const char *direction)
 
void f_fill_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_initsize_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_moveresize_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_changesize_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_savegeometry_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 
void f_restoregeometry_impl (int func, void *action, Window w, TwmWindow *tmp_win, XEvent *eventp, int context, bool pulldown)
 

Variables

bool ConstMove = false
 
CMoveDir ConstMoveDir
 
int ConstMoveX
 
int ConstMoveY
 
int ConstMoveXL
 
int ConstMoveXR
 
int ConstMoveYT
 
int ConstMoveYB
 
int MoveFunction
 
int ResizeOrigX
 
int ResizeOrigY
 

Enumeration Type Documentation

◆ MoveFillDir

Enumerator
MFD_BOTTOM 
MFD_LEFT 
MFD_RIGHT 
MFD_TOP 

Definition at line 35 of file functions_win_moveresize.c.

Function Documentation

◆ belongs_to_twm_window()

static bool belongs_to_twm_window ( TwmWindow * t,
Window w )
static

Definition at line 1443 of file functions_win_moveresize.c.

References PlaceX, and Scr.

Referenced by f_resize_impl(), and movewindow().

◆ f_bottomzoom_impl()

void f_bottomzoom_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 987 of file functions_win_moveresize.c.

References fullzoom(), and PlaceX.

◆ f_changesize_impl()

void f_changesize_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 1290 of file functions_win_moveresize.c.

References ChangeSize(), and PlaceX.

◆ f_fill_impl()

void f_fill_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 1032 of file functions_win_moveresize.c.

References dpy, fillwindow(), and PlaceX.

◆ f_forcemove_impl()

void f_forcemove_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 101 of file functions_win_moveresize.c.

References EF_ARGS, and movewindow().

◆ f_fullscreenzoom_impl()

void f_fullscreenzoom_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 971 of file functions_win_moveresize.c.

References fullzoom(), and PlaceX.

◆ f_fullzoom_impl()

void f_fullzoom_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 967 of file functions_win_moveresize.c.

References fullzoom(), and PlaceX.

◆ f_horizoom_impl()

void f_horizoom_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 963 of file functions_win_moveresize.c.

References fullzoom(), and PlaceX.

◆ f_initsize_impl()

void f_initsize_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 1174 of file functions_win_moveresize.c.

References ConstrainSize(), PlaceX, SetupWindow(), x, and y.

◆ f_jumpdown_impl()

void f_jumpdown_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 778 of file functions_win_moveresize.c.

References jump(), MFD_BOTTOM, and PlaceX.

◆ f_jumpleft_impl()

void f_jumpleft_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 770 of file functions_win_moveresize.c.

References jump(), MFD_LEFT, and PlaceX.

◆ f_jumpright_impl()

void f_jumpright_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 774 of file functions_win_moveresize.c.

References jump(), MFD_RIGHT, and PlaceX.

◆ f_jumpup_impl()

void f_jumpup_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 782 of file functions_win_moveresize.c.

References jump(), MFD_TOP, and PlaceX.

◆ f_leftzoom_impl()

void f_leftzoom_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 975 of file functions_win_moveresize.c.

References fullzoom(), and PlaceX.

◆ f_move_impl()

void f_move_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 97 of file functions_win_moveresize.c.

References EF_ARGS, and movewindow().

◆ f_movepack_impl()

void f_movepack_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 105 of file functions_win_moveresize.c.

References EF_ARGS, and movewindow().

◆ f_movepush_impl()

void f_movepush_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 109 of file functions_win_moveresize.c.

References EF_ARGS, and movewindow().

◆ f_moveresize_impl()

void f_moveresize_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

◆ f_pack_impl()

void f_pack_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 700 of file functions_win_moveresize.c.

References dpy, packwindow(), and PlaceX.

◆ f_resize_impl()

void f_resize_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

◆ f_restoregeometry_impl()

void f_restoregeometry_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 1305 of file functions_win_moveresize.c.

References PlaceX, and restoregeometry().

◆ f_rightzoom_impl()

void f_rightzoom_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 979 of file functions_win_moveresize.c.

References fullzoom(), and PlaceX.

◆ f_savegeometry_impl()

void f_savegeometry_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 1300 of file functions_win_moveresize.c.

References PlaceX, and savegeometry().

◆ f_topzoom_impl()

void f_topzoom_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 983 of file functions_win_moveresize.c.

References fullzoom(), and PlaceX.

◆ f_xbottomzoom_impl()

void f_xbottomzoom_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 1020 of file functions_win_moveresize.c.

References fullzoom(), and PlaceX.

◆ f_xfullscreenzoom_impl()

void f_xfullscreenzoom_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 1004 of file functions_win_moveresize.c.

References fullzoom(), and PlaceX.

◆ f_xfullzoom_impl()

void f_xfullzoom_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 1000 of file functions_win_moveresize.c.

References fullzoom(), and PlaceX.

◆ f_xhorizoom_impl()

void f_xhorizoom_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 996 of file functions_win_moveresize.c.

References fullzoom(), and PlaceX.

◆ f_xleftzoom_impl()

void f_xleftzoom_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 1008 of file functions_win_moveresize.c.

References fullzoom(), and PlaceX.

◆ f_xrightzoom_impl()

void f_xrightzoom_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 1012 of file functions_win_moveresize.c.

References fullzoom(), and PlaceX.

◆ f_xtopzoom_impl()

void f_xtopzoom_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 1016 of file functions_win_moveresize.c.

References fullzoom(), and PlaceX.

◆ f_xzoom_impl()

void f_xzoom_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 992 of file functions_win_moveresize.c.

References fullzoom(), and PlaceX.

◆ f_zoom_impl()

void f_zoom_impl ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )

Definition at line 959 of file functions_win_moveresize.c.

References fullzoom(), and PlaceX.

◆ fillwindow()

static void fillwindow ( TwmWindow * tmp_win,
const char * direction )
static

◆ FindConstraint()

static int FindConstraint ( TwmWindow * tmp_win,
MoveFillDir direction )
static

◆ jump()

static void jump ( TwmWindow * tmp_win,
MoveFillDir direction,
const char * action )
static

◆ movewindow()

static void movewindow ( int func,
void * action,
Window w,
TwmWindow * tmp_win,
XEvent * eventp,
int context,
bool pulldown )
static

◆ packwindow()

static void packwindow ( TwmWindow * tmp_win,
const char * direction )
static

Variable Documentation

◆ ConstMove

bool ConstMove = false

Definition at line 53 of file functions_win_moveresize.c.

Referenced by HandleButtonRelease(), and movewindow().

◆ ConstMoveDir

CMoveDir ConstMoveDir

Definition at line 54 of file functions_win_moveresize.c.

Referenced by HandleButtonRelease(), and movewindow().

◆ ConstMoveX

int ConstMoveX

Definition at line 55 of file functions_win_moveresize.c.

Referenced by HandleButtonRelease(), and movewindow().

◆ ConstMoveXL

int ConstMoveXL

Definition at line 57 of file functions_win_moveresize.c.

Referenced by movewindow().

◆ ConstMoveXR

int ConstMoveXR

Definition at line 58 of file functions_win_moveresize.c.

Referenced by movewindow().

◆ ConstMoveY

int ConstMoveY

Definition at line 56 of file functions_win_moveresize.c.

Referenced by HandleButtonRelease(), and movewindow().

◆ ConstMoveYB

int ConstMoveYB

Definition at line 60 of file functions_win_moveresize.c.

Referenced by movewindow().

◆ ConstMoveYT

int ConstMoveYT

Definition at line 59 of file functions_win_moveresize.c.

Referenced by movewindow().

◆ MoveFunction

int MoveFunction

Definition at line 69 of file functions_win_moveresize.c.

Referenced by HandleButtonRelease(), and movewindow().

◆ ResizeOrigX

int ResizeOrigX

Definition at line 75 of file functions_win_moveresize.c.

Referenced by f_resize_impl(), and HandleMotionNotify().

◆ ResizeOrigY

int ResizeOrigY

Definition at line 76 of file functions_win_moveresize.c.

Referenced by f_resize_impl(), and HandleMotionNotify().