gi-gtk-4.0.5: Gtk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gtk.Structs.Border

Description

A struct that specifies a border around a rectangular area.

Each side can have different width.

Synopsis

Exported types

newtype Border Source #

Memory-managed wrapper type.

Constructors

Border (ManagedPtr Border) 

Instances

Instances details
Eq Border Source # 
Instance details

Defined in GI.Gtk.Structs.Border

Methods

(==) :: Border -> Border -> Bool #

(/=) :: Border -> Border -> Bool #

GBoxed Border Source # 
Instance details

Defined in GI.Gtk.Structs.Border

ManagedPtrNewtype Border Source # 
Instance details

Defined in GI.Gtk.Structs.Border

TypedObject Border Source # 
Instance details

Defined in GI.Gtk.Structs.Border

Methods

glibType :: IO GType #

HasParentTypes Border Source # 
Instance details

Defined in GI.Gtk.Structs.Border

tag ~ 'AttrSet => Constructible Border tag Source # 
Instance details

Defined in GI.Gtk.Structs.Border

Methods

new :: MonadIO m => (ManagedPtr Border -> Border) -> [AttrOp Border tag] -> m Border #

IsGValue (Maybe Border) Source #

Convert Border to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Structs.Border

type ParentTypes Border Source # 
Instance details

Defined in GI.Gtk.Structs.Border

type ParentTypes Border = '[] :: [Type]

newZeroBorder :: MonadIO m => m Border Source #

Construct a Border struct initialized to zero.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

copy, free.

Getters

None.

Setters

None.

copy

borderCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Border

border_: a GtkBorder struct

-> m Border

Returns: a copy of border_.

Copies a GtkBorder.

free

borderFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Border

border_: a GtkBorder struct

-> m () 

Frees a GtkBorder.

new

borderNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m Border

Returns: a newly allocated GtkBorder struct. Free with borderFree

Allocates a new GtkBorder struct and initializes its elements to zero.

Properties

bottom

The width of the bottom border

getBorderBottom :: MonadIO m => Border -> m Int16 Source #

Get the value of the “bottom” field. When overloading is enabled, this is equivalent to

get border #bottom

setBorderBottom :: MonadIO m => Border -> Int16 -> m () Source #

Set the value of the “bottom” field. When overloading is enabled, this is equivalent to

set border [ #bottom := value ]

left

The width of the left border

getBorderLeft :: MonadIO m => Border -> m Int16 Source #

Get the value of the “left” field. When overloading is enabled, this is equivalent to

get border #left

setBorderLeft :: MonadIO m => Border -> Int16 -> m () Source #

Set the value of the “left” field. When overloading is enabled, this is equivalent to

set border [ #left := value ]

right

The width of the right border

getBorderRight :: MonadIO m => Border -> m Int16 Source #

Get the value of the “right” field. When overloading is enabled, this is equivalent to

get border #right

setBorderRight :: MonadIO m => Border -> Int16 -> m () Source #

Set the value of the “right” field. When overloading is enabled, this is equivalent to

set border [ #right := value ]

top

The width of the top border

getBorderTop :: MonadIO m => Border -> m Int16 Source #

Get the value of the “top” field. When overloading is enabled, this is equivalent to

get border #top

setBorderTop :: MonadIO m => Border -> Int16 -> m () Source #

Set the value of the “top” field. When overloading is enabled, this is equivalent to

set border [ #top := value ]