offer_focus(3alleg)

offer_focus3alleg

Offers the input focus to a particular object. allegro game programming library.

Usage

#include <allegro.h>

int offer_focus(DIALOG *dialog, int obj, int *focus_obj, int force);

Overview

Offers the input focus to a particular object. Normally the function sends the MSG_WANTFOCUS message to query whether the object is willing to accept the focus. However, passing any non-zero value as force argument instructs the function to authoritatively set the focus to the object.

Releases

4 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0
  3. 5.0–6.0

From liballegro-doc 2:4.2.2-2.2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.