theme_static.h

来自「CS架构的多平台的GUI系统」· C头文件 代码 · 共 982 行 · 第 1/5 页

H
982
字号
/***************************************************************************    begin                : Sat May 7 2005    copyright            : (C) 2005 by Alper Akcan    email                : distchx@yahoo.com ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU Lesser General Public License as        * *   published by the Free Software Foundation; either version 2.1 of the  * *   License, or (at your option) any later version.                       * *                                                                         * ***************************************************************************/#ifndef STHEME_STATIC_H#define STHEME_STATIC_Hstatic void theme_set (s_image_t *img, unsigned int *data, int a, int b, int c, int d, int e, int f){	img->w = a;	img->h = b;	img->handler.x = c;	img->handler.y = d;	img->handler.w = e;	img->handler.h = f;	img->rgba = (unsigned int *) s_malloc(a * b * sizeof(unsigned int) + 1);	memcpy(img->rgba, data, a * b * sizeof(unsigned int));}/* * top-left-inactive.xpm */static void top_left_inactive_xpm (s_image_t *img){	unsigned int rgba[105] = {	0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff,	0x000000ff, 0x000000ff, 0x000000ff, 0xbcbbc300, 0xbcbbc300,	0x000000ff, 0x000000ff, 0xbcbbc300, 0xfafafb00, 0xfafafb00,	0x000000ff, 0xbcbbc300, 0xfafafb00, 0xe6e6ec00, 0xe6e6ec00,	0x000000ff, 0xbcbbc300, 0xfafafb00, 0xd6d5e100, 0xd9d8e300,	0xbcbbc300, 0xfbfbfc00, 0xdadbe500, 0xdadbe500, 0xdadbe500,	0xbcbbc300, 0xfbfbfc00, 0xdcdce400, 0xdcdce400, 0xdcdce400,	0xbcbbc300, 0xfbfbfc00, 0xdcdde500, 0xdcdde500, 0xdcdde500,	0xbcbbc300, 0xfbfbfc00, 0xdedfe600, 0xdedfe600, 0xdedfe600,	0xbcbbc300, 0xfbfbfc00, 0xe1e2e800, 0xe1e2e800, 0xe1e2e800,	0xbcbbc300, 0xfbfbfc00, 0xe3e3ea00, 0xe3e3ea00, 0xe3e3ea00,	0xbcbbc300, 0xfbfbfc00, 0xe5e7ec00, 0xe5e7ec00, 0xe5e7ec00,	0xbcbbc300, 0xfbfbfc00, 0xe9eaef00, 0xe9eaef00, 0xe9eaef00,	0xbcbbc300, 0xfbfbfc00, 0xeceef100, 0xeceef100, 0xeceef100,	0xbcbbc300, 0xfbfbfc00, 0xf1f1f400, 0xf1f1f400, 0xf1f1f400,	0xbcbbc300, 0xfbfbfc00, 0xf5f6f800, 0xf5f6f800, 0xf5f6f800,	0xbcbbc300, 0xfbfbfc00, 0xf9f9fa00, 0xf9f9fa00, 0xf9f9fa00,	0xbcbbc300, 0xfbfbfc00, 0xfcfdfd00, 0xfcfdfd00, 0xfcfdfd00,	0xbcbbc300, 0xfbfbfc00, 0xfbfbfb00, 0xfbfbfb00, 0xfbfbfb00,	0xbcbbc300, 0xfbfbfc00, 0xe9e9ec00, 0xe9e9ec00, 0xe9e9ec00,	0xbcbbc300, 0xfbfbfc00, 0xc7c7d300, 0xc7c7d300, 0xc7c7d300,	};	theme_set(img, rgba, 5, 21, 0, 1, 5, 20);}/* * top-left-active.xpm */static void top_left_active_xpm (s_image_t *img){	unsigned int rgba[105] = {	0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff,	0x000000ff, 0x000000ff, 0x000000ff, 0x706f7f00, 0x706f7f00,	0x000000ff, 0x000000ff, 0x706f7f00, 0xf5f5f800, 0xf5f5f800,	0x000000ff, 0x706f7f00, 0xf5f5f800, 0xcacad800, 0xcacad800,	0x000000ff, 0x706f7f00, 0xf5f5f800, 0xa8a7bf00, 0xaeacc500,	0x706f7f00, 0xf8f8fa00, 0xb0b2c800, 0xb0b2c800, 0xb0b2c800,	0x706f7f00, 0xf8f8fa00, 0xb4b6c700, 0xb4b6c700, 0xb4b6c700,	0x706f7f00, 0xf8f8fa00, 0xb6b7c800, 0xb6b7c800, 0xb6b7c800,	0x706f7f00, 0xf8f8fa00, 0xb9bbca00, 0xb9bbca00, 0xb9bbca00,	0x706f7f00, 0xf8f8fa00, 0xbfc1cf00, 0xbfc1cf00, 0xbfc1cf00,	0x706f7f00, 0xf8f8fa00, 0xc3c5d300, 0xc3c5d300, 0xc3c5d300,	0x706f7f00, 0xf8f8fa00, 0xc9ccd700, 0xc9ccd700, 0xc9ccd700,	0x706f7f00, 0xf8f8fa00, 0xd1d3dd00, 0xd1d3dd00, 0xd1d3dd00,	0x706f7f00, 0xf8f8fa00, 0xd8dbe300, 0xd8dbe300, 0xd8dbe300,	0x706f7f00, 0xf8f8fa00, 0xe1e3e900, 0xe1e3e900, 0xe1e3e900,	0x706f7f00, 0xf8f8fa00, 0xebecf000, 0xebecf000, 0xebecf000,	0x706f7f00, 0xf8f8fa00, 0xf3f4f600, 0xf3f4f600, 0xf3f4f600,	0x706f7f00, 0xf8f8fa00, 0xfafbfc00, 0xfafbfc00, 0xfafbfc00,	0x706f7f00, 0xf8f8fa00, 0xf8f8f800, 0xf8f8f800, 0xf8f8f800,	0x706f7f00, 0xf8f8fa00, 0xd0d0d800, 0xd0d0d800, 0xd0d0d800,	0x706f7f00, 0xf8f8fa00, 0x8889a100, 0x8889a100, 0x8889a100,	};	theme_set(img, rgba, 5, 21, 0, 1, 5, 20);}/* * title-1-inactive.xpm */static void title_1_inactive_xpm (s_image_t *img){	unsigned int rgba[42] = {	0xbcbbc300, 0xbcbbc300,	0xfafafb00, 0xfafafb00,	0xe6e6ec00, 0xe6e6ec00,	0xd5d5e100, 0xd5d5e100,	0xd9d8e300, 0xd9d8e300,	0xdadbe500, 0xdadbe500,	0xdcdce400, 0xdcdce400,	0xdcdde500, 0xdcdde500,	0xdedfe600, 0xdedfe600,	0xe1e2e800, 0xe1e2e800,	0xe3e3ea00, 0xe3e3ea00,	0xe5e7ec00, 0xe5e7ec00,	0xe9eaef00, 0xe9eaef00,	0xeceef100, 0xeceef100,	0xf1f1f400, 0xf1f1f400,	0xf5f6f800, 0xf5f6f800,	0xf9f9fa00, 0xf9f9fa00,	0xfcfdfd00, 0xfcfdfd00,	0xfbfbfb00, 0xfbfbfb00,	0xe9e9ec00, 0xe9e9ec00,	0xc7c7d300, 0xc7c7d300,	};	theme_set(img, rgba, 2, 21, 0, 0, 2, 21);}/* * title-1-active.xpm */static void title_1_active_xpm (s_image_t *img){	unsigned int rgba[42] = {	0x706f7f00, 0x706f7f00,	0xf5f5f800, 0xf5f5f800,	0xcacad800, 0xcacad800,	0xa6a5bf00, 0xa6a5bf00,	0xaeacc500, 0xaeacc500,	0xb0b2c800, 0xb0b2c800,	0xb4b6c700, 0xd0d0d800,	0xb6b7c800, 0xb6b7c800,	0xb9bbca00, 0xb9bbca00,	0xbfc1cf00, 0xbfc1cf00,	0xc3c5d300, 0xc3c5d300,	0xc9ccd700, 0xc9ccd700,	0xd1d3dd00, 0xd1d3dd00,	0xd8dbe300, 0xd8dbe300,	0xe1e3e900, 0xe1e3e900,	0xebecf000, 0xebecf000,	0xf3f4f600, 0xf3f4f600,	0xfafbfc00, 0xfafbfc00,	0xf8f8f800, 0xf8f8f800,	0xd0d0d800, 0xd0d0d800,	0x8889a100, 0x8889a100,	};	theme_set(img, rgba, 2, 21, 0, 0, 2, 21);}/* * title-2-inactive.xpm */static void title_2_inactive_xpm (s_image_t *img){	unsigned int rgba[42] = {	0xbcbbc300, 0xbcbbc300,	0xfafafb00, 0xfafafb00,	0xe6e6ec00, 0xe6e6ec00,	0xd5d5e100, 0xd5d5e100,	0xd9d8e300, 0xd9d8e300,	0xdadbe500, 0xdadbe500,	0xdcdce400, 0xdcdce400,	0xdcdde500, 0xdcdde500,	0xdedfe600, 0xdedfe600,	0xe1e2e800, 0xe1e2e800,	0xe3e3ea00, 0xe3e3ea00,	0xe5e7ec00, 0xe5e7ec00,	0xe9eaef00, 0xe9eaef00,	0xeceef100, 0xeceef100,	0xf1f1f400, 0xf1f1f400,	0xf5f6f800, 0xf5f6f800,	0xf9f9fa00, 0xf9f9fa00,	0xfcfdfd00, 0xfcfdfd00,	0xfbfbfb00, 0xfbfbfb00,	0xe9e9ec00, 0xe9e9ec00,	0xc7c7d300, 0xc7c7d300,	};	theme_set(img, rgba, 2, 21, 0, 0, 2, 21);}/* * title-2-active.xpm */static void title_2_active_xpm (s_image_t *img){	unsigned int rgba[42] = {	0x706f7f00, 0x706f7f00,

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?