from https://developer.gnome.org 가장 먼저 필요한 헤더들을 #include 합니다: /* * Copyright information */ #include "viewer-file.h" /* Private structure definition. */ typedef struct { gchar *filename; /* stuff */ } ViewerFilePrivate; /* * forward definitions */ [COMMENT] 위의 ViewerFilePrivate 이름의 private structure는 derivable type 선언 시에 필 READ MORE

from https://developer.gnome.org GObject 위한 코드 작성의 첫 단계는 “타입의 header"를 작성하는 일입니다. 여기에는 필요한 타입, 함수, 매크로가 포함됩니다. 이 READ MORE

from https://developer.gnome.org 이 챕터에서는 커스텀 class hierachy를 만든다거나, GTK+ 위젯의 서브클래스를 생성한다거나 하는 “GObject의 subtype&qu READ MORE

from https://developer.gnome.org 원본 문서를 header/source 파일로 나누어서 보기 쉽게 정리해 보았습니다. Header 파일 Header 파일을 작성해서 외부로 노출되는 새로운 type을 생성하고자 할 때, 아래의 간단한 코드 READ MORE

PAGE 1 / 1