CreateWindow 함수에서 attributes 인자? [1]

CreateWindow 함수에서 attributes 인자?

2001-07-19 00:00 - 아따

클라이언트로 부터 아래의 함수를 호출하는 바이트 스트림을 받았습니다.
대부분의 인자는 이해가 되는데 젤 마지막의 인자는 무엇을 하는것인지
잘 모르겠습니다. 제가 개인적으로 보고있는 소스에서는 마지막 것을
무시하는거 같던데 그렇게 해도 되나요?
밑의 인자는 xfree86.org에서 인용한 것입니다.

attributes
Specifies the structure from which the values (as specified by the value mask) are to be taken. The value mask should have the appropriate bits set to indicate which attributes have been set in the structure.

Window XCreateWindow(display, parent, x, y, width, height, border_width, depth,
class, visual, valuemask, attributes)
Display *display;
Window parent;
int x, y;
unsigned int width, height;
unsigned int border_width;
int depth;
unsigned int class;
Visual *visual
unsigned long valuemask;
XSetWindowAttributes *attributes;


CreateWindow 함수에서 attributes 인자?

2001-07-20 00:00 - michael

마지막 인자는..

윈도우를 생성할 때, 윈도우의 attribute들을 디폴트 값이 아닌 다른 값으로 지정
해 줄 수 있습니다.
이 때, attribute값을 마지막 인자로 넘겨주면 되죠...(XSetAttributes라는 구조체 이용)
어떤 attribute를 설정할 것인가를 지정해 주는 것은 valuemask 값입니다.

자세한 것은 XLib 매뉴얼을 참조하시기를 바랍니다.


이전 조회수: 507