Eiffel Media API
Overview Cluster Class Classes Index      Previous Next      Top Features

em.event

Class EM_QUIT_EVENT


Direct ancestors

EM_EVENT

Creation

Features

Invariants

indexing

description

Quit event

date

$Date: 2005/10/23 09:07:03 $

revision

$Revision: 1.3 $

class

EM_QUIT_EVENT

inherit

EM_EVENT

create

make (a_pointer: POINTER)

-- Create an event to wrap an SDL_Event
-- referenced by a_pointer.

-- (From EM_EVENT)

require
a_pointer_not_null: a_pointer /= Default_pointer

feature -- Status report

caught: BOOLEAN

-- Has Current event already been caught?
-- This means that somebody handled the event
-- and it should not be published any further.

-- (From EM_EVENT)

feature -- Status setting

set_caught (a_bool: BOOLEAN)

-- Set caught to a_bool.
-- One should call set_caught with True
-- when Current should not be published any further.

-- (From EM_EVENT)

ensure
caught_set: caught = a_bool

feature -- Queries

type: INTEGER

-- Event type
-- (see EM_CONSTANTS for possible values).

-- (From EM_EVENT)

invariant

-- From EM_EVENT
sdl_event_not_void: sdl_event /= Void

-- From ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)

end