CTWM
Loading...
Searching...
No Matches
Functions
/usr/src/RPM/BUILD/ctwm-4.1.0/icons.c File Reference
#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"
Include dependency graph for icons.c:

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 IconEntryFindIconEntry (TwmWindow *tmp_win, IconRegion **irp)
 
static IconEntryprevIconEntry (IconEntry *ie, IconRegion *ir)
 
static void mergeEntries (IconEntry *old, IconEntry *ie)
 
static void ReshapeIcon (Icon *icon)
 
static int roundUp (int v, int multiple)
 
static ImageLookupIconNameOrClass (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)
 

Function Documentation

◆ AddIconRegion()

name_list ** AddIconRegion ( const char * geom,
RegGravity grav1,
RegGravity grav2,
int stepx,
int stepy,
const char * ijust,
const char * just,
const char * align )

◆ CreateIconWindow()

void CreateIconWindow ( TwmWindow * tmp_win,
int def_x,
int def_y )

◆ DeleteIcon()

void DeleteIcon ( Icon * icon)

Definition at line 814 of file icons.c.

References dpy, PlaceX, ReleaseIconImage(), Icon::w, and Icon::w_not_ours.

Referenced by DeleteIconsList(), and HandleDestroyNotify().

◆ DeleteIconsList()

void DeleteIconsList ( TwmWindow * tmp_win)

Definition at line 782 of file icons.c.

References DeleteIcon(), name_list::next, and PlaceX.

Referenced by HandleDestroyNotify().

◆ ExpandIconTitle()

void ExpandIconTitle ( TwmWindow * tmp_win)

◆ FindIconEntry()

static IconEntry * FindIconEntry ( TwmWindow * tmp_win,
IconRegion ** irp )
static

Definition at line 374 of file icons.c.

References IconRegion::entries, IconRegion::next, PlaceX, and Scr.

Referenced by IconDown().

◆ GetIconOffset()

int GetIconOffset ( Icon * icon)

◆ IconDown()

void IconDown ( TwmWindow * tmp_win)

Definition at line 915 of file icons.c.

References FindIconEntry(), mergeEntries(), PlaceX, and prevIconEntry().

Referenced by HandleDestroyNotify(), RedoIcon(), RedoIconName(), ReMapOne(), and Vanish().

◆ IconUp()

void IconUp ( TwmWindow * tmp_win)

◆ LookupIconNameOrClass()

static Image * LookupIconNameOrClass ( TwmWindow * tmp_win,
Icon * icon,
char ** pattern )
static

◆ mergeEntries()

static void mergeEntries ( IconEntry * old,
IconEntry * ie )
static

Definition at line 414 of file icons.c.

References PlaceX, and IconEntry::w.

Referenced by IconDown().

◆ PaintIcon()

void PaintIcon ( TwmWindow * tmp_win)

◆ PlaceIcon()

static void PlaceIcon ( TwmWindow * tmp_win,
int def_x,
int def_y,
int * final_x,
int * final_y )
static

◆ prevIconEntry()

static IconEntry * prevIconEntry ( IconEntry * ie,
IconRegion * ir )
static

Definition at line 396 of file icons.c.

References IconRegion::entries, and PlaceX.

Referenced by IconDown().

◆ RedoIcon()

void RedoIcon ( TwmWindow * win)

◆ RedoIconName()

void RedoIconName ( TwmWindow * win)

◆ ReleaseIconImage()

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

◆ ReshapeIcon()

static void ReshapeIcon ( Icon * icon)
static

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

◆ roundUp()

static int roundUp ( int v,
int multiple )
static

Definition at line 1366 of file icons.c.

References PlaceX.

Referenced by PlaceIcon().

◆ ShrinkIconTitle()

void ShrinkIconTitle ( TwmWindow * tmp_win)

◆ splitIconRegionEntry()

static void splitIconRegionEntry ( IconEntry * ie,
RegGravity grav1,
RegGravity grav2,
int w,
int h )
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().