Documentation ¶
Index ¶
- Constants
- Variables
- func DesktopThumbnailIsValid(pixbuf *gdkpixbuf.Pixbuf, uri string, mtime int32) bool
- func DesktopThumbnailPathForURI(uri string, size DesktopThumbnailSize) string
- func GetAllLocales() []string
- func GetCountryFromCode(code, translation string) string
- func GetCountryFromLocale(locale, translation string) string
- func GetInputSourceFromLocale(locale string) (typ, id string, ok bool)
- func GetLanguageFromCode(code, translation string) string
- func GetLanguageFromLocale(locale, translation string) string
- func GetPlatformVersion() int
- func GetTranslatedModifier(modifier, translation string) string
- func LanguageHasTranslations(code string) bool
- func NormalizeLocale(locale string) string
- func ParseLocale(locale string) (languageCodep, countryCodep, codesetp, modifierp string, ok bool)
- func RrErrorQuark() glib.Quark
- func StartSystemdScopeFinish(res gio.AsyncResulter) error
- type BG
- func (bg *BG) ChangesWithTime() bool
- func (bg *BG) ConnectChanged(f func()) coreglib.SignalHandle
- func (bg *BG) ConnectTransitioned(f func()) coreglib.SignalHandle
- func (bg *BG) CreateFrameThumbnail(factory *DesktopThumbnailFactory, screen *gdk.Screen, ...) *gdkpixbuf.Pixbuf
- func (bg *BG) CreateSurface(window gdk.Windower, width, height int) *cairo.Surface
- func (bg *BG) CreateThumbnail(factory *DesktopThumbnailFactory, screen *gdk.Screen, ...) *gdkpixbuf.Pixbuf
- func (bg *BG) Draw(dest *gdkpixbuf.Pixbuf)
- func (bg *BG) Filename() string
- func (bg *BG) HasMultipleSizes() bool
- func (bg *BG) ImageSize(factory *DesktopThumbnailFactory, bestWidth, bestHeight int, ...) bool
- func (bg *BG) IsDark(destWidth, destHeight int) bool
- func (bg *BG) LoadFromPreferences(settings *gio.Settings)
- func (bg *BG) SaveToPreferences(settings *gio.Settings)
- func (bg *BG) SetFilename(filename string)
- type BGCrossfade
- func (fade *BGCrossfade) ConnectFinished(f func(window *coreglib.Object)) coreglib.SignalHandle
- func (fade *BGCrossfade) IsStarted() bool
- func (fade *BGCrossfade) SetEndSurface(surface *cairo.Surface) bool
- func (fade *BGCrossfade) SetStartSurface(surface *cairo.Surface) bool
- func (fade *BGCrossfade) Start(window gdk.Windower)
- func (fade *BGCrossfade) Stop()
- type BGCrossfadeClass
- type BGCrossfadeOverrides
- type BGSlideShow
- func (self *BGSlideShow) CurrentSlide(width, height int) (progress, duration float64, isFixed bool, file1, file2 string)
- func (self *BGSlideShow) HasMultipleSizes() bool
- func (self *BGSlideShow) Load() error
- func (self *BGSlideShow) NumSlides() int
- func (self *BGSlideShow) Slide(frameNumber, width, height int) (progress, duration float64, isFixed bool, file1, file2 string, ok bool)
- func (self *BGSlideShow) StartTime() float64
- func (self *BGSlideShow) TotalDuration() float64
- type BGSlideShowClass
- type BGSlideShowOverrides
- type DesktopThumbnailFactory
- func (factory *DesktopThumbnailFactory) CanThumbnail(uri, mimeType string, mtime int32) bool
- func (factory *DesktopThumbnailFactory) CreateFailedThumbnail(ctx context.Context, uri string, mtime int32) error
- func (factory *DesktopThumbnailFactory) CreateFailedThumbnailFinish(result gio.AsyncResulter) error
- func (factory *DesktopThumbnailFactory) GenerateThumbnail(ctx context.Context, uri, mimeType string) (*gdkpixbuf.Pixbuf, error)
- func (factory *DesktopThumbnailFactory) GenerateThumbnailFinish(result gio.AsyncResulter) (*gdkpixbuf.Pixbuf, error)
- func (factory *DesktopThumbnailFactory) HasValidFailedThumbnail(uri string, mtime int32) bool
- func (factory *DesktopThumbnailFactory) Lookup(uri string, mtime int32) string
- func (factory *DesktopThumbnailFactory) SaveThumbnail(ctx context.Context, thumbnail *gdkpixbuf.Pixbuf, uri string, ...) error
- func (factory *DesktopThumbnailFactory) SaveThumbnailFinish(result gio.AsyncResulter) error
- type DesktopThumbnailFactoryClass
- type DesktopThumbnailFactoryOverrides
- type DesktopThumbnailSize
- type IdleMonitor
- type IdleMonitorClass
- type IdleMonitorOverrides
- type IdleMonitorWatchFunc
- type PnpIDs
- type PnpIDsClass
- type PnpIDsOverrides
- type RRCTM
- type RRConfig
- func (configuration *RRConfig) Applicable(screen *RRScreen) error
- func (configuration *RRConfig) Apply(screen *RRScreen) error
- func (configuration *RRConfig) ApplyPersistent(screen *RRScreen) error
- func (configuration *RRConfig) Clone() bool
- func (configuration *RRConfig) EnsurePrimary() bool
- func (config1 *RRConfig) Equal(config2 *RRConfig) bool
- func (self *RRConfig) LoadCurrent() error
- func (config1 *RRConfig) Match(config2 *RRConfig) bool
- func (configuration *RRConfig) Outputs() []*RROutputInfo
- func (configuration *RRConfig) Sanitize()
- func (configuration *RRConfig) SetClone(clone bool)
- type RRConfigClass
- type RRConfigOverrides
- type RRCrtc
- func (crtc *RRCrtc) CanDriveOutput(output *RROutput) bool
- func (crtc *RRCrtc) CurrentMode() *RRMode
- func (crtc *RRCrtc) CurrentRotation() RRRotation
- func (crtc *RRCrtc) Gamma(size *int) (red *uint16, green *uint16, blue *uint16, ok bool)
- func (crtc *RRCrtc) ID() uint32
- func (crtc *RRCrtc) Position() (x int, y int)
- func (crtc *RRCrtc) Rotations() RRRotation
- func (crtc *RRCrtc) SetGamma(size int, red *uint16, green *uint16, blue *uint16) bool
- func (crtc *RRCrtc) SupportsRotation(rotation RRRotation) bool
- type RRDpmsMode
- type RRDpmsModeType
- type RRError
- type RRMode
- type RROutput
- func (output *RROutput) Backlight() int
- func (output *RROutput) CanClone(clone *RROutput) bool
- func (output *RROutput) Crtc() *RRCrtc
- func (output *RROutput) CurrentMode() *RRMode
- func (output *RROutput) DisplayName() string
- func (output *RROutput) EdidData(size *uint) *byte
- func (output *RROutput) ID() uint32
- func (output *RROutput) IDsFromEdid() (vendor string, product string, serial string)
- func (output *RROutput) IsBuiltinDisplay() bool
- func (output *RROutput) IsPrimary() bool
- func (output *RROutput) IsUnderscanning() bool
- func (output *RROutput) ListModes() []*RRMode
- func (output *RROutput) MinBacklightStep() int
- func (output *RROutput) Name() string
- func (output *RROutput) PhysicalSize() (widthMm int, heightMm int)
- func (output *RROutput) Position() (x int, y int)
- func (output *RROutput) PossibleCrtcs() []*RRCrtc
- func (output *RROutput) PreferredMode() *RRMode
- func (output *RROutput) SetBacklight(value int) error
- func (output *RROutput) SetColorTransform(value *RRCTM) error
- func (output *RROutput) SupportsColorTransform() bool
- func (output *RROutput) SupportsMode(mode *RRMode) bool
- func (output *RROutput) SupportsUnderscanning() bool
- type RROutputInfo
- func (self *RROutputInfo) AspectRatio() float64
- func (self *RROutputInfo) DisplayName() string
- func (self *RROutputInfo) Geometry() (x, y, width, height int)
- func (self *RROutputInfo) IsActive() bool
- func (self *RROutputInfo) IsConnected() bool
- func (self *RROutputInfo) IsPrimaryTile() bool
- func (self *RROutputInfo) Name() string
- func (self *RROutputInfo) PreferredHeight() int
- func (self *RROutputInfo) PreferredWidth() int
- func (self *RROutputInfo) Primary() bool
- func (self *RROutputInfo) Product() string
- func (self *RROutputInfo) RefreshRate() int
- func (self *RROutputInfo) Rotation() RRRotation
- func (self *RROutputInfo) Serial() string
- func (self *RROutputInfo) SetActive(active bool)
- func (self *RROutputInfo) SetGeometry(x, y, width, height int)
- func (self *RROutputInfo) SetPrimary(primary bool)
- func (self *RROutputInfo) SetRefreshRate(rate int)
- func (self *RROutputInfo) SetRotation(rotation RRRotation)
- func (self *RROutputInfo) SetUnderscanning(underscanning bool)
- func (self *RROutputInfo) SupportsRotation(rotation RRRotation) bool
- func (self *RROutputInfo) Underscanning() bool
- func (self *RROutputInfo) Vendor() string
- type RROutputInfoClass
- type RROutputInfoOverrides
- type RRRotation
- type RRScreen
- func (screen *RRScreen) ConnectChanged(f func()) coreglib.SignalHandle
- func (screen *RRScreen) ConnectOutputConnected(f func(output unsafe.Pointer)) coreglib.SignalHandle
- func (screen *RRScreen) ConnectOutputDisconnected(f func(output unsafe.Pointer)) coreglib.SignalHandle
- func (screen *RRScreen) CrtcByID(id uint32) *RRCrtc
- func (screen *RRScreen) DpmsMode() (RRDpmsMode, error)
- func (screen *RRScreen) ListCloneModes() []*RRMode
- func (screen *RRScreen) ListCrtcs() []*RRCrtc
- func (screen *RRScreen) ListModes() []*RRMode
- func (screen *RRScreen) ListOutputs() []*RROutput
- func (screen *RRScreen) OutputByID(id uint32) *RROutput
- func (screen *RRScreen) OutputByName(name string) *RROutput
- func (screen *RRScreen) Ranges() (minWidth, maxWidth, minHeight, maxHeight int)
- func (screen *RRScreen) Refresh() error
- func (screen *RRScreen) SetDpmsMode(mode RRDpmsMode) error
- type RRScreenClass
- type RRScreenOverrides
- type WallClock
- type WallClockClass
- type WallClockOverrides
- type XkbInfo
- func (self *XkbInfo) AllLayouts() []string
- func (self *XkbInfo) AllOptionGroups() []string
- func (self *XkbInfo) ConnectLayoutsChanged(f func()) coreglib.SignalHandle
- func (self *XkbInfo) DescriptionForGroup(groupId string) string
- func (self *XkbInfo) DescriptionForOption(groupId, id string) string
- func (self *XkbInfo) LanguagesForLayout(layoutId string) []string
- func (self *XkbInfo) LayoutInfo(id string) (displayName, shortName, xkbLayout, xkbVariant string, ok bool)
- func (self *XkbInfo) LayoutsForCountry(countryCode string) []string
- func (self *XkbInfo) LayoutsForLanguage(languageCode string) []string
- func (self *XkbInfo) OptionsForGroup(groupId string) []string
- type XkbInfoClass
- type XkbInfoOverrides
Constants ¶
const DESKTOP_PLATFORM_VERSION = 44
const RR_CONNECTOR_TYPE_PANEL = "Panel"
Variables ¶
var ( GTypeRRConfig = coreglib.Type(C.gnome_rr_config_get_type()) GTypeRROutputInfo = coreglib.Type(C.gnome_rr_output_info_get_type()) )
GType values.
var ( GTypeRRScreen = coreglib.Type(C.gnome_rr_screen_get_type()) GTypeRRCrtc = coreglib.Type(C.gnome_rr_crtc_get_type()) GTypeRRMode = coreglib.Type(C.gnome_rr_mode_get_type()) GTypeRROutput = coreglib.Type(C.gnome_rr_output_get_type()) )
GType values.
var (
GTypeBG = coreglib.Type(C.gnome_bg_get_type())
)
GType values.
var (
GTypeBGCrossfade = coreglib.Type(C.gnome_bg_crossfade_get_type())
)
GType values.
var (
GTypeBGSlideShow = coreglib.Type(C.gnome_bg_slide_show_get_type())
)
GType values.
var (
GTypeDesktopThumbnailFactory = coreglib.Type(C.gnome_desktop_thumbnail_factory_get_type())
)
GType values.
var (
GTypeIdleMonitor = coreglib.Type(C.gnome_idle_monitor_get_type())
)
GType values.
var (
GTypePnpIDs = coreglib.Type(C.gnome_pnp_ids_get_type())
)
GType values.
var (
GTypeRRDpmsModeType = coreglib.Type(C.gnome_rr_dpms_mode_get_type())
)
GType values.
var (
GTypeWallClock = coreglib.Type(C.gnome_wall_clock_get_type())
)
GType values.
var (
GTypeXkbInfo = coreglib.Type(C.gnome_xkb_info_get_type())
)
GType values.
Functions ¶
func DesktopThumbnailIsValid ¶
DesktopThumbnailIsValid returns whether the thumbnail has the correct uri and mtime embedded in the png options. This function is threadsafe and does no blocking I/O.
The function takes the following parameters:
- pixbuf: loaded thumbnail Pixbuf.
- uri: uri.
- mtime: mtime.
The function returns the following values:
- ok: TRUE if the thumbnail has the right uri and mtime.
func DesktopThumbnailPathForURI ¶
func DesktopThumbnailPathForURI(uri string, size DesktopThumbnailSize) string
DesktopThumbnailPathForURI returns the filename that a thumbnail of size size for uri would have. This function is threadsafe and does no blocking I/O.
The function takes the following parameters:
- uri: uri.
- size: thumbnail size.
The function returns the following values:
- utf8: absolute filename.
func GetAllLocales ¶
func GetAllLocales() []string
GetAllLocales gets all locales.
The function returns the following values:
- utf8s: a newly allocated NULL-terminated string array containing the all locales. Free with g_strfreev().
func GetCountryFromCode ¶
GetCountryFromCode gets the country name for code. If translation is provided the returned string is translated accordingly.
The function takes the following parameters:
- code: ISO 3166 code string.
- translation (optional): locale string.
The function returns the following values:
- utf8: country name. Caller takes ownership.
func GetCountryFromLocale ¶
GetCountryFromLocale gets the country description for locale. If translation is provided the returned string is translated accordingly.
The function takes the following parameters:
- locale string.
- translation (optional): locale string.
The function returns the following values:
- utf8: country description. Caller takes ownership.
func GetInputSourceFromLocale ¶
GetInputSourceFromLocale gets the default input source's type and identifier for a given locale.
The function takes the following parameters:
- locale string.
The function returns the following values:
- typ: location to store the input source type.
- id: location to store the input source identifier.
- ok: TRUE if a input source exists or FALSE otherwise.
func GetLanguageFromCode ¶
GetLanguageFromCode gets the language name for code. If translation is provided the returned string is translated accordingly.
The function takes the following parameters:
- code: ISO 639 code string.
- translation (optional): locale string.
The function returns the following values:
- utf8: language name. Caller takes ownership.
func GetLanguageFromLocale ¶
GetLanguageFromLocale gets the language description for locale. If translation is provided the returned string is translated accordingly.
The function takes the following parameters:
- locale string.
- translation (optional): locale string.
The function returns the following values:
- utf8: language description. Caller takes ownership.
func GetPlatformVersion ¶
func GetPlatformVersion() int
GetPlatformVersion returns an integer with the major version of GNOME. Useful for dynamic languages like Javascript or Python (static languages like C should use GNOME_DESKTOP_PLATFORM_VERSION). If this function doesn't exist, it can be presumed that the GNOME platform version is 42 or previous.
The function returns the following values:
- gint: integer with the major version of GNOME.
func GetTranslatedModifier ¶
GetTranslatedModifier gets a translation of the raw modifier string. If translation is provided the returned string is translated accordingly.
The function takes the following parameters:
- modifier part of a locale name.
- translation (optional): locale string.
The function returns the following values:
- utf8: translated modifier string. Caller takes ownership.
func LanguageHasTranslations ¶
LanguageHasTranslations returns TRUE if there are translations for language code.
The function takes the following parameters:
- code: ISO 639 code string.
The function returns the following values:
- ok: TRUE if there are translations for language code.
func NormalizeLocale ¶
NormalizeLocale gets the normalized locale string in the form [language[_country][.codeset][modifier]] for name.
The function takes the following parameters:
- locale string.
The function returns the following values:
- utf8: normalized locale string. Caller takes ownership.
func ParseLocale ¶
ParseLocale extracts the various components of a locale string in XPG format. ([language[_country][.codeset][modifier]]). See http://en.wikipedia.org/wiki/Locale.
The function takes the following parameters:
- locale string.
The function returns the following values:
- languageCodep (optional): location to store the language code, or NULL.
- countryCodep (optional): location to store the country code, or NULL.
- codesetp (optional): location to store the codeset, or NULL.
- modifierp (optional): location to store the modifier, or NULL.
- ok: TRUE if parsing was successful.
func RrErrorQuark ¶
func RrErrorQuark() glib.Quark
RrErrorQuark returns the #GQuark that will be used for #GError values returned by the GnomeRR API.
The function returns the following values:
- quark used to identify errors coming from the GnomeRR API.
func StartSystemdScopeFinish ¶
func StartSystemdScopeFinish(res gio.AsyncResulter) error
StartSystemdScopeFinish: finish an asynchronous operation to create a transient scope that was started with gnome_start_systemd_scope().
Note that a successful return code does not imply that a unit has been created. It solely means that no error condition was hit sending the request.
The function takes the following parameters:
- res: Result.
Types ¶
type BG ¶
func (*BG) ChangesWithTime ¶
The function returns the following values:
func (*BG) ConnectChanged ¶
func (bg *BG) ConnectChanged(f func()) coreglib.SignalHandle
func (*BG) ConnectTransitioned ¶
func (bg *BG) ConnectTransitioned(f func()) coreglib.SignalHandle
func (*BG) CreateFrameThumbnail ¶
func (bg *BG) CreateFrameThumbnail(factory *DesktopThumbnailFactory, screen *gdk.Screen, destWidth, destHeight, frameNum int) *gdkpixbuf.Pixbuf
CreateFrameThumbnail creates a thumbnail for a certain frame, where 'frame' is somewhat vaguely defined as 'suitable point to show while single-stepping through the slideshow'.
The function takes the following parameters:
- factory
- screen
- destWidth
- destHeight
- frameNum
The function returns the following values:
- pixbuf: newly created thumbnail or or NULL if frame_num is out of bounds.
func (*BG) CreateSurface ¶
CreateSurface: create a surface that can be set as background for window.
The function takes the following parameters:
- window
- width
- height
The function returns the following values:
- surface: NULL on error (e.g. out of X connections).
func (*BG) CreateThumbnail ¶
func (bg *BG) CreateThumbnail(factory *DesktopThumbnailFactory, screen *gdk.Screen, destWidth, destHeight int) *gdkpixbuf.Pixbuf
The function takes the following parameters:
- factory
- screen
- destWidth
- destHeight
The function returns the following values:
- pixbuf showing the background as a thumbnail.
func (*BG) Draw ¶
func (bg *BG) Draw(dest *gdkpixbuf.Pixbuf)
The function takes the following parameters:
func (*BG) HasMultipleSizes ¶
The function returns the following values:
func (*BG) ImageSize ¶
func (bg *BG) ImageSize(factory *DesktopThumbnailFactory, bestWidth, bestHeight int, width, height *int) bool
The function takes the following parameters:
- factory
- bestWidth
- bestHeight
- width
- height
The function returns the following values:
func (*BG) IsDark ¶
The function takes the following parameters:
- destWidth
- destHeight
The function returns the following values:
func (*BG) LoadFromPreferences ¶
func (bg *BG) LoadFromPreferences(settings *gio.Settings)
The function takes the following parameters:
func (*BG) SaveToPreferences ¶
func (bg *BG) SaveToPreferences(settings *gio.Settings)
The function takes the following parameters:
func (*BG) SetFilename ¶
The function takes the following parameters:
type BGCrossfade ¶
func NewBGCrossfade ¶
func NewBGCrossfade(width, height int) *BGCrossfade
NewBGCrossfade creates a new object to manage crossfading a window background between two #cairo_surface_ts.
The function takes the following parameters:
- width of the crossfading window.
- height of the crossfading window.
The function returns the following values:
- bgCrossfade: new BGCrossfade.
func (*BGCrossfade) ConnectFinished ¶
func (fade *BGCrossfade) ConnectFinished(f func(window *coreglib.Object)) coreglib.SignalHandle
ConnectFinished: when a crossfade finishes, window will have a copy of the end surface as its background, and this signal will get emitted.
func (*BGCrossfade) IsStarted ¶
func (fade *BGCrossfade) IsStarted() bool
IsStarted: this function reveals whether or not fade is currently running on a window. See gnome_bg_crossfade_start() for information on how to initiate a crossfade.
The function returns the following values:
- ok: TRUE if fading, or FALSE if not fading.
func (*BGCrossfade) SetEndSurface ¶
func (fade *BGCrossfade) SetEndSurface(surface *cairo.Surface) bool
SetEndSurface: before initiating a crossfade with gnome_bg_crossfade_start() a start and end surface have to be set. This function sets the surface shown at the end of the crossfade effect.
The function takes the following parameters:
- surface: cairo surface to fade to.
The function returns the following values:
- ok: TRUE if successful, or FALSE if the surface could not be copied.
func (*BGCrossfade) SetStartSurface ¶
func (fade *BGCrossfade) SetStartSurface(surface *cairo.Surface) bool
SetStartSurface: before initiating a crossfade with gnome_bg_crossfade_start() a start and end surface have to be set. This function sets the surface shown at the beginning of the crossfade effect.
The function takes the following parameters:
- surface: cairo surface to fade from.
The function returns the following values:
- ok: TRUE if successful, or FALSE if the surface could not be copied.
func (*BGCrossfade) Start ¶
func (fade *BGCrossfade) Start(window gdk.Windower)
Start: this function initiates a quick crossfade between two surfaces on the background of window. Before initiating the crossfade both gnome_bg_crossfade_start() and gnome_bg_crossfade_end() need to be called. If animations are disabled, the crossfade is skipped, and the window background is set immediately to the end surface.
The function takes the following parameters:
- window to draw crossfade on.
func (*BGCrossfade) Stop ¶
func (fade *BGCrossfade) Stop()
Stop: this function stops any in progress crossfades that may be happening. It's harmless to call this function if fade is already stopped.
type BGCrossfadeClass ¶
type BGCrossfadeClass struct {
// contains filtered or unexported fields
}
BGCrossfadeClass: instance of this type is always passed by reference.
type BGCrossfadeOverrides ¶
type BGCrossfadeOverrides struct { // The function takes the following parameters: // Finished func(window gdk.Windower) }
BGCrossfadeOverrides contains methods that are overridable.
type BGSlideShow ¶
func NewBGSlideShow ¶
func NewBGSlideShow(filename string) *BGSlideShow
NewBGSlideShow creates a new object to manage a slide show. window background between two #cairo_surface_ts.
The function takes the following parameters:
- filename of the slide show.
The function returns the following values:
- bgSlideShow: new BGSlideShow.
func (*BGSlideShow) CurrentSlide ¶
func (self *BGSlideShow) CurrentSlide(width, height int) (progress, duration float64, isFixed bool, file1, file2 string)
CurrentSlide returns the current slides progress.
The function takes the following parameters:
- width: monitor width.
- height: monitor height.
The function returns the following values:
- progress (optional): slide progress.
- duration (optional): slide duration.
- isFixed (optional): if slide is fixed.
- file1 (optional): first file in slide.
- file2 (optional): second file in slide.
func (*BGSlideShow) HasMultipleSizes ¶
func (self *BGSlideShow) HasMultipleSizes() bool
HasMultipleSizes gets whether or not the slide show has multiple sizes for different monitors.
The function returns the following values:
- ok: TRUE if multiple sizes.
func (*BGSlideShow) NumSlides ¶
func (self *BGSlideShow) NumSlides() int
NumSlides returns number of slides in slide show.
The function returns the following values:
func (*BGSlideShow) Slide ¶
func (self *BGSlideShow) Slide(frameNumber, width, height int) (progress, duration float64, isFixed bool, file1, file2 string, ok bool)
Slide retrieves slide by frame number.
The function takes the following parameters:
- frameNumber: frame number.
- width: monitor width.
- height: monitor height.
The function returns the following values:
- progress (optional): slide progress.
- duration (optional): slide duration.
- isFixed (optional): if slide is fixed.
- file1 (optional): first file in slide.
- file2 (optional): second file in slide.
- ok: TRUE if successful.
func (*BGSlideShow) StartTime ¶
func (self *BGSlideShow) StartTime() float64
StartTime gets the start time of the slide show.
The function returns the following values:
- gdouble: timestamp.
func (*BGSlideShow) TotalDuration ¶
func (self *BGSlideShow) TotalDuration() float64
TotalDuration gets the total duration of the slide show.
The function returns the following values:
- gdouble: timestamp.
type BGSlideShowClass ¶
type BGSlideShowClass struct {
// contains filtered or unexported fields
}
BGSlideShowClass: instance of this type is always passed by reference.
type BGSlideShowOverrides ¶
type BGSlideShowOverrides struct { }
BGSlideShowOverrides contains methods that are overridable.
type DesktopThumbnailFactory ¶
func NewDesktopThumbnailFactory ¶
func NewDesktopThumbnailFactory(size DesktopThumbnailSize) *DesktopThumbnailFactory
NewDesktopThumbnailFactory creates a new DesktopThumbnailFactory.
This function must be called on the main thread and is non-blocking.
The function takes the following parameters:
- size: thumbnail size to use.
The function returns the following values:
- desktopThumbnailFactory: new DesktopThumbnailFactory.
func (*DesktopThumbnailFactory) CanThumbnail ¶
func (factory *DesktopThumbnailFactory) CanThumbnail(uri, mimeType string, mtime int32) bool
CanThumbnail returns TRUE if this GnomeDesktopThumbnailFactory can (at least try) to thumbnail this file. Thumbnails or files with failed thumbnails won't be thumbnailed.
Usage of this function is threadsafe and does blocking I/O.
The function takes the following parameters:
- uri of a file.
- mimeType: mime type of the file.
- mtime of the file.
The function returns the following values:
- ok: TRUE if the file can be thumbnailed.
func (*DesktopThumbnailFactory) CreateFailedThumbnail ¶
func (factory *DesktopThumbnailFactory) CreateFailedThumbnail(ctx context.Context, uri string, mtime int32) error
CreateFailedThumbnail creates a failed thumbnail for the file so that we don't try to re-thumbnail the file later.
Usage of this function is threadsafe and does blocking I/O.
The function takes the following parameters:
- ctx (optional): GCancellable object, or NULL.
- uri of a file.
- mtime: modification time of the file.
func (*DesktopThumbnailFactory) CreateFailedThumbnailFinish ¶
func (factory *DesktopThumbnailFactory) CreateFailedThumbnailFinish(result gio.AsyncResulter) error
The function takes the following parameters:
- result of the operation.
func (*DesktopThumbnailFactory) GenerateThumbnail ¶
func (factory *DesktopThumbnailFactory) GenerateThumbnail(ctx context.Context, uri, mimeType string) (*gdkpixbuf.Pixbuf, error)
GenerateThumbnail tries to generate a thumbnail for the specified file. If it succeeds it returns a pixbuf that can be used as a thumbnail.
Usage of this function is threadsafe and does blocking I/O.
The function takes the following parameters:
- ctx (optional) object or NULL.
- uri of a file.
- mimeType: mime type of the file.
The function returns the following values:
- pixbuf: thumbnail pixbuf if thumbnailing succeeded, NULL otherwise and error will be set.
func (*DesktopThumbnailFactory) GenerateThumbnailFinish ¶
func (factory *DesktopThumbnailFactory) GenerateThumbnailFinish(result gio.AsyncResulter) (*gdkpixbuf.Pixbuf, error)
The function takes the following parameters:
- result of the operation.
The function returns the following values:
pixbuf: thumbnail pixbuf if thumbnailing succeeded, NULL otherwise.
Since 43.0.
func (*DesktopThumbnailFactory) HasValidFailedThumbnail ¶
func (factory *DesktopThumbnailFactory) HasValidFailedThumbnail(uri string, mtime int32) bool
HasValidFailedThumbnail tries to locate an failed thumbnail for the file specified. Writing and looking for failed thumbnails is important to avoid to try to thumbnail e.g. broken images several times.
Usage of this function is threadsafe and does blocking I/O.
The function takes the following parameters:
- uri of a file.
- mtime of the file.
The function returns the following values:
- ok: TRUE if there is a failed thumbnail for the file.
func (*DesktopThumbnailFactory) Lookup ¶
func (factory *DesktopThumbnailFactory) Lookup(uri string, mtime int32) string
Lookup tries to locate an existing thumbnail for the file specified.
Usage of this function is threadsafe and does blocking I/O.
The function takes the following parameters:
- uri of a file.
- mtime of the file.
The function returns the following values:
- utf8: absolute path of the thumbnail, or NULL if none exist.
func (*DesktopThumbnailFactory) SaveThumbnail ¶
func (factory *DesktopThumbnailFactory) SaveThumbnail(ctx context.Context, thumbnail *gdkpixbuf.Pixbuf, uri string, originalMtime int32) error
SaveThumbnail saves thumbnail at the right place. If the save fails a failed thumbnail is written.
Usage of this function is threadsafe and does blocking I/O.
The function takes the following parameters:
- ctx (optional): GCancellable object, or NULL.
- thumbnail as a pixbuf.
- uri of a file.
- originalMtime: modification time of the original file.
func (*DesktopThumbnailFactory) SaveThumbnailFinish ¶
func (factory *DesktopThumbnailFactory) SaveThumbnailFinish(result gio.AsyncResulter) error
The function takes the following parameters:
- result of the operation.
type DesktopThumbnailFactoryClass ¶
type DesktopThumbnailFactoryClass struct {
// contains filtered or unexported fields
}
DesktopThumbnailFactoryClass: instance of this type is always passed by reference.
type DesktopThumbnailFactoryOverrides ¶
type DesktopThumbnailFactoryOverrides struct { }
DesktopThumbnailFactoryOverrides contains methods that are overridable.
type DesktopThumbnailSize ¶
const ( DesktopThumbnailSizeNormal DesktopThumbnailSize = iota DesktopThumbnailSizeLarge DesktopThumbnailSizeXlarge DesktopThumbnailSizeXxlarge )
func (DesktopThumbnailSize) String ¶
func (d DesktopThumbnailSize) String() string
String returns the name in string for DesktopThumbnailSize.
type IdleMonitor ¶
func NewIdleMonitor ¶
func NewIdleMonitor() *IdleMonitor
The function returns the following values:
- idleMonitor: new IdleMonitor that tracks the server-global idletime for all devices.
func (*IdleMonitor) AddIdleWatch ¶
func (monitor *IdleMonitor) AddIdleWatch(intervalMsec uint64, callback IdleMonitorWatchFunc) uint
The function takes the following parameters:
- intervalMsec: idletime interval, in milliseconds. It must be a strictly positive value (> 0).
- callback (optional) to call when the user has accumulated interval_msec milliseconds of idle time.
The function returns the following values:
guint: watch id
Adds a watch for a specific idle time. The callback will be called when the user has accumulated interval_msec milliseconds of idle time. This function will return an ID that can either be passed to gnome_idle_monitor_remove_watch(), or can be used to tell idle time watches apart if you have more than one.
Also note that this function will only care about positive transitions (user's idle time exceeding a certain time). If you want to know about when the user has become active, use gnome_idle_monitor_add_user_active_watch().
func (*IdleMonitor) AddUserActiveWatch ¶
func (monitor *IdleMonitor) AddUserActiveWatch(callback IdleMonitorWatchFunc) uint
The function takes the following parameters:
- callback (optional) to call when the user is active again.
The function returns the following values:
guint: watch id
Add a one-time watch to know when the user is active again. Note that this watch is one-time and will de-activate after the function is called, for efficiency purposes. It's most convenient to call this when an idle watch, as added by gnome_idle_monitor_add_idle_watch(), has triggered.
func (*IdleMonitor) Idletime ¶
func (monitor *IdleMonitor) Idletime() uint64
The function returns the following values:
- guint64: current idle time, in milliseconds.
func (*IdleMonitor) RemoveWatch ¶
func (monitor *IdleMonitor) RemoveWatch(id uint)
RemoveWatch removes an idle time watcher, previously added by gnome_idle_monitor_add_idle_watch() or gnome_idle_monitor_add_user_active_watch().
The function takes the following parameters:
- id: watch ID.
type IdleMonitorClass ¶
type IdleMonitorClass struct {
// contains filtered or unexported fields
}
IdleMonitorClass: instance of this type is always passed by reference.
type IdleMonitorOverrides ¶
type IdleMonitorOverrides struct { }
IdleMonitorOverrides contains methods that are overridable.
type IdleMonitorWatchFunc ¶
type IdleMonitorWatchFunc func(monitor *IdleMonitor, id uint)
type PnpIDs ¶
func NewPnpIDs ¶
func NewPnpIDs() *PnpIDs
NewPnpIDs returns a reference to a PnpIds object, or creates a new one if none have been created.
The function returns the following values:
- pnpIds PnpIds object.
type PnpIDsClass ¶
type PnpIDsClass struct {
// contains filtered or unexported fields
}
PnpIDsClass: instance of this type is always passed by reference.
type PnpIDsOverrides ¶
type PnpIDsOverrides struct { }
PnpIDsOverrides contains methods that are overridable.
type RRCTM ¶
type RRCTM struct {
// contains filtered or unexported fields
}
RRCTM: instance of this type is always passed by reference.
type RRConfig ¶
func NewRRConfigCurrent ¶
The function takes the following parameters:
The function returns the following values:
func (*RRConfig) Applicable ¶
The function takes the following parameters:
func (*RRConfig) ApplyPersistent ¶
The function takes the following parameters:
func (*RRConfig) Clone ¶
The function returns the following values:
- ok: whether at least two outputs are at (0, 0) offset and they have the same width/height. Those outputs are of course connected and on (i.e. they have a CRTC assigned).
func (*RRConfig) EnsurePrimary ¶
The function returns the following values:
func (*RRConfig) Equal ¶
The function takes the following parameters:
The function returns the following values:
func (*RRConfig) LoadCurrent ¶
func (*RRConfig) Match ¶
The function takes the following parameters:
The function returns the following values:
func (*RRConfig) Outputs ¶
func (configuration *RRConfig) Outputs() []*RROutputInfo
The function returns the following values:
- rrOutputInfos: output configuration for this RRConfig.
type RRConfigClass ¶
type RRConfigClass struct {
// contains filtered or unexported fields
}
RRConfigClass: instance of this type is always passed by reference.
type RRConfigOverrides ¶
type RRConfigOverrides struct { }
RRConfigOverrides contains methods that are overridable.
type RRCrtc ¶
type RRCrtc struct {
// contains filtered or unexported fields
}
RRCrtc: instance of this type is always passed by reference.
func (*RRCrtc) CanDriveOutput ¶
The function takes the following parameters:
The function returns the following values:
func (*RRCrtc) CurrentMode ¶
The function returns the following values:
- rrMode: current mode of this crtc.
func (*RRCrtc) CurrentRotation ¶
func (crtc *RRCrtc) CurrentRotation() RRRotation
The function returns the following values:
func (*RRCrtc) Gamma ¶
The function takes the following parameters:
The function returns the following values:
- red: minimum width.
- green: maximum width.
- blue: minimum height.
- ok: TRUE for success.
func (*RRCrtc) Rotations ¶
func (crtc *RRCrtc) Rotations() RRRotation
The function returns the following values:
func (*RRCrtc) SetGamma ¶
The function takes the following parameters:
- size
- red
- green
- blue
The function returns the following values:
func (*RRCrtc) SupportsRotation ¶
func (crtc *RRCrtc) SupportsRotation(rotation RRRotation) bool
The function takes the following parameters:
The function returns the following values:
type RRDpmsMode ¶
const ( RrDpmsOn RRDpmsMode = iota RrDpmsStandby RrDpmsSuspend RrDpmsOff RrDpmsUnknown )
func (RRDpmsMode) String ¶
func (r RRDpmsMode) String() string
String returns the name in string for RRDpmsMode.
type RRDpmsModeType ¶
const ( RrDpmsOn RRDpmsModeType = iota RrDpmsStandby RrDpmsSuspend RrDpmsOff RrDpmsUnknown )
func (RRDpmsModeType) String ¶
func (r RRDpmsModeType) String() string
String returns the name in string for RRDpmsModeType.
type RRMode ¶
type RRMode struct {
// contains filtered or unexported fields
}
RRMode: instance of this type is always passed by reference.
func (*RRMode) IsInterlaced ¶
The function returns the following values:
type RROutput ¶
type RROutput struct {
// contains filtered or unexported fields
}
RROutput: instance of this type is always passed by reference.
func (*RROutput) Backlight ¶
The function returns the following values:
- gint: currently set backlight brightness.
func (*RROutput) CanClone ¶
The function takes the following parameters:
The function returns the following values:
func (*RROutput) CurrentMode ¶
The function returns the following values:
- rrMode: current mode of this output.
func (*RROutput) DisplayName ¶
The function returns the following values:
func (*RROutput) EdidData ¶
The function takes the following parameters:
The function returns the following values:
func (*RROutput) IDsFromEdid ¶
The function returns the following values:
- vendor (optional)
- product (optional)
- serial (optional)
func (*RROutput) IsBuiltinDisplay ¶
The function returns the following values:
func (*RROutput) IsUnderscanning ¶
The function returns the following values:
func (*RROutput) MinBacklightStep ¶
The function returns the following values:
- gint: minimum backlight step available in percent.
func (*RROutput) PhysicalSize ¶
The function returns the following values:
- widthMm (optional)
- heightMm (optional)
func (*RROutput) PossibleCrtcs ¶
The function returns the following values:
func (*RROutput) PreferredMode ¶
The function returns the following values:
func (*RROutput) SetBacklight ¶
The function takes the following parameters:
- value: absolute value which is 0 >= this <= 100.
func (*RROutput) SetColorTransform ¶
The function takes the following parameters:
func (*RROutput) SupportsColorTransform ¶
The function returns the following values:
func (*RROutput) SupportsMode ¶
The function takes the following parameters:
The function returns the following values:
func (*RROutput) SupportsUnderscanning ¶
The function returns the following values:
type RROutputInfo ¶
func (*RROutputInfo) AspectRatio ¶
func (self *RROutputInfo) AspectRatio() float64
The function returns the following values:
func (*RROutputInfo) DisplayName ¶
func (self *RROutputInfo) DisplayName() string
The function returns the following values:
- utf8: display name of this output.
func (*RROutputInfo) Geometry ¶
func (self *RROutputInfo) Geometry() (x, y, width, height int)
Geometry: get the geometry for the monitor connected to the specified output. If the monitor is a tiled monitor, it returns the geometry for the complete monitor.
The function returns the following values:
- x (optional)
- y (optional)
- width (optional)
- height (optional)
func (*RROutputInfo) IsActive ¶
func (self *RROutputInfo) IsActive() bool
The function returns the following values:
- ok: whether there is a CRTC assigned to this output (i.e. a signal is being sent to it).
func (*RROutputInfo) IsConnected ¶
func (self *RROutputInfo) IsConnected() bool
The function returns the following values:
- ok: whether the output is physically connected to a monitor.
func (*RROutputInfo) IsPrimaryTile ¶
func (self *RROutputInfo) IsPrimaryTile() bool
The function returns the following values:
- ok: TRUE if the specified output is connected to the primary tile of a monitor or to an untiled monitor, FALSE if the output is connected to a secondary tile.
func (*RROutputInfo) Name ¶
func (self *RROutputInfo) Name() string
The function returns the following values:
- utf8: output name.
func (*RROutputInfo) PreferredHeight ¶
func (self *RROutputInfo) PreferredHeight() int
The function returns the following values:
func (*RROutputInfo) PreferredWidth ¶
func (self *RROutputInfo) PreferredWidth() int
The function returns the following values:
func (*RROutputInfo) Primary ¶
func (self *RROutputInfo) Primary() bool
The function returns the following values:
func (*RROutputInfo) Product ¶
func (self *RROutputInfo) Product() string
The function returns the following values:
func (*RROutputInfo) RefreshRate ¶
func (self *RROutputInfo) RefreshRate() int
The function returns the following values:
func (*RROutputInfo) Rotation ¶
func (self *RROutputInfo) Rotation() RRRotation
The function returns the following values:
func (*RROutputInfo) Serial ¶
func (self *RROutputInfo) Serial() string
The function returns the following values:
func (*RROutputInfo) SetActive ¶
func (self *RROutputInfo) SetActive(active bool)
The function takes the following parameters:
func (*RROutputInfo) SetGeometry ¶
func (self *RROutputInfo) SetGeometry(x, y, width, height int)
SetGeometry: set the geometry for the monitor connected to the specified output. If the monitor is a tiled monitor, it sets the geometry for the complete monitor.
The function takes the following parameters:
- x offset for monitor.
- y offset for monitor.
- width: monitor width.
- height: monitor height.
func (*RROutputInfo) SetPrimary ¶
func (self *RROutputInfo) SetPrimary(primary bool)
The function takes the following parameters:
func (*RROutputInfo) SetRefreshRate ¶
func (self *RROutputInfo) SetRefreshRate(rate int)
The function takes the following parameters:
func (*RROutputInfo) SetRotation ¶
func (self *RROutputInfo) SetRotation(rotation RRRotation)
The function takes the following parameters:
func (*RROutputInfo) SetUnderscanning ¶
func (self *RROutputInfo) SetUnderscanning(underscanning bool)
The function takes the following parameters:
func (*RROutputInfo) SupportsRotation ¶
func (self *RROutputInfo) SupportsRotation(rotation RRRotation) bool
The function takes the following parameters:
The function returns the following values:
func (*RROutputInfo) Underscanning ¶
func (self *RROutputInfo) Underscanning() bool
The function returns the following values:
func (*RROutputInfo) Vendor ¶
func (self *RROutputInfo) Vendor() string
The function returns the following values:
type RROutputInfoClass ¶
type RROutputInfoClass struct {
// contains filtered or unexported fields
}
RROutputInfoClass: instance of this type is always passed by reference.
type RROutputInfoOverrides ¶
type RROutputInfoOverrides struct { }
RROutputInfoOverrides contains methods that are overridable.
type RRRotation ¶
const ( RrRotationNext RRRotation = 0b0 RrRotation0 RRRotation = 0b1 RrRotation90 RRRotation = 0b10 RrRotation180 RRRotation = 0b100 RrRotation270 RRRotation = 0b1000 RrReflectX RRRotation = 0b10000 RrReflectY RRRotation = 0b100000 )
func (RRRotation) Has ¶
func (r RRRotation) Has(other RRRotation) bool
Has returns true if r contains other.
func (RRRotation) String ¶
func (r RRRotation) String() string
String returns the names in string for RRRotation.
type RRScreen ¶
type RRScreen struct { *coreglib.Object gio.AsyncInitable gio.Initable // contains filtered or unexported fields }
func NewRRScreen ¶
NewRRScreen creates a unique RRScreen instance for the specified screen.
The function takes the following parameters:
- screen on which to operate.
The function returns the following values:
- rrScreen: unique RRScreen instance, specific to the screen, or NULL if this could not be created, for instance if the driver does not support Xrandr 1.2. Each Screen thus has a single instance of RRScreen.
func NewRRScreenFinish ¶
The function takes the following parameters:
The function returns the following values:
func (*RRScreen) ConnectChanged ¶
func (screen *RRScreen) ConnectChanged(f func()) coreglib.SignalHandle
func (*RRScreen) ConnectOutputConnected ¶
func (screen *RRScreen) ConnectOutputConnected(f func(output unsafe.Pointer)) coreglib.SignalHandle
ConnectOutputConnected: this signal is emitted when a display device is connected to a port, or a port is hotplugged with an active output. The latter can happen if a laptop is docked, and the dock provides a new active output.
The output value is not a #GObject. The returned output value can only assume to be valid during the emission of the signal (i.e. within your signal handler only), as it may change later when the screen is modified due to an event from the X server, or due to another place in the application modifying the screen and the output. Therefore, deal with changes to the output right in your signal handler, instead of keeping the output reference for an async or idle function.
func (*RRScreen) ConnectOutputDisconnected ¶
func (screen *RRScreen) ConnectOutputDisconnected(f func(output unsafe.Pointer)) coreglib.SignalHandle
ConnectOutputDisconnected: this signal is emitted when a display device is disconnected from a port, or a port output is hot-unplugged. The latter can happen if a laptop is undocked, and the dock provided the output.
The output value is not a #GObject. The returned output value can only assume to be valid during the emission of the signal (i.e. within your signal handler only), as it may change later when the screen is modified due to an event from the X server, or due to another place in the application modifying the screen and the output. Therefore, deal with changes to the output right in your signal handler, instead of keeping the output reference for an async or idle function.
func (*RRScreen) CrtcByID ¶
The function takes the following parameters:
The function returns the following values:
- rrCrtc: CRTC identified by id.
func (*RRScreen) DpmsMode ¶
func (screen *RRScreen) DpmsMode() (RRDpmsMode, error)
The function returns the following values:
- mode: current RRDpmsMode of this screen.
func (*RRScreen) ListCloneModes ¶
ListCloneModes: list available XRandR clone modes.
The function returns the following values:
func (*RRScreen) ListModes ¶
ListModes: list available XRandR modes.
The function returns the following values:
func (*RRScreen) ListOutputs ¶
ListOutputs: list all outputs.
The function returns the following values:
func (*RRScreen) OutputByID ¶
The function takes the following parameters:
The function returns the following values:
- rrOutput: output identified by id.
func (*RRScreen) OutputByName ¶
The function takes the following parameters:
The function returns the following values:
- rrOutput: output identified by name.
func (*RRScreen) Ranges ¶
Ranges: get the ranges of the screen.
The function returns the following values:
- minWidth: minimum width.
- maxWidth: maximum width.
- minHeight: minimum height.
- maxHeight: maximum height.
func (*RRScreen) Refresh ¶
Refresh refreshes the screen configuration, and calls the screen's callback if it exists and if the screen's configuration changed.
func (*RRScreen) SetDpmsMode ¶
func (screen *RRScreen) SetDpmsMode(mode RRDpmsMode) error
SetDpmsMode: this method also disables the DPMS timeouts.
The function takes the following parameters:
type RRScreenClass ¶
type RRScreenClass struct {
// contains filtered or unexported fields
}
RRScreenClass: instance of this type is always passed by reference.
type RRScreenOverrides ¶
type RRScreenOverrides struct { Changed func() // The function takes the following parameters: // OutputConnected func(output *RROutput) // The function takes the following parameters: // OutputDisconnected func(output *RROutput) }
RRScreenOverrides contains methods that are overridable.
type WallClock ¶
func NewWallClock ¶
func NewWallClock() *WallClock
NewWallClock creates a new WallClock.
The function returns the following values:
- wallClock: new clock.
func (*WallClock) Clock ¶
Clock returns the string representing the current time of this clock according to the user settings.
The function returns the following values:
- utf8: time of the clock as a string. This string points to internally allocated storage and must not be freed, modified or stored.
type WallClockClass ¶
type WallClockClass struct {
// contains filtered or unexported fields
}
WallClockClass: instance of this type is always passed by reference.
type WallClockOverrides ¶
type WallClockOverrides struct { }
WallClockOverrides contains methods that are overridable.
type XkbInfo ¶
func NewXkbInfo ¶
func NewXkbInfo() *XkbInfo
The function returns the following values:
- xkbInfo: new XkbInfo instance.
func (*XkbInfo) AllLayouts ¶
AllLayouts returns a list of all layout identifiers we know about.
The function returns the following values:
- list: list of layout names. The caller takes ownership of the #GList but not of the strings themselves, those are internally allocated and must not be modified.
func (*XkbInfo) AllOptionGroups ¶
AllOptionGroups returns a list of all option group identifiers we know about.
The function returns the following values:
- list: list of option group ids. The caller takes ownership of the #GList but not of the strings themselves, those are internally allocated and must not be modified.
func (*XkbInfo) ConnectLayoutsChanged ¶
func (self *XkbInfo) ConnectLayoutsChanged(f func()) coreglib.SignalHandle
func (*XkbInfo) DescriptionForGroup ¶
The function takes the following parameters:
- groupId: identifier for group.
The function returns the following values:
- utf8: translated description for the group group_id.
func (*XkbInfo) DescriptionForOption ¶
The function takes the following parameters:
- groupId: identifier for group containing the option.
- id: option identifier.
The function returns the following values:
- utf8: translated description for the option id.
func (*XkbInfo) LanguagesForLayout ¶
LanguagesForLayout returns a list of all languages supported by a layout, given by layout_id.
The function takes the following parameters:
- layoutId: layout identifier.
The function returns the following values:
- list of ISO 639 code strings. The caller takes ownership of the #GList but not of the strings themselves, those are internally allocated and must not be modified.
func (*XkbInfo) LayoutInfo ¶
func (self *XkbInfo) LayoutInfo(id string) (displayName, shortName, xkbLayout, xkbVariant string, ok bool)
LayoutInfo retrieves information about a layout. Both display_name and short_name are suitable to show in UIs and might be localized if translations are available.
Some layouts don't provide a short name (2 or 3 letters) or don't specify a XKB variant, in those cases short_name or xkb_variant are empty strings, i.e. "".
If the given layout doesn't exist the return value is FALSE and all the (out) parameters are set to NULL.
The function takes the following parameters:
- id layout's identifier about which to retrieve the info.
The function returns the following values:
- displayName (optional): location to store the layout's display name, or NULL.
- shortName (optional): location to store the layout's short name, or NULL.
- xkbLayout (optional): location to store the layout's XKB name, or NULL.
- xkbVariant (optional): location to store the layout's XKB variant, or NULL.
- ok: TRUE if the layout exists or FALSE otherwise.
func (*XkbInfo) LayoutsForCountry ¶
LayoutsForCountry returns a list of all layout identifiers we know about for country_code.
The function takes the following parameters:
- countryCode: ISO 3166 code string.
The function returns the following values:
- list: list of layout ids. The caller takes ownership of the #GList but not of the strings themselves, those are internally allocated and must not be modified.
func (*XkbInfo) LayoutsForLanguage ¶
LayoutsForLanguage returns a list of all layout identifiers we know about for language_code.
The function takes the following parameters:
- languageCode: ISO 639 code string.
The function returns the following values:
- list: list of layout ids. The caller takes ownership of the #GList but not of the strings themselves, those are internally allocated and must not be modified.
func (*XkbInfo) OptionsForGroup ¶
OptionsForGroup returns a list of all option identifiers we know about for group group_id.
The function takes the following parameters:
- groupId group's identifier about which to retrieve the options.
The function returns the following values:
- list: list of option ids. The caller takes ownership of the #GList but not of the strings themselves, those are internally allocated and must not be modified.
type XkbInfoClass ¶
type XkbInfoClass struct {
// contains filtered or unexported fields
}
XkbInfoClass: instance of this type is always passed by reference.
type XkbInfoOverrides ¶
type XkbInfoOverrides struct { }
XkbInfoOverrides contains methods that are overridable.
Source Files ¶
- gnome-bg-crossfade.go
- gnome-bg-crossfade_export.go
- gnome-bg-slide-show.go
- gnome-bg.go
- gnome-desktop-thumbnail.go
- gnome-desktop-thumbnail_2_2.go
- gnome-desktop-version.go
- gnome-desktop-version_43_0.go
- gnome-idle-monitor.go
- gnome-idle-monitor_export.go
- gnome-languages_3_34.go
- gnome-languages_3_8.go
- gnome-pnp-ids.go
- gnome-rr-config.go
- gnome-rr.go
- gnome-rr_export.go
- gnome-systemd.go
- gnome-wall-clock.go
- gnome-xkb-info.go
- gnomedesktop.go
- gnomedesktop_export.go