Poison-ui

A cross-platform desktop/mobile UI engine written in D using dsfml

View project on GitHub

Dub version

poison.ui.controls.picturebox

Source

Module for a picturebox.

Authors:

  Jacob Jensen

License:

  https://github.com/PoisonEngine/poison-ui/blob/master/LICENSE

public:




public this(string name, string imageFile, size_t layers = 1);


Creates a new picture box.

Parameters:

nameThe name of the pictue box.
imageFileThe image file to load into the picture.
layersThe amount of layers the picture box has.

public this(string name, Picture picture, size_t layers);


Creates a new picture box.

Parameters:

nameThe name of the pictue box.
pictureThe picture to initialize with.
layersThe amount of layers the picture box has.

public @property Picture picture();


Gets the picture.


public @property override Point position();


Gets the position of the picturebox.


public @property override void position(Point newPosition);


Sets the position of the picturebox.


Generated by venom - Poison Engine's Documentation Generator