Class TCastleImageControl

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TCastleImageControl = class(TUIControlPos)

Description

Image control inside OpenGL context. Size is automatically adjusted to the image size. You should set TCastleImageControl.Left, TCastleImageControl.Bottom properties, and load your image by setting TCastleImageControl.FileName property or straight TCastleImageControl.Image.

Hierarchy

Overview

Methods

Public destructor Destroy; override;
Public function DrawStyle: TUIControlDrawStyle; override;
Public procedure Draw; override;
Public function PositionInside(const X, Y: Integer): boolean; override;
Public procedure GLContextOpen; override;
Public procedure GLContextClose; override;
Public procedure Idle(const CompSpeed: Single; const HandleMouseAndKeys: boolean; var LetOthersHandleMouseAndKeys: boolean); override;
Public function Width: Cardinal;
Public function Height: Cardinal;

Properties

Public property Image: TCastleImage read FImage write SetImage;
Published property FileName: string read FFileName write SetFileName;
Published property Blending: boolean read FBlending write FBlending default false;

Description

Methods

Public destructor Destroy; override;
 
Public function DrawStyle: TUIControlDrawStyle; override;
 
Public procedure Draw; override;
 
Public function PositionInside(const X, Y: Integer): boolean; override;
 
Public procedure GLContextOpen; override;
 
Public procedure GLContextClose; override;
 
Public procedure Idle(const CompSpeed: Single; const HandleMouseAndKeys: boolean; var LetOthersHandleMouseAndKeys: boolean); override;
 
Public function Width: Cardinal;
 
Public function Height: Cardinal;
 

Properties

Public property Image: TCastleImage read FImage write SetImage;

Image displayed, or Nil if none. This image is owned by this component. If you set this property to your custom TCastleImage instance you should leave memory management of this instance to this component. If necessary, you can always create a copy by TCastleImage.MakeCopy if you want to give here only a copy.

Published property FileName: string read FFileName write SetFileName;

File name of the image. Setting this also sets Image. Set this to '' to clear the image.

Published property Blending: boolean read FBlending write FBlending default false;

Set to True to draw image with blending. This is suitable for images that (may) have nice alpha channel.


Generated by PasDoc 0.12.1 on 2013-02-04 20:26:50