gi-gtk-3.0.11: Gtk bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.FontButton

Contents

Description

The FontButton is a button which displays the currently selected font an allows to open a font chooser dialog to change the font. It is suitable widget for selecting a font in a preference dialog.

CSS nodes

GtkFontButton has a single CSS node with name button and style class .font.

Synopsis

Exported types

Methods

getFontName

fontButtonGetFontName Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontButton a) 
=> a

fontButton: a FontButton

-> m Text

Returns: an internal copy of the font name which must not be freed.

Retrieves the name of the currently selected font. This name includes style and size information as well. If you want to render something with the font, use this string with fontDescriptionFromString . If you’re interested in peeking certain values (family name, style, size, weight) just query these properties from the FontDescription object.

Since: 2.4

getShowSize

fontButtonGetShowSize Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontButton a) 
=> a

fontButton: a FontButton

-> m Bool

Returns: whether the font size will be shown in the label.

Returns whether the font size will be shown in the label.

Since: 2.4

getShowStyle

fontButtonGetShowStyle Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontButton a) 
=> a

fontButton: a FontButton

-> m Bool

Returns: whether the font style will be shown in the label.

Returns whether the name of the font style will be shown in the label.

Since: 2.4

getTitle

fontButtonGetTitle Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontButton a) 
=> a

fontButton: a FontButton

-> m Text

Returns: an internal copy of the title string which must not be freed.

Retrieves the title of the font chooser dialog.

Since: 2.4

getUseFont

fontButtonGetUseFont Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontButton a) 
=> a

fontButton: a FontButton

-> m Bool

Returns: whether the selected font is used in the label.

Returns whether the selected font is used in the label.

Since: 2.4

getUseSize

fontButtonGetUseSize Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontButton a) 
=> a

fontButton: a FontButton

-> m Bool

Returns: whether the selected size is used in the label.

Returns whether the selected size is used in the label.

Since: 2.4

new

fontButtonNew Source #

Arguments

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

Returns: a new font picker widget.

Creates a new font picker widget.

Since: 2.4

newWithFont

fontButtonNewWithFont Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

fontname: Name of font to display in font chooser dialog

-> m FontButton

Returns: a new font picker widget.

Creates a new font picker widget.

Since: 2.4

setFontName

fontButtonSetFontName Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontButton a) 
=> a

fontButton: a FontButton

-> Text

fontname: Name of font to display in font chooser dialog

-> m Bool

Returns: True

Sets or updates the currently-displayed font in font picker dialog.

Since: 2.4

setShowSize

fontButtonSetShowSize Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontButton a) 
=> a

fontButton: a FontButton

-> Bool

showSize: True if font size should be displayed in dialog.

-> m () 

If showSize is True, the font size will be displayed along with the name of the selected font.

Since: 2.4

setShowStyle

fontButtonSetShowStyle Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontButton a) 
=> a

fontButton: a FontButton

-> Bool

showStyle: True if font style should be displayed in label.

-> m () 

If showStyle is True, the font style will be displayed along with name of the selected font.

Since: 2.4

setTitle

fontButtonSetTitle Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontButton a) 
=> a

fontButton: a FontButton

-> Text

title: a string containing the font chooser dialog title

-> m () 

Sets the title for the font chooser dialog.

Since: 2.4

setUseFont

fontButtonSetUseFont Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontButton a) 
=> a

fontButton: a FontButton

-> Bool

useFont: If True, font name will be written using font chosen.

-> m () 

If useFont is True, the font name will be written using the selected font.

Since: 2.4

setUseSize

fontButtonSetUseSize Source #

Arguments

:: (HasCallStack, MonadIO m, IsFontButton a) 
=> a

fontButton: a FontButton

-> Bool

useSize: If True, font name will be written using the selected size.

-> m () 

If useSize is True, the font name will be written using the selected size.

Since: 2.4

Properties

fontName

data FontButtonFontNamePropertyInfo Source #

Instances

AttrInfo FontButtonFontNamePropertyInfo Source # 
type AttrOrigin FontButtonFontNamePropertyInfo Source # 
type AttrLabel FontButtonFontNamePropertyInfo Source # 
type AttrGetType FontButtonFontNamePropertyInfo Source # 
type AttrBaseTypeConstraint FontButtonFontNamePropertyInfo Source # 
type AttrSetTypeConstraint FontButtonFontNamePropertyInfo Source # 
type AttrAllowedOps FontButtonFontNamePropertyInfo Source # 

showSize

data FontButtonShowSizePropertyInfo Source #

Instances

AttrInfo FontButtonShowSizePropertyInfo Source # 
type AttrOrigin FontButtonShowSizePropertyInfo Source # 
type AttrLabel FontButtonShowSizePropertyInfo Source # 
type AttrGetType FontButtonShowSizePropertyInfo Source # 
type AttrBaseTypeConstraint FontButtonShowSizePropertyInfo Source # 
type AttrSetTypeConstraint FontButtonShowSizePropertyInfo Source # 
type AttrAllowedOps FontButtonShowSizePropertyInfo Source # 

showStyle

data FontButtonShowStylePropertyInfo Source #

Instances

AttrInfo FontButtonShowStylePropertyInfo Source # 
type AttrOrigin FontButtonShowStylePropertyInfo Source # 
type AttrLabel FontButtonShowStylePropertyInfo Source # 
type AttrGetType FontButtonShowStylePropertyInfo Source # 
type AttrBaseTypeConstraint FontButtonShowStylePropertyInfo Source # 
type AttrSetTypeConstraint FontButtonShowStylePropertyInfo Source # 
type AttrAllowedOps FontButtonShowStylePropertyInfo Source # 

title

data FontButtonTitlePropertyInfo Source #

Instances

AttrInfo FontButtonTitlePropertyInfo Source # 
type AttrOrigin FontButtonTitlePropertyInfo Source # 
type AttrLabel FontButtonTitlePropertyInfo Source # 
type AttrGetType FontButtonTitlePropertyInfo Source # 
type AttrBaseTypeConstraint FontButtonTitlePropertyInfo Source # 
type AttrSetTypeConstraint FontButtonTitlePropertyInfo Source # 
type AttrAllowedOps FontButtonTitlePropertyInfo Source # 

useFont

data FontButtonUseFontPropertyInfo Source #

Instances

AttrInfo FontButtonUseFontPropertyInfo Source # 
type AttrOrigin FontButtonUseFontPropertyInfo Source # 
type AttrLabel FontButtonUseFontPropertyInfo Source # 
type AttrGetType FontButtonUseFontPropertyInfo Source # 
type AttrBaseTypeConstraint FontButtonUseFontPropertyInfo Source # 
type AttrSetTypeConstraint FontButtonUseFontPropertyInfo Source # 
type AttrAllowedOps FontButtonUseFontPropertyInfo Source # 

useSize

data FontButtonUseSizePropertyInfo Source #

Instances

AttrInfo FontButtonUseSizePropertyInfo Source # 
type AttrOrigin FontButtonUseSizePropertyInfo Source # 
type AttrLabel FontButtonUseSizePropertyInfo Source # 
type AttrGetType FontButtonUseSizePropertyInfo Source # 
type AttrBaseTypeConstraint FontButtonUseSizePropertyInfo Source # 
type AttrSetTypeConstraint FontButtonUseSizePropertyInfo Source # 
type AttrAllowedOps FontButtonUseSizePropertyInfo Source # 

Signals

fontSet