omtk - a platform independent GUI toolkit

Documentation

 

General

Constants

OMTK_VERSION

#define OMTK_VERSION

The omtk version in the format: mmsspp where m is the main version, s the sub version and p the patch version.

Example:

#if OMTK_VERSION < 102
#error This application needs at least omtk 0.1.2
#endif

OMTK_PLAT_*

#define OMTK_PLAT_*

There are currently two platforms omtk works on:

  • OMTK_PLAT_GTK: GTK2
  • OMTK_PLAT_MAC: Mac OS X (Cocoa)

You implement platform specific stuff like this:

#if defined(OMTK_PLAT_GTK)
  printf("This is the GTK2 version\n");
#elif defined(OMTK_PLAT_MAC)
  printf("This is the Mac OS X version\n");
#endif

Functions

omtk_main()

int omtk_main(int argc, char *argv[]);

This function has to be provided by the user. Every omtk application starts with this function.

Don't add documents in this function, do that in OMTK_EVENT_DID_LAUNCH the event instead.

This is the simplest possible omtk application:

#include <omtk.h>

int omtk_main(int argc, char *argv[])
{
  return 0;
}


Zurück zu www.eggdrop.ch | Back to www.eggdrop.ch

Last update: 20.02.04

Copyright (C) 2004, 2005 by Thomas "tom" Steinacher <tom at eggdrop.ch>

SourceForge.net Logo Valid HTML 4.0!