|
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.
Functions | |
| static void | splitIconRegionEntry (IconEntry *ie, RegGravity grav1, RegGravity grav2, int w, int h) |
| static void | PlaceIcon (TwmWindow *tmp_win, int def_x, int def_y, int *final_x, int *final_y) |
| static IconEntry * | FindIconEntry (TwmWindow *tmp_win, IconRegion **irp) |
| static IconEntry * | prevIconEntry (IconEntry *ie, IconRegion *ir) |
| static void | mergeEntries (IconEntry *old, IconEntry *ie) |
| static void | ReshapeIcon (Icon *icon) |
| static int | roundUp (int v, int multiple) |
| static Image * | LookupIconNameOrClass (TwmWindow *tmp_win, Icon *icon, char **pattern) |
| name_list ** | AddIconRegion (const char *geom, RegGravity grav1, RegGravity grav2, int stepx, int stepy, const char *ijust, const char *just, const char *align) |
| void | CreateIconWindow (TwmWindow *tmp_win, int def_x, int def_y) |
| void | DeleteIconsList (TwmWindow *tmp_win) |
| void | DeleteIcon (Icon *icon) |
| void | ReleaseIconImage (Icon *icon) |
| void | IconUp (TwmWindow *tmp_win) |
| void | IconDown (TwmWindow *tmp_win) |
| void | PaintIcon (TwmWindow *tmp_win) |
| void | ShrinkIconTitle (TwmWindow *tmp_win) |
| void | ExpandIconTitle (TwmWindow *tmp_win) |
| int | GetIconOffset (Icon *icon) |
| void | RedoIcon (TwmWindow *win) |
| void | RedoIconName (TwmWindow *win) |
| 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, IconEntry::h, IconRegion::h, IRA_UNDEF, IRJ_UNDEF, IconRegion::Justification, IconRegion::next, ParseAlignement(), ParseIRJustification(), ParseTitleJustification(), RLayoutXParseGeometry(), Scr, IconRegion::stepx, IconRegion::stepy, IconRegion::TitleJustification, TJ_UNDEF, twmrc_error_prefix(), IconEntry::w, IconRegion::w, IconEntry::x, IconRegion::x, IconEntry::y, and IconRegion::y.
| void CreateIconWindow | ( | TwmWindow * | tmp_win, |
| int | def_x, | ||
| int | def_y ) |
Definition at line 448 of file icons.c.
References AddToList(), AllocImage(), ColorPair::back, Icon::bm_w, Icon::border, Icon::border_width, TwmWindow::class, dpy, EwmhGetIcon(), FB, TwmWindow::forced, ColorPair::fore, GetColorFromList(), GetIconOffset(), GetShadeColors(), Icon::has_title, Icon::height, Image::height, TwmWindow::icon, ICON_MGR_IBORDER, TwmWindow::icon_name, Icon::iconc, TwmWindow::iconified, TwmWindow::iconslist, 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, TwmWindow::name, Icon::otp, OtpAdd(), Image::pixmap, PlaceIcon(), 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, TwmWindow::wmhints, Icon::x, x, and Icon::y.
Referenced by Iconify(), and RedoIcon().
| void DeleteIcon | ( | Icon * | icon | ) |
Definition at line 814 of file icons.c.
References dpy, ReleaseIconImage(), Icon::w, and Icon::w_not_ours.
Referenced by DeleteIconsList(), and HandleDestroyNotify().
| void DeleteIconsList | ( | TwmWindow * | tmp_win | ) |
Definition at line 782 of file icons.c.
References DeleteIcon(), TwmWindow::icon, TwmWindow::iconslist, name_list::name, name_list::next, and name_list::ptr.
Referenced by HandleDestroyNotify().
| void ExpandIconTitle | ( | TwmWindow * | tmp_win | ) |
Definition at line 1053 of file icons.c.
References dpy, Icon::has_title, Icon::height, TwmWindow::icon, 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, IconEntry::next, IconRegion::next, Scr, and IconEntry::twm_win.
Referenced by IconDown().
| int GetIconOffset | ( | Icon * | icon | ) |
Definition at line 1128 of file icons.c.
References Icon::ir, 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().
| void IconDown | ( | TwmWindow * | tmp_win | ) |
Definition at line 915 of file icons.c.
References FindIconEntry(), IconEntry::h, mergeEntries(), IconEntry::next, prevIconEntry(), IconEntry::twm_win, IconEntry::used, IconEntry::w, IconEntry::x, and IconEntry::y.
Referenced by HandleDestroyNotify(), RedoIcon(), RedoIconName(), ReMapOne(), and Vanish().
| void IconUp | ( | TwmWindow * | tmp_win | ) |
Definition at line 859 of file icons.c.
References dpy, IconRegion::h, TwmWindow::icon, TwmWindow::icon_moved, JunkBW, JunkDepth, JunkRoot, MaybeAnimate, IconRegion::next, PlaceIcon(), Scr, Icon::w, IconRegion::w, Icon::w_x, Icon::w_y, TwmWindow::wmhints, IconRegion::x, x, IconRegion::y, and y.
Referenced by DisplayWinUnchecked(), Iconify(), RedoIcon(), and RedoIconName().
Definition at line 1378 of file icons.c.
References TwmWindow::class, TwmWindow::forced, GetImage(), Icon::height, Image::height, TwmWindow::icon_name, Icon::iconc, Icon::image, LookInList(), LookInNameList(), LookPatternInList(), LookPatternInNameList(), Icon::match, match_list, match_none, TwmWindow::name, Scr, Icon::width, and Image::width.
Referenced by CreateIconWindow().
Definition at line 414 of file icons.c.
References IconEntry::h, IconEntry::w, IconEntry::x, and IconEntry::y.
Referenced by IconDown().
| void PaintIcon | ( | TwmWindow * | tmp_win | ) |
Definition at line 967 of file icons.c.
References ColorPair::back, dpy, Draw3DBorder(), FB, ColorPair::fore, GetIconOffset(), Icon::has_title, Icon::height, TwmWindow::icon, ICON_MGR_IBORDER, TwmWindow::icon_name, Icon::iconc, len, off, 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, Icon::border_width, TwmWindow::class, IconRegion::clientlist, IconRegion::entries, GetIconOffset(), IconRegion::grav1, IconRegion::grav2, GRAV_EAST, GRAV_SOUTH, IconEntry::h, Icon::has_title, TwmWindow::icon, Icon::ir, IRA_BORDER, IRA_BOTTOM, IRA_CENTER, IRA_TOP, IRA_UNDEF, IRJ_BORDER, IRJ_CENTER, IRJ_LEFT, IRJ_RIGHT, IRJ_UNDEF, IconRegion::Justification, LookInList(), TwmWindow::name, IconEntry::next, IconRegion::next, ReshapeIcon(), roundUp(), Scr, splitIconRegionEntry(), IconRegion::stepx, IconRegion::stepy, IconEntry::twm_win, IconEntry::used, IconEntry::w, Icon::w_height, Icon::w_width, Icon::width, IconEntry::x, and IconEntry::y.
Referenced by CreateIconWindow(), and IconUp().
|
static |
Definition at line 396 of file icons.c.
References IconRegion::entries, and IconEntry::next.
Referenced by IconDown().
| void RedoIcon | ( | TwmWindow * | win | ) |
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(), Icon::match, match_list, TwmWindow::name, OtpFreeIcon(), OtpRaise(), OtpReassignIcon(), RedoIconName(), Scr, visible(), Icon::w, Icon::w_not_ours, and WMapUpdateIconName().
Referenced by apply_window_icon_name().
| void RedoIconName | ( | TwmWindow * | win | ) |
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, Scr, SortIconManager(), Icon::title_shrunk, visible(), Icon::w, WList::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().
| void ReleaseIconImage | ( | Icon * | icon | ) |
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().
|
static |
Definition at line 1091 of file icons.c.
References Icon::bm_w, dpy, GetIconOffset(), Icon::height, Icon::image, Image::mask, Icon::w, Icon::w_height, Icon::width, and x.
Referenced by PlaceIcon().
|
static |
Definition at line 1366 of file icons.c.
Referenced by PlaceIcon().
| void ShrinkIconTitle | ( | TwmWindow * | tmp_win | ) |
Definition at line 1021 of file icons.c.
References dpy, GetIconOffset(), Icon::has_title, Icon::height, TwmWindow::icon, 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, IconEntry::h, IconEntry::next, splitIconRegionEntry(), IconEntry::w, IconEntry::x, and IconEntry::y.
Referenced by PlaceIcon(), and splitIconRegionEntry().