/* * Copyright (c) 2002 Peter Memishian (meem) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * wmnetload - A dockapp to monitor network interface usage. * Inspired by Seiichi SATO's nifty CPU usage monitor. * * Pixmaps and sizing information for the "current" wmnetload look. */ #pragma ident "@(#)pixmaps.h 1.2 02/10/27 meem" #ifndef WN_CURRENT_PIXMAPS_H #define WN_CURRENT_PIXMAPS_H #include "../common/pixmaps.h" #include "./parts.xpm" #include "./backlight_down.xpm" #include "./backlight_err.xpm" #include "./backlight_on.xpm" #include "./backlight_off.xpm" /* * Sizing information for each graphical digit. */ enum { WN_DIG_WIDTH = 10, /* digit width */ WN_DIG_HEIGHT = 20, /* digit height */ WN_DIG_SPACE = 14, /* inter-digit spacing */ WN_DIG_SXOFF = 0, /* x offset of first digit in source */ WN_DIG_SYOFF = 0, /* y offset of first digit in source */ WN_DIG_DXOFF = 8, /* x offset of first digit in destination */ WN_DIG_DYOFF = 5 /* y offset of first digit in destination */ }; /* * Sizing information for the decimal point. */ enum { WN_DEC_WIDTH = 2, /* decimal point width */ WN_DEC_HEIGHT = 2, /* decimal point height */ WN_DEC_SPACE = 14, /* destination spacing */ WN_DEC_SXOFF = 104, /* x offset in source */ WN_DEC_SYOFF = 0, /* y offset in source */ WN_DEC_DXOFF = 5, /* x offset in destination */ WN_DEC_DYOFF = 23 /* y offset in destination */ }; /* * Sizing information for each speed designator. */ enum { WN_SPD_WIDTH = 5, /* speed designator width */ WN_SPD_HEIGHT = 5, /* speed designator height */ WN_SPD_SPACE = 7, /* destination spacing */ WN_SPD_DXOFF = 49, /* x offset in destination */ WN_SPD_DYOFF = 6, /* y offset in destination */ WN_SPD_SXOFF = 104, /* x offset in source */ WN_SPD_SYOFF = 0 /* y offset in source */ }; /* * Sizing information for the columns of the network activity graph. */ enum { WN_COL_WIDTH = 2, /* graph column width */ WN_COL_HEIGHT = 21, /* graph column height */ WN_COL_SPACE = 3, /* destination spacing */ WN_COL_DXOFF = 6, /* x offset in of first column in destination */ WN_COL_DYOFF = 34, /* y offset in of first column in destination */ WN_COL_SXOFF = 100, /* x offset in source */ WN_COL_SYOFF = 0 /* y offset in source */ }; /* * Sizing information for the network activity graph. */ enum { WN_GR_COLS = 16, /* number of columns in graph */ WN_GR_ROWS = 11, /* number of rows in graph */ WN_GR_WIDTH = 52, /* graph component width */ WN_GR_HEIGHT = 21, /* graph component height */ WN_GR_XOFF = 6, /* x offset of graph */ WN_GR_YOFF = 34 /* y offset of graph */ }; /* * Sizing information for the bps meter. */ enum { WN_BPS_WIDTH = 58, /* bps meter width */ WN_BPS_HEIGHT = 25, /* bps meter height */ WN_BPS_XOFF = 0, /* x offset of bps meter */ WN_BPS_YOFF = 0 /* y offset of bps meter */ }; /* * Sizing information for the interface name bar. */ enum { WN_IFN_WIDTH = 58, /* interface name width */ WN_IFN_HEIGHT = 5, /* interface name height */ WN_IFN_XOFF = 0, /* x offset of interface name */ WN_IFN_YOFF = 27, /* y offset of interface name */ WN_IFN_SPACE = 2 /* per-letter spacing of interface name */ }; #define WN_LOOK_HAS_IFNAME #endif /* WN_CURRENT_PIXMAPS_H */