CTWM
|
#include "ctwm.h"
#include <stdio.h>
#include <stdlib.h>
#include <X11/extensions/shape.h>
#include "drawing.h"
#include "screen.h"
#include "iconmgr.h"
#include "icons.h"
#include "otp.h"
#include "list.h"
#include "parse.h"
#include "util.h"
#include "animate.h"
#include "image.h"
#include "win_utils.h"
#include "workspace_manager.h"
#include "xparsegeometry.h"
Go to the source code of this file.
name_list ** AddIconRegion | ( | const char * | geom, |
RegGravity | grav1, | ||
RegGravity | grav2, | ||
int | stepx, | ||
int | stepy, | ||
const char * | ijust, | ||
const char * | just, | ||
const char * | align ) |
Definition at line 135 of file icons.c.
References IconRegion::Alignement, IconRegion::clientlist, IconRegion::entries, IconRegion::grav1, IconRegion::grav2, IconRegion::h, IconEntry::h, IRA_UNDEF, IRJ_UNDEF, IconRegion::Justification, IconRegion::next, ParseAlignement(), ParseIRJustification(), ParseTitleJustification(), PlaceX, RLayoutXParseGeometry(), Scr, IconRegion::stepx, IconRegion::stepy, IconRegion::TitleJustification, TJ_UNDEF, twmrc_error_prefix(), IconRegion::w, IconEntry::w, IconRegion::x, IconEntry::x, IconRegion::y, and IconEntry::y.
Definition at line 448 of file icons.c.
References AddToList(), AllocImage(), ColorPair::back, Icon::bm_w, Icon::border, Icon::border_width, dpy, EwmhGetIcon(), FB, ColorPair::fore, GetColorFromList(), GetIconOffset(), GetShadeColors(), Icon::has_title, Icon::height, Image::height, ICON_MGR_IBORDER, Icon::iconc, IconWin, Icon::image, Icon::ir, JunkBW, JunkDepth, JunkRoot, JunkX, JunkY, LookInList(), LookInNameList(), LookupIconNameOrClass(), Image::mask, Icon::match, match_icon_pixmap_hint, match_net_wm_icon, match_none, match_unknown_default, MaybeAnimate, Icon::otp, OtpAdd(), Image::pixmap, PlaceIcon(), PlaceX, Scr, ScreenContext, Icon::title_shrunk, TwmContext, visible(), Icon::w, Icon::w_height, Icon::w_not_ours, Icon::w_width, Icon::w_x, Icon::w_y, Icon::width, Image::width, Icon::x, x, and Icon::y.
Referenced by Iconify(), and RedoIcon().
Definition at line 814 of file icons.c.
References dpy, PlaceX, ReleaseIconImage(), Icon::w, and Icon::w_not_ours.
Referenced by DeleteIconsList(), and HandleDestroyNotify().
Definition at line 782 of file icons.c.
References DeleteIcon(), name_list::next, and PlaceX.
Referenced by HandleDestroyNotify().
Definition at line 1053 of file icons.c.
References dpy, Icon::has_title, Icon::height, PlaceX, Icon::title_shrunk, Icon::w, Icon::w_height, Icon::w_width, Icon::width, and Icon::x.
Referenced by HandleEnterNotify().
|
static |
Definition at line 374 of file icons.c.
References IconRegion::entries, IconRegion::next, PlaceX, and Scr.
Referenced by IconDown().
Definition at line 1128 of file icons.c.
References Icon::ir, PlaceX, Scr, IconRegion::TitleJustification, TJ_CENTER, TJ_LEFT, TJ_RIGHT, Icon::w_width, and Icon::width.
Referenced by AnimateIcons(), CreateIconWindow(), EwmhHandle_NET_WM_ICONNotify(), HandlePropertyNotify(), PaintIcon(), PlaceIcon(), RedoIconName(), ReshapeIcon(), and ShrinkIconTitle().
Definition at line 915 of file icons.c.
References FindIconEntry(), mergeEntries(), PlaceX, and prevIconEntry().
Referenced by HandleDestroyNotify(), RedoIcon(), RedoIconName(), ReMapOne(), and Vanish().
Definition at line 859 of file icons.c.
References dpy, IconRegion::h, JunkBW, JunkDepth, JunkRoot, MaybeAnimate, IconRegion::next, PlaceIcon(), PlaceX, Scr, IconRegion::w, IconRegion::x, x, IconRegion::y, and y.
Referenced by DisplayWinUnchecked(), Iconify(), RedoIcon(), and RedoIconName().
Definition at line 1378 of file icons.c.
References GetImage(), Icon::height, Image::height, Icon::iconc, Icon::image, LookInList(), LookInNameList(), LookPatternInList(), LookPatternInNameList(), Icon::match, match_list, match_none, PlaceX, Scr, Icon::width, and Image::width.
Referenced by CreateIconWindow().
Definition at line 414 of file icons.c.
References PlaceX, and IconEntry::w.
Referenced by IconDown().
Definition at line 967 of file icons.c.
References ColorPair::back, dpy, Draw3DBorder(), FB, ColorPair::fore, GetIconOffset(), Icon::has_title, Icon::height, ICON_MGR_IBORDER, Icon::iconc, len, off, PlaceX, Scr, Icon::title_shrunk, Icon::w, Icon::w_width, Icon::width, x, and Icon::y.
Referenced by HandleExpose(), and PaintAllDecoration().
|
static |
Definition at line 216 of file icons.c.
References IconRegion::Alignement, IconRegion::clientlist, IconRegion::entries, GetIconOffset(), IconRegion::grav1, IconRegion::grav2, GRAV_EAST, GRAV_SOUTH, IRA_BORDER, IRA_BOTTOM, IRA_CENTER, IRA_TOP, IRA_UNDEF, IRJ_BORDER, IRJ_CENTER, IRJ_LEFT, IRJ_RIGHT, IRJ_UNDEF, IconRegion::Justification, LookInList(), name_list::name, IconRegion::next, PlaceX, ReshapeIcon(), roundUp(), Scr, splitIconRegionEntry(), IconRegion::stepx, and IconRegion::stepy.
Referenced by CreateIconWindow(), and IconUp().
|
static |
Definition at line 396 of file icons.c.
References IconRegion::entries, and PlaceX.
Referenced by IconDown().
Definition at line 1160 of file icons.c.
References TwmWindow::class, CreateIconWindow(), dpy, TwmWindow::icon, TwmWindow::icon_name, TwmWindow::icon_on, IconDown(), TwmWindow::iconslist, IconUp(), IconWin, LookInNameList(), LookPatternInList(), LookPatternInNameList(), match_list, TwmWindow::name, OtpFreeIcon(), OtpRaise(), OtpReassignIcon(), PlaceX, RedoIconName(), Scr, visible(), Icon::w, and WMapUpdateIconName().
Referenced by apply_window_icon_name().
Definition at line 1244 of file icons.c.
References Icon::bm_w, TwmWindow::class, dpy, GetIconOffset(), Icon::has_title, Icon::height, TwmWindow::icon, ICON_MGR_IBORDER, TwmWindow::icon_name, TwmWindow::icon_on, IconDown(), TwmWindow::iconmanagerlist, WList::iconmgr, IconUp(), Icon::image, TwmWindow::isicon, LookInList(), LookInNameList(), Image::mask, TwmWindow::name, PlaceX, Scr, SortIconManager(), Icon::title_shrunk, visible(), WList::w, Icon::w, Icon::w_height, Icon::w_not_ours, Icon::w_width, Icon::width, WMapUpdateIconName(), Icon::x, x, and Icon::y.
Referenced by EwmhHandle_NET_WM_ICONNotify(), HandlePropertyNotify(), and RedoIcon().
Definition at line 831 of file icons.c.
References FreeImage(), Icon::image, Icon::match, match_icon_pixmap_hint, and match_net_wm_icon.
Referenced by DeleteIcon(), and HandlePropertyNotify().
Definition at line 1091 of file icons.c.
References Icon::bm_w, dpy, GetIconOffset(), Icon::height, Icon::image, Image::mask, PlaceX, Icon::w, Icon::w_height, Icon::width, and x.
Referenced by PlaceIcon().
Definition at line 1021 of file icons.c.
References dpy, GetIconOffset(), Icon::has_title, Icon::height, PlaceX, Icon::title_shrunk, Icon::w, Icon::w_height, Icon::w_width, Icon::width, and Icon::x.
Referenced by HandleLeaveNotify().
|
static |
Definition at line 79 of file icons.c.
References GRAV_EAST, GRAV_NORTH, GRAV_SOUTH, GRAV_WEST, PlaceX, and splitIconRegionEntry().
Referenced by PlaceIcon(), and splitIconRegionEntry().