Enumerations | Functions

include/resize.h File Reference

#include <xcb/xcb.h>
Include dependency graph for resize.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  resize_orientation_t { O_HORIZONTAL, O_VERTICAL }

Functions

int resize_graphical_handler (xcb_connection_t *conn, Workspace *ws, int first, int second, resize_orientation_t orientation, xcb_button_press_event_t *event)
 Renders the resize window between the first/second container and resizes the table column/row.
void resize_container (xcb_connection_t *conn, Workspace *ws, int first, int second, resize_orientation_t orientation, int pixels)
 Resizes a column/row by the given amount of pixels.

Enumeration Type Documentation

Enumerator:
O_HORIZONTAL 
O_VERTICAL 

Definition at line 17 of file resize.h.


Function Documentation

void resize_container ( xcb_connection_t *  conn,
Workspace ws,
int  first,
int  second,
resize_orientation_t  orientation,
int  pixels 
)

Resizes a column/row by the given amount of pixels.

Called by resize_graphical_handler (the user clicked) or parse_resize_command (the user issued the command)

Definition at line 164 of file resize.c.

References Workspace::cols, DLOG, get_unoccupied_x(), get_unoccupied_y(), Workspace::height_factor, max(), O_VERTICAL, Workspace::rect, render_layout(), Workspace::rows, Rect::width, Workspace::width_factor, and workspace_height().

Referenced by parse_resize_command(), and resize_graphical_handler().

Here is the call graph for this function:

int resize_graphical_handler ( xcb_connection_t *  conn,
Workspace ws,
int  first,
int  second,
resize_orientation_t  orientation,
xcb_button_press_event_t *  event 
)