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

em.widget.delegates.eclipse_delegates

Class EM_ECLIPSE_TEXTLIST_DELEGATE


Direct ancestors

EM_LIST_DELEGATE, EM_WIDGET_DRAWING

Features

Invariants

indexing

description

Delegate of an EM_LIST.

date

$Date: 2005/10/23 11:19:56 $

revision

$Revision: 1.6 $

class

EM_ECLIPSE_TEXTLIST_DELEGATE

inherit

EM_LIST_DELEGATE

feature -- Initialisation

install_surface (widget: EM_WIDGET)

-- Install style on widgets surface
-- This will be called for every resize of the widget.

-- (From EM_WIDGET_DELEGATE)

require
a_widget_not_void: widget /= Void

feature -- Measurement

contains (widget: EM_WIDGET; a_x, a_y: INTEGER): BOOLEAN

-- Does widget contain a_x a_y.

-- (From EM_WIDGET_DELEGATE)

require
widget_not_void: widget /= Void
a_x_in_bounds: 0 <= a_x and a_x <= widget.width
a_y_in_bounds: 0 <= a_y and a_y <= widget.height

feature -- Basic operations

position_to_text_index (list: EM_TEXTLIST [ANY]; a_x, a_y: INTEGER): INTEGER

-- List index at position a_x a_y

-- (From EM_LIST_DELEGATE)

feature -- Drawing

draw_body (list: EM_TEXTLIST [ANY])

-- Draw body of list.

-- (From EM_WIDGET_DELEGATE)

require
widget_not_void: widget /= Void

feature -- Setup

install (list: EM_TEXTLIST [ANY])

-- Install style on list.
-- Set up all default values for background, border, font and colors.

-- (From EM_WIDGET_DELEGATE)

require
widget_not_void: widget /= Void

feature -- Layout

optimal_height (list: EM_TEXTLIST [ANY]): INTEGER

-- Optimal height list

-- (From EM_WIDGET_DELEGATE)

require
widget_not_void: widget /= Void
ensure
result_not_negative: Result >= 0
optimal_width (list: EM_TEXTLIST [ANY]): INTEGER

-- Optimal width of list

-- (From EM_WIDGET_DELEGATE)

require
widget_not_void: widget /= Void
ensure
result_not_negative: Result >= 0

invariant


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

end