Index

Package: Palettes

Description

package Widgets.Palettes is
Copyright (c) 2012 Kevin Wellwood All rights reserved. This source code is distributed under the Modified BSD License. For terms and conditions, see license.txt.

Classes

Palette (abstract)

type Palette is abstract new Widget and Scrollable with private;

Ancestors:

Immediate Children:

Widgets.Palettes.Enemies.Enemy_Palette
Widgets.Palettes.Items.Item_Palette

Primitive operations:

Construct (overriding Widgets.Construct)
Draw_Content
Get_Item_Count
Get_Item_Details
Get_Min_Height (overriding Widgets.Get_Min_Height)
Get_Min_Width (overriding Widgets.Get_Min_Width)
Get_Scroll_Inc_X
Get_Scroll_Inc_Y
Objects.Construct (Inherited)
On_Exit (overriding Widgets.On_Exit)
On_Mouse_Move
Scrollables.Get_Scroll_Inc_X (Inherited)
Scrollables.Get_Scroll_Inc_Y (Inherited)
Widgets.Activate_Popup (Inherited)
Widgets.Bring_To_Front (Inherited)
Widgets.Delete (Inherited)
Widgets.Draw (Inherited)
Widgets.Draw_Content (Inherited)
Widgets.Find_Widget_At (Inherited)
Widgets.Get_Color (Inherited)
Widgets.Get_Process_Name (Inherited)
Widgets.Get_View (Inherited)
Widgets.Get_Window (Inherited)
Widgets.Handle_Rooted (Inherited)
Widgets.Handle_Shown (Inherited)
Widgets.Is_Rooted (Inherited)
Widgets.Is_Showing (Inherited)
Widgets.On_Blur (Inherited)
Widgets.On_Click (Inherited)
Widgets.On_Descendant_Shown (Inherited)
Widgets.On_Disabled (Inherited)
Widgets.On_Enabled (Inherited)
Widgets.On_Enter (Inherited)
Widgets.On_Focus (Inherited)
Widgets.On_Key_Press (Inherited)
Widgets.On_Key_Release (Inherited)
Widgets.On_Key_Typed (Inherited)
Widgets.On_Mouse_Held (Inherited)
Widgets.On_Mouse_Move (Inherited)
Widgets.On_Mouse_Press (Inherited)
Widgets.On_Mouse_Release (Inherited)
Widgets.On_Mouse_Scroll (Inherited)
Widgets.On_Resize (Inherited)
Widgets.On_Rooted (Inherited)
Widgets.On_Shown (Inherited)
Widgets.Pack (Inherited)
Widgets.Set_Border (Inherited)
Widgets.Set_Color (Inherited)
Widgets.Set_Parent (Inherited)
Widgets.Set_Zoom (Inherited)
Widgets.To_String (Inherited)
Widgets.Translate_To_Content (Inherited)
Widgets.Translate_To_Window (Inherited)

Types

A_Palette

type A_Palette is access all Palette'Class;

Subprograms & Entries

Get_Item_Count (abstract)

function Get_Item_Count
( this: access Palette ) return Natural is abstract;

Get_Item_Details (abstract)

procedure Get_Item_Details
( this: access Palette;
row, col: Natural;
bmp: out A_Allegro_Bitmap;
border: out Allegro_Color ) is abstract;

Set_Columns

procedure Set_Columns
( this: not null access Palette'Class;
columns: Natural );

Set_Icon_Size

procedure Set_Icon_Size
( this: not null access Palette'Class;
width, height: Positive );