Border color and background color

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi! My email add is crisc@xxxxxxxxx Im new to the X window  Programming
world,  im starting with creating a simple window.
One of the parameter XcreateSimpleWindow function is the border thickness
and border color. How do I specify that?

Ex:

Int win_border_width;
Int win_border_color;

win_border_width=2;
win_border_color=5;

now for ex im starting to create a wiondow like this:

/* create the window, as specified earlier. */
win = XCreateSimpleWindow(display,
                          RootWindow(display, screen_num),
                          win_x, win_y,
                          win_width, win_height,
                          win_border_width, BlackPixel(display,
screen_num),
                          win_botder_color, WhitePixel(display,
screen_num));
Is this correct?
I want Black as my background color. Please help me.

Regards,
Tina









[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux