CTWM
Loading...
Searching...
No Matches
Macros | Functions | Variables
/usr/src/RPM/BUILD/ctwm-4.1.0/iconmgr.c File Reference
#include "ctwm.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <X11/Xatom.h>
#include "util.h"
#include "iconmgr.h"
#include "icons_builtin.h"
#include "screen.h"
#include "drawing.h"
#include "functions_defs.h"
#include "list.h"
#include "occupation.h"
#include "otp.h"
#include "add_window.h"
#include "gram.tab.h"
#include "vscreen.h"
#include "win_decorations.h"
#include "win_resize.h"
#include "win_utils.h"
#include "xparsegeometry.h"
Include dependency graph for iconmgr.c:

Go to the source code of this file.

Macros

#define ITER(i)   (dir == F_NEXTICONMGR ? (i)->next : (i)->prev)
 
#define IPOFSP(sp)   (dir == F_NEXTICONMGR ? sp->iconmgr : sp->iconmgr->lasti)
 
#define TEST(ip)
 

Functions

void CreateIconManagers (void)
 
IconMgrAllocateIconManager (char *name, char *icon_name, char *geom, int columns)
 
void AllocateOtherIconManagers (void)
 
void MoveIconManager (int dir)
 
void MoveMappedIconManager (int dir)
 
void JumpIconManager (int dir)
 
WListAddIconManager (TwmWindow *tmp_win)
 
void InsertInIconManager (IconMgr *ip, WList *tmp, TwmWindow *tmp_win)
 
void RemoveFromIconManager (IconMgr *ip, WList *tmp)
 
void RemoveIconManager (TwmWindow *tmp_win)
 
void CurrentIconManagerEntry (WList *current)
 
void ActiveIconManager (WList *active)
 
void NotActiveIconManager (WList *active)
 
void DrawIconManagerBorder (WList *tmp, bool fill)
 
void SortIconManager (IconMgr *ip)
 
void PackIconManagers (void)
 
void PackIconManager (IconMgr *ip)
 
void dump_iconmanager (IconMgr *mgr, char *label)
 
void DrawIconManagerIconName (TwmWindow *tmp_win)
 
void ShowIconifiedIcon (TwmWindow *tmp_win)
 

Variables

static int iconmgr_textx
 
static WListActive = NULL
 
static WListCurrent = NULL
 
WListDownIconManager = NULL
 

Macro Definition Documentation

◆ IPOFSP

#define IPOFSP ( sp)    (dir == F_NEXTICONMGR ? sp->iconmgr : sp->iconmgr->lasti)

◆ ITER

#define ITER ( i)    (dir == F_NEXTICONMGR ? (i)->next : (i)->prev)

◆ TEST

#define TEST ( ip)
Value:
if ((ip)->count != 0 && (ip)->twm_win->mapped) \
{ got_it = true; break; }
static int PlaceX
Definition add_window.c:82

Function Documentation

◆ ActiveIconManager()

void ActiveIconManager ( WList * active)

◆ AddIconManager()

WList * AddIconManager ( TwmWindow * tmp_win)

◆ AllocateIconManager()

IconMgr * AllocateIconManager ( char * name,
char * icon_name,
char * geom,
int columns )

Definition at line 266 of file iconmgr.c.

References PlaceX, and Scr.

Referenced by ctwm_main().

◆ AllocateOtherIconManagers()

void AllocateOtherIconManagers ( void )

Definition at line 316 of file iconmgr.c.

References WorkSpace::iconmgr, PlaceX, and Scr.

Referenced by ctwm_main().

◆ CreateIconManagers()

void CreateIconManagers ( void )

◆ CurrentIconManagerEntry()

void CurrentIconManagerEntry ( WList * current)

Definition at line 1030 of file iconmgr.c.

References Current, and PlaceX.

Referenced by GotoWorkSpace(), and HandleEnterNotify().

◆ DrawIconManagerBorder()

void DrawIconManagerBorder ( WList * tmp,
bool fill )

◆ DrawIconManagerIconName()

void DrawIconManagerIconName ( TwmWindow * tmp_win)

◆ dump_iconmanager()

void dump_iconmanager ( IconMgr * mgr,
char * label )

Definition at line 1228 of file iconmgr.c.

References PlaceX.

◆ InsertInIconManager()

void InsertInIconManager ( IconMgr * ip,
WList * tmp,
TwmWindow * tmp_win )

Definition at line 904 of file iconmgr.c.

References PlaceX, WList::prev, and Scr.

Referenced by AddIconManager(), and SortIconManager().

◆ JumpIconManager()

void JumpIconManager ( int dir)

Definition at line 621 of file iconmgr.c.

References Current, dpy, WList::iconmgr, IPOFSP, ITER, NumScreens, OtpRaise(), PlaceX, ScreenList, TEST, and WinWin.

Referenced by f_nexticonmgr_impl(), and f_previconmgr_impl().

◆ MoveIconManager()

void MoveIconManager ( int dir)

◆ MoveMappedIconManager()

void MoveMappedIconManager ( int dir)

Definition at line 537 of file iconmgr.c.

References Active, Current, dpy, WList::iconmgr, OtpRaise(), PlaceX, ProgramName, Scr, and WinWin.

Referenced by f_backmapiconmgr_impl(), and f_forwmapiconmgr_impl().

◆ NotActiveIconManager()

void NotActiveIconManager ( WList * active)

Definition at line 1044 of file iconmgr.c.

References WList::active, and DrawIconManagerBorder().

Referenced by SetFocusVisualAttributes().

◆ PackIconManager()

void PackIconManager ( IconMgr * ip)

◆ PackIconManagers()

void PackIconManagers ( void )

Definition at line 1132 of file iconmgr.c.

References TwmWindow::iconmgrp, TwmWindow::next, PackIconManager(), PlaceX, and Scr.

Referenced by DrawIconManagerIconName().

◆ RemoveFromIconManager()

void RemoveFromIconManager ( IconMgr * ip,
WList * tmp )

Definition at line 948 of file iconmgr.c.

References Current, and PlaceX.

Referenced by RemoveIconManager(), and SortIconManager().

◆ RemoveIconManager()

void RemoveIconManager ( TwmWindow * tmp_win)

◆ ShowIconifiedIcon()

void ShowIconifiedIcon ( TwmWindow * tmp_win)

◆ SortIconManager()

void SortIconManager ( IconMgr * ip)

Variable Documentation

◆ Active

WList* Active = NULL
static

Definition at line 52 of file iconmgr.c.

Referenced by ActiveIconManager(), MoveMappedIconManager(), and SortIconManager().

◆ Current

WList* Current = NULL
static

◆ DownIconManager

WList* DownIconManager = NULL

Definition at line 54 of file iconmgr.c.

Referenced by HandleButtonPress(), and HandleButtonRelease().

◆ iconmgr_textx

int iconmgr_textx
static

Definition at line 50 of file iconmgr.c.

Referenced by CreateIconManagers(), and DrawIconManagerIconName().