class EL_HORIZONTAL_BOX

(source code)

Client examples: PANGO_CAIRO_TEST_MAIN_WINDOW

Description

Horizontal box

note
	description: "Horizontal box"

	author: "Finnian Reilly"
	copyright: "Copyright (c) 2001-2017 Finnian Reilly"
	contact: "finnian at eiffel hyphen loop dot com"

	license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
	date: "2018-12-21 7:35:15 GMT (Friday 21st December 2018)"
	revision: "6"

class
	EL_HORIZONTAL_BOX

inherit
	EL_BOX
		rename
			implementation as box_implementation
		undefine
			fill, item, is_in_default_state, is_equal, prune_all, extend, put, replace
		end

	EV_HORIZONTAL_BOX
		select
			implementation
		end

create
	default_create, make, make_unexpanded

feature {NONE} -- Implementation

	cms_to_pixels (cms: REAL): INTEGER
			-- centimeters to pixels conversion according to box orientation
		do
			Result := Screen.horizontal_pixels (cms)
		end

	set_last_size (size: INTEGER)
			--
		do
			last.set_minimum_width (size)
		end

end