CTWM
Loading...
Searching...
No Matches
/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)
#define IPOFSP(sp)
#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)
Value:
(dir == F_NEXTICONMGR ? sp->iconmgr : sp->iconmgr->lasti)

Referenced by JumpIconManager().

◆ ITER

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

Referenced by JumpIconManager().

◆ TEST

#define TEST ( ip)
Value:
if ((ip)->count != 0 && (ip)->twm_win->mapped) \
{ got_it = true; break; }

Referenced by JumpIconManager().

Function Documentation

◆ ActiveIconManager()

void ActiveIconManager ( WList * active)

Definition at line 1035 of file iconmgr.c.

References Active, WList::active, Current, and DrawIconManagerBorder().

Referenced by SetFocusVisualAttributes().

◆ AddIconManager()

◆ AllocateIconManager()

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

◆ AllocateOtherIconManagers()

void AllocateOtherIconManagers ( void )

Definition at line 316 of file iconmgr.c.

References WorkSpace::iconmgr, IconMgr::lasti, IconMgr::next, WorkSpace::next, IconMgr::nextv, IconMgr::prev, and Scr.

Referenced by ctwm_main().

◆ CreateIconManagers()

◆ CurrentIconManagerEntry()

void CurrentIconManagerEntry ( WList * current)

Definition at line 1030 of file iconmgr.c.

References Current.

Referenced by GotoWorkSpace(), and HandleEnterNotify().

◆ DrawIconManagerBorder()

◆ DrawIconManagerIconName()

◆ dump_iconmanager()

void dump_iconmanager ( IconMgr * mgr,
char * label )

◆ InsertInIconManager()

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

◆ JumpIconManager()

void JumpIconManager ( int dir)

◆ MoveIconManager()

◆ MoveMappedIconManager()

◆ NotActiveIconManager()

void NotActiveIconManager ( WList * active)

Definition at line 1044 of file iconmgr.c.

References WList::active, and DrawIconManagerBorder().

Referenced by SetFocusVisualAttributes().

◆ PackIconManager()

◆ PackIconManagers()

void PackIconManagers ( void )

Definition at line 1132 of file iconmgr.c.

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

Referenced by DrawIconManagerIconName().

◆ RemoveFromIconManager()

void RemoveFromIconManager ( IconMgr * ip,
WList * tmp )

Definition at line 948 of file iconmgr.c.

References Current, IconMgr::first, IconMgr::last, WList::next, and WList::prev.

Referenced by RemoveIconManager(), and SortIconManager().

◆ RemoveIconManager()

◆ ShowIconifiedIcon()

◆ SortIconManager()

Variable Documentation

◆ Active

WList* Active = NULL
static

Definition at line 52 of file iconmgr.c.

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

◆ Current

◆ 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().