GimpUi.AspectPreview

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned GimpUi.AspectPreview GimpUi.AspectPreview GimpUi.Preview GimpUi.Preview GimpUi.Preview->GimpUi.AspectPreview Gtk.Box Gtk.Box Gtk.Box->GimpUi.Preview Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Box Gtk.Orientable->Gtk.Box Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

GimpUi.Preview (20), Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new_from_drawable (drawable)

Virtual Methods

Inherited:

GimpUi.Preview (7), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

GimpUi.Preview (1), Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)

Name

Type

Flags

Short Description

drawable

Gimp.Drawable

r/w/co

The drawable this preview is attached to

Child Properties

Inherited:

Gtk.Box (5)

Style Properties

Inherited:

GimpUi.Preview (1), Gtk.Widget (17)

Signals

Inherited:

GimpUi.Preview (1), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Fields

Inherited:

GimpUi.Preview (1), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Class Details

class GimpUi.AspectPreview(*args, **kwargs)
Bases:

GimpUi.Preview

Abstract:

No

Structure:

GimpUi.AspectPreviewClass

A widget providing a preview with fixed aspect ratio.

classmethod new_from_drawable(drawable)
Parameters:

drawable (Gimp.Drawable) – a drawable

Returns:

a new GimpUi.AspectPreview.

Return type:

Gtk.Widget

Creates a new GimpUi.AspectPreview widget for drawable_. See also GimpUi.DrawablePreview.new_from_drawable().

New in version 2.10.

Property Details

GimpUi.AspectPreview.props.drawable
Name:

drawable

Type:

Gimp.Drawable

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The drawable this preview is attached to