Updated texture constants

This commit is contained in:
fluxgen 2001-12-29 11:39:34 +00:00
parent bc53e48abb
commit a29e46aa9f
4 changed files with 17 additions and 17 deletions

View file

@ -310,7 +310,7 @@ void Slit::reconfigure(void) {
Pixmap tmp = frame.pixmap;
BImageControl *image_ctrl = screen->getImageControl();
BTexture *texture = &(screen->getToolbarStyle()->toolbar);
if (texture->getTexture() == (BImage_Flat | BImage_Solid)) {
if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) {
frame.pixmap = None;
XSetWindowBackground(display, frame.window,
texture->getColor()->getPixel());

View file

@ -165,9 +165,9 @@ void Tab::decorate() {
Pixmap tmp = m_focus_pm;
BTexture *texture = &(m_win->getScreen()->getWindowStyle()->tab.l_focus);
if (texture->getTexture() & BImage_ParentRelative ) {
if (texture->getTexture() & BImage::PARENTRELATIVE ) {
BTexture *pt = &(m_win->getScreen()->getWindowStyle()->tab.t_focus);
if (pt->getTexture() == (BImage_Flat | BImage_Solid)) {
if (pt->getTexture() == (BImage::FLAT | BImage::SOLID)) {
m_focus_pm = None;
m_focus_pixel = pt->getColor()->getPixel();
} else
@ -176,7 +176,7 @@ void Tab::decorate() {
if (tmp) image_ctrl->removeImage(tmp);
} else {
if (texture->getTexture() == (BImage_Flat | BImage_Solid)) {
if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) {
m_focus_pm = None;
m_focus_pixel = texture->getColor()->getPixel();
} else
@ -188,16 +188,16 @@ void Tab::decorate() {
tmp = m_unfocus_pm;
texture = &(m_win->getScreen()->getWindowStyle()->tab.l_unfocus);
if (texture->getTexture() & BImage_ParentRelative ) {
if (texture->getTexture() & BImage::PARENTRELATIVE ) {
BTexture *pt = &(m_win->getScreen()->getWindowStyle()->tab.t_unfocus);
if (pt->getTexture() == (BImage_Flat | BImage_Solid)) {
if (pt->getTexture() == (BImage::FLAT | BImage::SOLID)) {
m_unfocus_pm = None;
m_unfocus_pixel = pt->getColor()->getPixel();
} else
m_unfocus_pm =
image_ctrl->renderImage(m_size_w, m_size_h, pt);
} else {
if (texture->getTexture() == (BImage_Flat | BImage_Solid)) {
if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) {
m_unfocus_pm = None;
m_unfocus_pixel = texture->getColor()->getPixel();
} else

View file

@ -766,9 +766,9 @@ bool Theme::readDatabaseTexture(char *rname, char *rclass,
&value))
m_imagecontrol->parseTexture(texture, value.addr);
else
texture->setTexture(BImage_Solid | BImage_Flat);
texture->setTexture(BImage::SOLID | BImage::FLAT);
if (texture->getTexture() & BImage_Solid) {
if (texture->getTexture() & BImage::SOLID) {
int clen = strlen(rclass) + 32, nlen = strlen(rname) + 32;
char *colorclass = new char[clen], *colorname = new char[nlen];
@ -792,7 +792,7 @@ bool Theme::readDatabaseTexture(char *rname, char *rclass,
delete [] colorname;
if ((! texture->getColor()->isAllocated()) ||
(texture->getTexture() & BImage_Flat))
(texture->getTexture() & BImage::FLAT))
return retval;
XColor xcol;
@ -829,7 +829,7 @@ bool Theme::readDatabaseTexture(char *rname, char *rclass,
xcol.pixel = 0;
texture->getLoColor()->setPixel(xcol.pixel);
} else if (texture->getTexture() & BImage_Gradient) {
} else if (texture->getTexture() & BImage::GRADIENT) {
int clen = strlen(rclass) + 10, nlen = strlen(rname) + 10;
char *colorclass = new char[clen], *colorname = new char[nlen],

View file

@ -391,7 +391,7 @@ void Toolbar::reconfigure(void) {
Pixmap tmp = frame.base;
BTexture *texture = &(screen->getToolbarStyle()->toolbar);
if (texture->getTexture() == (BImage_Flat | BImage_Solid)) {
if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) {
frame.base = None;
XSetWindowBackground(display, frame.window,
texture->getColor()->getPixel());
@ -404,7 +404,7 @@ void Toolbar::reconfigure(void) {
tmp = frame.label;
texture = &(screen->getToolbarStyle()->window);
if (texture->getTexture() == (BImage_Flat | BImage_Solid)) {
if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) {
frame.label = None;
XSetWindowBackground(display, frame.window_label,
texture->getColor()->getPixel());
@ -417,7 +417,7 @@ void Toolbar::reconfigure(void) {
tmp = frame.wlabel;
texture = &(screen->getToolbarStyle()->label);
if (texture->getTexture() == (BImage_Flat | BImage_Solid)) {
if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) {
frame.wlabel = None;
XSetWindowBackground(display, frame.workspace_label,
texture->getColor()->getPixel());
@ -430,7 +430,7 @@ void Toolbar::reconfigure(void) {
tmp = frame.clk;
texture = &(screen->getToolbarStyle()->clock);
if (texture->getTexture() == (BImage_Flat | BImage_Solid)) {
if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) {
frame.clk = None;
XSetWindowBackground(display, frame.clock,
texture->getColor()->getPixel());
@ -443,7 +443,7 @@ void Toolbar::reconfigure(void) {
tmp = frame.button;
texture = &(screen->getToolbarStyle()->button);
if (texture->getTexture() == (BImage_Flat | BImage_Solid)) {
if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) {
frame.button = None;
frame.button_pixel = texture->getColor()->getPixel();
@ -464,7 +464,7 @@ void Toolbar::reconfigure(void) {
tmp = frame.pbutton;
texture = &(screen->getToolbarStyle()->pressed);
if (texture->getTexture() == (BImage_Flat | BImage_Solid)) {
if (texture->getTexture() == (BImage::FLAT | BImage::SOLID)) {
frame.pbutton = None;
frame.pbutton_pixel = texture->getColor()->getPixel();
} else