Xaw

Xaw

Xaw (англ. X Window System Athena widget set) — набор виджетов для реализации простых интерфейсов пользователя, основанный на X Toolkit Intrinsics. Распространяется с X Window System.

Xt и производные от него библиотеки: Xaw и Motif

Пример программы

Следующая программа создает кнопку в окне, с помощью Athena Widget:

/*
 * Компилируется строкой cc -o simple simple.c -lXaw -lXt -lX11
 */
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Shell.h>
#include <X11/Xaw/Form.h>
#include <X11/Xaw/Command.h>
 
XtAppContext app_context;
 
void quit_proc(Widget w, XtPointer client_data, XtPointer call_data)
{
    XtDestroyApplicationContext(app_context);
    exit(0);
}
 
int main(int argc, char **argv)
{
    Widget toplevel, form, w;
 
    toplevel = XtOpenApplication(&app_context, "XFirst", NULL, 0, &argc,
                                 argv, NULL, applicationShellWidgetClass,
                                 NULL, 0);
    form =
        XtVaCreateManagedWidget("form", formWidgetClass, toplevel, NULL);
    w = XtVaCreateManagedWidget("quit_button", commandWidgetClass, form,
                                XtNlabel, "Quit", NULL);
    XtAddCallback(w, XtNcallback, quit_proc, NULL);
    XtRealizeWidget(toplevel);
    XtAppMainLoop(app_context);
}

Ссылки

  • http://www.cactii.net/~bb/XawXpm/
  • XawPlus, a continuation in development of the Athena Widget Set (Xaw).
  • Survey of Widget Sets - сравнение различных версий Xaw.
  • Book — X Toolkit Intrinsics Ref Man R5, Third Edition.
  • TestXt2, Пример программы на языке C, которая создаёт менюбар используя только Xt/Xaw

Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Полезное


Смотреть что такое "Xaw" в других словарях:

  • Xaw — is short for the X Window System Athena widget set, which is a set of widgets to implement simple user interfaces based upon the X Toolkit Intrinsics. It is distributed with the X Window System. External links * http://www.cactii.net/ bb/XawXpm/… …   Wikipedia

  • Xaw — (littéralement « X Athena Widgets ») est un jeu de composants basé sur Intrinsics pour le développement d interfaces utilisateurs en environnement X. Le projet est maintenu par la fondation X.Org. v · X Window System Architecture …   Wikipédia en Français

  • Xaw — Xt y bibliotecas relacionadas. Xaw es una abreviatura que significa ‘X Window System Athena widget set’, y es un conjunto de widgets para implementar interfaces de usuario simples basadas en X Toolkit Intrinsics. Se distrubuye junto al X Window… …   Wikipedia Español

  • Xaw — X Athena Widget Bibliothek des MIT, Standard Widget Satz, Erweiterung zu Xt, enthält u.a. xload und xclock …   Acronyms

  • xaw — ISO 639 3 Code of Language ISO 639 2/B Code : ISO 639 2/T Code : ISO 639 1 Code : Scope : Individual Language Type : Living Language Name : Kawaiisu …   Names of Languages ISO 639-3

  • Xaw — X Athena Widget Bibliothek des MIT, Standard Widget Satz, Erweiterung zu Xt, enthält u.a. xload und xclock …   Acronyms von A bis Z

  • XAW — abbr. eXchange and Warranty …   Dictionary of abbreviations

  • Сетнахт — Фараон Древнего Египта ← Таусерт …   Википедия

  • Intrinsics — (also known as Xt, for X toolkit) is a library used in the X Window System. More precisely, it is a library that uses the low level Xlib library and provides a friendly (object oriented looking) API to develop X11 software with graphical widgets …   Wikipedia

  • Intrinsics — Pour les articles homonymes, voir Xt. Intrinsics (également désigné par l acronyme Xt, pour X toolkit, « boîte à outils X ») est une bibliothèque logicielle pour le protocole X Window System. Plus précisément, il s agit d une… …   Wikipédia en Français


Поделиться ссылкой на выделенное

Прямая ссылка:
Нажмите правой клавишей мыши и выберите «Копировать ссылку»