Creates a new #StAdjustment a new #StAdjustment a #ClutterActor the initial value the minimum value the maximum value the step increment the page increment the page size Add a #ClutterTransition for the adjustment. If the transition stops, it will be automatically removed if #ClutterTransition:remove-on-complete is %TRUE. a #StAdjustment a unique name for the transition a #ClutterTransition Adjusts the adjustment using delta values from a scroll event. You should use this instead of using st_adjustment_set_value() as this method will tweak the values directly using the same math as GTK+, to ensure that scrolling is consistent across the environment. An #StAdjustment A delta, retrieved directly from clutter_event_get_scroll_delta() or similar. Set #StAdjustment:value to a value clamped between @lower and @upper. The clamping described by st_adjustment_set_value() still applies. a #StAdjustment the lower value the upper value Get the #ClutterTransition for @name previously added with st_adjustment_add_transition() or %NULL if not found. a #ClutterTransition a #StAdjustment a transition name Gets the current value of the adjustment. See st_adjustment_set_value(). The current value of the adjustment a #StAdjustment Gets all of @adjustment's values at once. an #StAdjustment the current value the lower bound the upper bound the step increment the page increment the page size Sets the #StAdjustment value. The value is clamped to lie between #StAdjustment:lower and #StAdjustment:upper - #StAdjustment:page-size. a #StAdjustment the new value Sets all properties of the adjustment at once. Use this function to avoid multiple emissions of the #GObject::notify and #StAdjustment::changed signals. See st_adjustment_set_lower() for an alternative way of compressing multiple emissions of #GObject::notify and #StAdjustmet::changed into one of each. a #StAdjustment the new value the new minimum value the new maximum value the new step increment the new page increment the new page size If the adjustment is used as #ClutterAnimatable for a #ClutterPropertyTransition, this property is used to determine which monitor should drive the animation. The minimum value of the adjustment. The page increment of the adjustment. The page size of the adjustment. Note that the page-size is irrelevant and should be set to zero if the adjustment is used for a simple scalar value. The step increment of the adjustment. The maximum value of the adjustment. Note that values will be restricted by `upper - page-size` if #StAdjustment:page-size is non-zero. The value of the adjustment. Emitted when any of the adjustment properties have changed, except for #StAdjustment:value. Base class for #StAdjustment. Creates a new #StBin, a simple container for one child. the newly created #StBin actor Gets the #ClutterActor child for @bin. a #ClutterActor, or %NULL a #StBin Sets @child as the child of @bin. If @bin already has a child, the previous child is removed. a #StBin a #ClutterActor, or %NULL The child #ClutterActor of the #StBin container. The #StBinClass struct contains only private data Creates a new #StBorderImage. a new #StBorderImage. a #GFile the top border the right border the bottom border the left border the scale factor Check if two #StBorderImage objects are identical. %TRUE if the two border image objects are identical a #StBorderImage a different #StBorderImage Get the #GFile for @image. a #GFile a #StBorderImage The contents of this structure are private and should only be accessed through the public API. Create a new #StBoxLayout. a newly allocated #StBoxLayout the value of the #StBoxLayout:pack-start property, always %FALSE A #StBoxLayout Get the value of the #StBoxLayout:vertical property. %TRUE if the layout is vertical A #StBoxLayout No longer has any effect A #StBoxLayout %TRUE if the layout should use pack-start Set the value of the #StBoxLayout:vertical property A #StBoxLayout %TRUE if the layout should be vertical A convenience property for the #ClutterBoxLayout:pack-start property of the internal layout for #StBoxLayout. A convenience property for the #ClutterBoxLayout:vertical property of the internal layout for #StBoxLayout. Create a new button a new #StButton Create a new #StButton with the specified label a new #StButton text to set the label to If this widget is holding a pointer grab, this function will will ungrab it, and reset the #StButton:pressed state. The effect is similar to if the user had released the mouse button, but without emitting the #StButton::clicked signal. This function is useful if for example you want to do something after the user is holding the mouse button for a given period of time, breaking the grab. an #StButton Gets the mask of mouse buttons that @button emits the #StButton::clicked signal for. the mask of mouse buttons that @button emits the #StButton::clicked signal for. a #StButton Get the #StButton:checked property of a #StButton that is in toggle mode. %TRUE if the button is checked, or %FALSE if not a #StButton Get the icon name of the button. If the button isn't showing an icon, the return value will be %NULL. the icon name of the button a #StButton Get the text displayed on the button. If the label is empty, an empty string will be returned instead of %NULL. the text for the button a #StButton Get the toggle mode status of the button. %TRUE if toggle mode is set, otherwise %FALSE a #StButton Sets which mouse buttons @button emits #StButton::clicked for. a #Stbutton the mask of mouse buttons that @button responds to Set the #StButton:checked property of the button. This is only really useful if the button has #StButton:toggle-mode property set to %TRUE. a #Stbutton %TRUE or %FALSE Adds an `StIcon` with the given icon name as a child. If @button already contains a child actor, that child will be removed and replaced with the icon. a #Stbutton an icon name Sets the text displayed on the button. a #Stbutton text to set the label to Enables or disables toggle mode for the button. In toggle mode, the checked state will be "toggled" when the user clicks the button. a #Stbutton %TRUE or %FALSE Which buttons will trigger the #StButton::clicked signal. If #StButton:toggle-mode is %TRUE, indicates if the #StButton is toggled "on" or "off". When the value is %TRUE, the #StButton will have the `checked` CSS pseudo-class set. The icon name of the #StButton. The label of the #StButton. In contrast to #StButton:checked, this property indicates whether the #StButton is being actively pressed, rather than just in the "on" state. Whether the #StButton is operating in toggle mode (on/off). Emitted when the user activates the button, either with a mouse press and release or with the keyboard. the mouse button that was used A mask representing which mouse buttons an #StButton responds to. button 1 (left) button 2 (middle) button 3 (right) The contents of this structure is private and should only be accessed using the provided API. Get the global #StClipboard object that represents the clipboard. a #StClipboard owned by St and must not be unrefferenced or freed. Sets the #MetaSelection of the default #StClipboard. This function is called during the initialization of GNOME Shell. Request the data from the clipboard in #GBytes form. @callback is executed when the data is retrieved. A #StCliboard The type of clipboard data you want The mimetype to get content for function to be called when the type is retrieved data to be passed to the callback Gets a list of the mimetypes supported by the default #StClipboard. the supported mimetypes a #StClipboard Request the data from the clipboard in text form. @callback is executed when the data is retrieved. A #StCliboard The type of clipboard data you want function to be called when the text is retrieved data to be passed to the callback Sets the clipboard content to @bytes. @mimetype is a semi-colon separated list of mime-type strings. A #StClipboard The type of clipboard that you want to set content mimetype content data Sets text as the current contents of the clipboard. A #StClipboard The type of clipboard that you want to set text to copy to the clipboard Callback function called when text is retrieved from the clipboard. A #StClipboard text from the clipboard user data Callback function called when content is retrieved from the clipboard. A #StClipboard content from the clipboard user data Used to target a particular corner of a #StThemeNode element. The top-right corner. The top-right corner. The bottom-right corner. The bottom-left corner. Enumeration for focus direction. Move forward. Move backward. Move up. Move down. Move left. Move right. Gets the Cairo context to paint to. This function must only be called from a signal handler or virtual function for the #StDrawingArea::repaint signal. JavaScript code must call the special dispose function before returning from the signal handler or virtual function to avoid leaking memory: |[<!-- language="JavaScript" --> function onRepaint(area) { let cr = area.get_context(); // Draw to the context cr.$dispose(); } let area = new St.DrawingArea(); area.connect('repaint', onRepaint); ]| the Cairo context for the paint operation the #StDrawingArea Gets the size of the cairo surface being painted to, which is equal to the size of the content area of the widget. This function must only be called from a signal handler for the #StDrawingArea::repaint signal. the #StDrawingArea location to store the width of the painted area location to store the height of the painted area Will cause the actor to emit a #StDrawingArea::repaint signal before it is next drawn to the scene. Useful if some parameters for the area being drawn other than the size or style have changed. Note that clutter_actor_queue_redraw() will simply result in the same contents being drawn to the scene again. the #StDrawingArea Create a new #StEntry with the specified text. a new #StEntry text to set the entry to This function is for private use by libgnome-shell. Do not ever use. Retrieve the internal #ClutterText so that extra parameters can be set. the #ClutterText used by @entry a #StEntry Get the value of the #StEntry:hint-actor property. a #ClutterActor a #StEntry Gets the text that is displayed when the entry is empty and unfocused or %NULL if the #StEntry:hint-actor was set to an actor that is not a #StLabel. Unlike st_entry_get_text() this function may return %NULL if #StEntry:hint-actor is not a #StLabel. the current value of the hint property a #StEntry Gets the value of the #StEntry:input-hints property. the input hints for the entry a #StEntry Gets the value of the #StEntry:input-purpose property. the input purpose of the entry a #StEntry Get the value of the #StEntry:primary-icon property. a #ClutterActor a #StEntry Get the value of the #StEntry:secondary-icon property. a #ClutterActor a #StEntry Get the text displayed on the entry. If @entry is empty, an empty string will be returned instead of %NULL. the text for the entry a #StEntry Set the hint actor of the entry to @hint_actor. a #StEntry a #ClutterActor Sets the text to display when the entry is empty and unfocused. When the entry is displaying the hint, it has a pseudo class of `indeterminate`. A value of %NULL unsets the hint. a #StEntry text to set as the entry hint Sets the #StEntry:input-hints property, which allows input methods to fine-tune their behaviour. a #StEntry the hints Sets the #StEntry:input-purpose property which can be used by on-screen keyboards and other input methods to adjust their behaviour. a #StEntry the purpose Set the primary icon of the entry to @icon. a #StEntry a #ClutterActor Set the secondary icon of the entry to @icon. a #StEntry an #ClutterActor Sets the text displayed on the entry. If @text is %NULL, the #ClutterText will instead be set to an empty string. a #StEntry text to set the entry to The internal #ClutterText actor supporting the #StEntry. A #ClutterActor to display when the entry is empty and unfocused. Setting this will replace the actor displaying #StEntry:hint-text. The text to display when the entry is empty and unfocused. Setting this will replace the actor of #StEntry::hint-actor. The #ClutterInputContentHintFlags providing additional hints (beyond #StEntry:input-purpose) that allow input methods to fine-tune their behaviour. The #ClutterInputContentPurpose that helps on-screen keyboards and similar input methods to decide which keys should be presented to the user. The #ClutterActor acting as the primary icon at the start of the #StEntry. The #ClutterActor acting as the secondary icon at the end of the #StEntry. The current text value of the #StEntry. Emitted when the primary icon is clicked. Emitted when the secondary icon is clicked. The #StFocusManager struct contains only private data Gets the #StFocusManager for @stage, creating it if necessary. the focus manager for @stage a #ClutterStage Adds a new focus group to @manager. When the focus is in an actor that is a descendant of @root, @manager will handle moving focus from one actor to another within @root based on keyboard events. the #StFocusManager the root container of the group Checks if @widget is inside a focus group, and if so, returns the root of that group. the focus group root, or %NULL if @widget is not in a focus group the #StFocusManager an #StWidget Try to navigate from @event as if it bubbled all the way up to the stage. This is useful in complex event handling situations where you want key navigation, but a parent might be stopping the key navigation event from bubbling all the way up to the stage. Whether a new actor was navigated to the #StFocusManager a #ClutterEvent Removes the group rooted at @root from @manager the #StFocusManager the root container of the group Create a new #StGenericAccessible for @actor. This is useful only for custom widgets that need a proxy for #AtkObject. a new #AtkObject a #Clutter Actor Emitted when atk_value_get_current_value() is called on @self. Right now we only care about doubles, so the value is directly returned by the signal. value of the current element. Emitted when atk_value_get_maximum_value() is called on @self. Right now we only care about doubles, so the value is directly returned by the signal. maximum value of the accessible. Emitted when atk_value_get_minimum_increment() is called on @self. Right now we only care about doubles, so the value is directly returned by the signal. value of the current element. Emitted when atk_value_get_current_value() is called on @self. Right now we only care about doubles, so the value is directly returned by the signal. minimum value of the accessible. Emitted when atk_value_set_current_value() is called on @self. Right now we only care about doubles, so the value is directly returned by the signal. the new value for the accessible Used to specify options when rendering gradients. No gradient. A vertical gradient. A horizontal gradient. Lookup the style requested in the icon name. The contents of this structure are private and should only be accessed through the public API. Create a newly allocated #StIcon. A newly allocated #StIcon Gets the currently set fallback #GIcon. The fallback #GIcon, if set, otherwise %NULL a #StIcon This is a convenience method to get the icon name of the fallback #GThemedIcon that is currently set. The name of the icon or %NULL if no icon is set an #StIcon Gets the current #GIcon in use. The current #GIcon, if set, otherwise %NULL an #StIcon This is a convenience method to get the icon name of the current icon, if it is currently a #GThemedIcon, or %NULL otherwise. The name of the icon or %NULL an #StIcon Gets the explicit size set using st_icon_set_icon_size() for the icon. This is not necessarily the size that the icon will be displayed at. The explicitly set size, or -1 if no size has been set an #StIcon Sets a fallback #GIcon to show if the normal icon fails to load. If @fallback_gicon is %NULL or fails to load, the icon is unset and no texture will be visible for the fallback icon. a #StIcon the fallback #GIcon This is a convenience method to set the fallback #GIcon to a #GThemedIcon created using the given icon name. If @fallback_icon_name is an empty string, %NULL or fails to load, the icon is unset and no texture will be visible for the fallback icon. an #StIcon the name of the fallback icon Sets a #GIcon to show for the icon. If @gicon is %NULL or fails to load, the fallback icon set using st_icon_set_fallback_icon() will be shown. an #StIcon a #GIcon This is a convenience method to set the #GIcon to a #GThemedIcon created using the given icon name. If @icon_name is an empty string, %NULL or fails to load, the fallback icon will be shown. an #StIcon the name of the icon Sets an explicit size for the icon. Setting @size to -1 will use the size defined by the current style or the default icon size. an #StIcon if positive, the new size, otherwise the size will be derived from the current style The fallback #GIcon to display if #StIcon:gicon fails to load. The fallback icon name of the #StIcon. See st_icon_set_fallback_icon_name() for details. The #GIcon being displayed by this #StIcon. The name of the icon if the icon being displayed is a #GThemedIcon. The size of the icon, if greater than `0`. Otherwise the icon size is derived from the current style. The #StIconColors structure encapsulates colors for colorizing a symbolic icon. foreground color color indicating a warning state color indicating an error state color indicating a successful operation Creates a new #StIconColors. All colors are initialized to transparent black. a newly created #StIconColors. Free with st_icon_colors_unref() Creates a new StIconColors structure that is a copy of the passed in @colors. You would use this function instead of st_icon_colors_ref() if you were planning to change colors in the result. a newly created #StIconColors. a #StIconColors Check if two #StIconColors objects are identical. %TRUE if the #StIconColors are equal a #StIconColors another #StIconColors Atomically increments the reference count of @colors by one. the passed in #StIconColors. a #StIconColors Atomically decrements the reference count of @colors by one. If the reference count drops to 0, all memory allocated by the #StIconColors is released. a #StIconColors Creates a #StIconInfo for a #GdkPixbuf. a #StIconInfo a #StIconTheme the pixbuf to wrap in a #StIconInfo Gets the base scale for the icon. The base scale is a scale for the icon that was specified by the icon theme creator. For instance an icon drawn for a high-dpi screen with window scale 2 for a base size of 32 will be 64 pixels tall and have a base scale of 2. the base scale a #StIconInfo Gets the base size for the icon. The base size is a size for the icon that was specified by the icon theme creator. This may be different than the actual size of image; an example of this is small emblem icons that can be attached to a larger icon. These icons will be given the same base size as the larger icons to which they are attached. Note that for scaled icons the base size does not include the base scale. the base size, or 0, if no base size is known for the icon. a #StIconInfo Gets the filename for the icon. the filename for the icon, or %NULL. The return value is owned by GTK+ and should not be modified or freed. a #StIconInfo Checks if the icon is symbolic or not. This currently uses only the file name and not the file contents for determining this. This behaviour may change in the future. %TRUE if the icon is symbolic, %FALSE otherwise a #StIconInfo Renders an icon previously looked up in an icon theme using st_icon_theme_lookup_icon(); the size will be based on the size passed to st_icon_theme_lookup_icon(). Note that the resulting pixbuf may not be exactly this size; an icon theme may have icons that differ slightly from their nominal sizes, and in addition GTK+ will avoid scaling icons that it considers sufficiently close to the requested size or for which the source image would have to be scaled up too far. (This maintains sharpness.). This behaviour can be changed by passing the %ST_ICON_LOOKUP_FORCE_SIZE flag when obtaining the #StIconInfo. If this flag has been specified, the pixbuf returned by this function will be scaled to the exact size. the rendered icon; this may be a newly created icon or a new reference to an internal icon, so you must not modify the icon. Use g_object_unref() to release your reference to the icon. a #StIconInfo from st_icon_theme_lookup_icon() Asynchronously load, render and scale an icon previously looked up from the icon theme using st_icon_theme_lookup_icon(). For more details, see st_icon_info_load_icon() which is the synchronous version of this call. a #StIconInfo from st_icon_theme_lookup_icon() optional #GCancellable object, %NULL to ignore a #GAsyncReadyCallback to call when the request is satisfied the data to pass to callback function Finishes an async icon load, see st_icon_info_load_icon_async(). the rendered icon; this may be a newly created icon or a new reference to an internal icon, so you must not modify the icon. Use g_object_unref() to release your reference to the icon. a #StIconInfo from st_icon_theme_lookup_icon() a #GAsyncResult Loads an icon, modifying it to match the system colours for the foreground, success, warning and error colors provided. If the icon is not a symbolic one, the function will return the result from st_icon_info_load_icon(). This allows loading symbolic icons that will match the system theme. Unless you are implementing a widget, you will want to use g_themed_icon_new_with_default_fallbacks() to load the icon. As implementation details, the icon loaded needs to be of SVG type, contain the “symbolic” term as the last component of the icon name, and use the “fg”, “success”, “warning” and “error” CSS styles in the SVG file itself. See the [Symbolic Icons Specification](http://www.freedesktop.org/wiki/SymbolicIcons) for more information about symbolic icons. a #GdkPixbuf representing the loaded icon a #StIconInfo a #StIconColors representing the foreground, warning and error colors a #gboolean, returns whether the loaded icon was a symbolic one and whether the @fg color was applied to it. Asynchronously load, render and scale a symbolic icon previously looked up from the icon theme using st_icon_theme_lookup_icon(). For more details, see st_icon_info_load_symbolic() which is the synchronous version of this call. a #StIconInfo from st_icon_theme_lookup_icon() an #StIconColors representing the foreground, error and success colors of the icon optional #GCancellable object, %NULL to ignore a #GAsyncReadyCallback to call when the request is satisfied the data to pass to callback function Finishes an async icon load, see st_icon_info_load_symbolic_async(). the rendered icon; this may be a newly created icon or a new reference to an internal icon, so you must not modify the icon. Use g_object_unref() to release your reference to the icon. a #StIconInfo from st_icon_theme_lookup_icon() a #GAsyncResult a #gboolean, returns whether the loaded icon was a symbolic one and whether the @fg color was applied to it. Used to specify options for st_icon_theme_lookup_icon() Never get SVG icons, even if gdk-pixbuf supports them. Cannot be used together with %ST_ICON_LOOKUP_FORCE_SVG. Get SVG icons, even if gdk-pixbuf doesn’t support them. Cannot be used together with %ST_ICON_LOOKUP_NO_SVG. Try to shorten icon name at '-' characters before looking at inherited themes. This flag is only supported in functions that take a single icon name. For more general fallback, see st_icon_theme_choose_icon(). Always get the icon scaled to the requested size. Try to always load regular icons, even when symbolic icon names are given. Try to always load symbolic icons, even when regular icon names are given. Try to load a variant of the icon for left-to-right text direction. Try to load a variant of the icon for right-to-left text direction. Used to specify options when looking up icons. Lookup the style requested in the icon name. Try to always load regular icons, even when symbolic icon names are given. Try to always load symbolic icons, even when regular icon names are given. #StIconTheme provides a facility for looking up icons by name and size. The main reason for using a name rather than simply providing a filename is to allow different icons to be used depending on what “icon theme” is selected by the user. The operation of icon themes on Linux and Unix follows the [Icon Theme Specification](http://www.freedesktop.org/Standards/icon-theme-spec) There is a fallback icon theme, named `hicolor`, where applications should install their icons, but additional icon themes can be installed as operating system vendors and users choose. In many cases, named themes are used indirectly, via #StIcon, rather than directly, but looking up icons directly is also simple. The #StIconTheme object acts as a database of all the icons in the current theme. Creates a new icon theme object. Icon theme objects are used to lookup up an icon by name in a particular icon theme. the newly created #StIconTheme object. Adds a resource path that will be looked at when looking for icons, similar to search paths. This function should be used to make application-specific icons available as part of the icon theme. The resources are considered as part of the hicolor icon theme and must be located in subdirectories that are defined in the hicolor icon theme, such as `@path/16x16/actions/run.png`. Icons that are directly placed in the resource path instead of a subdirectory are also considered as ultimate fallback. a #StIconTheme a resource path Appends a directory to the search path. See st_icon_theme_set_search_path(). a #StIconTheme directory name to append to the icon path Looks up a named icon and returns a #StIconInfo containing information such as the filename of the icon. The icon can then be rendered into a pixbuf using st_icon_info_load_icon(). (st_icon_theme_load_icon() combines these two steps if all you need is the pixbuf.) If @icon_names contains more than one name, this function tries them all in the given order before falling back to inherited icon themes. a #StIconInfo object containing information about the icon, or %NULL if the icon wasn’t found. a #StIconTheme %NULL-terminated array of icon names to lookup desired icon size flags modifying the behavior of the icon lookup Looks up a named icon for a particular window scale and returns a #StIconInfo containing information such as the filename of the icon. The icon can then be rendered into a pixbuf using st_icon_info_load_icon(). (st_icon_theme_load_icon() combines these two steps if all you need is the pixbuf.) If @icon_names contains more than one name, this function tries them all in the given order before falling back to inherited icon themes. a #StIconInfo object containing information about the icon, or %NULL if the icon wasn’t found. a #StIconTheme %NULL-terminated array of icon names to lookup desired icon size desired scale flags modifying the behavior of the icon lookup Returns an array of integers describing the sizes at which the icon is available without scaling. A size of -1 means that the icon is available in a scalable format. The array is zero-terminated. An newly allocated array describing the sizes at which the icon is available. The array should be freed with g_free() when it is no longer needed. a #StIconTheme the name of an icon Gets the current search path. See st_icon_theme_set_search_path(). a #StIconTheme location to store a list of icon theme path directories or %NULL. The stored value should be freed with g_strfreev(). location to store number of elements in @path, or %NULL Checks whether an icon theme includes an icon for a particular name. %TRUE if @icon_theme includes an icon for @icon_name. a #StIconTheme the name of an icon Gets the list of contexts available within the current hierarchy of icon themes. See st_icon_theme_list_icons() for details about contexts. a #GList list holding the names of all the contexts in the theme. You must first free each element in the list with g_free(), then free the list itself with g_list_free(). a #StIconTheme Lists the icons in the current icon theme. Only a subset of the icons can be listed by providing a context string. The set of values for the context string is system dependent, but will typically include such values as “Applications” and “MimeTypes”. Contexts are explained in the [Icon Theme Specification](http://www.freedesktop.org/wiki/Specifications/icon-theme-spec). The standard contexts are listed in the [Icon Naming Specification](http://www.freedesktop.org/wiki/Specifications/icon-naming-spec). Also see st_icon_theme_list_contexts(). a #GList list holding the names of all the icons in the theme. You must first free each element in the list with g_free(), then free the list itself with g_list_free(). a #StIconTheme a string identifying a particular type of icon, or %NULL to list all icons. Looks up an icon in an icon theme, scales it to the given size and renders it into a pixbuf. This is a convenience function; if more details about the icon are needed, use st_icon_theme_lookup_icon() followed by st_icon_info_load_icon(). Note that you probably want to listen for icon theme changes and update the icon. This is usually done by connecting to the GtkWidget::style-set signal. If for some reason you do not want to update the icon when the icon theme changes, you should consider using gdk_pixbuf_copy() to make a private copy of the pixbuf returned by this function. Otherwise GTK+ may need to keep the old icon theme loaded, which would be a waste of memory. the rendered icon; this may be a newly created icon or a new reference to an internal icon, so you must not modify the icon. Use g_object_unref() to release your reference to the icon. %NULL if the icon isn’t found. a #StIconTheme the name of the icon to lookup the desired icon size. The resulting icon may not be exactly this size; see st_icon_info_load_icon(). flags modifying the behavior of the icon lookup Looks up an icon in an icon theme for a particular window scale, scales it to the given size and renders it into a pixbuf. This is a convenience function; if more details about the icon are needed, use st_icon_theme_lookup_icon() followed by st_icon_info_load_icon(). Note that you probably want to listen for icon theme changes and update the icon. This is usually done by connecting to the GtkWidget::style-set signal. If for some reason you do not want to update the icon when the icon theme changes, you should consider using gdk_pixbuf_copy() to make a private copy of the pixbuf returned by this function. Otherwise GTK+ may need to keep the old icon theme loaded, which would be a waste of memory. the rendered icon; this may be a newly created icon or a new reference to an internal icon, so you must not modify the icon. Use g_object_unref() to release your reference to the icon. %NULL if the icon isn’t found. a #StIconTheme the name of the icon to lookup the desired icon size. The resulting icon may not be exactly this size; see st_icon_info_load_icon(). desired scale flags modifying the behavior of the icon lookup Looks up an icon and returns a #StIconInfo containing information such as the filename of the icon. The icon can then be rendered into a pixbuf using st_icon_info_load_icon(). When rendering on displays with high pixel densities you should not use a @size multiplied by the scaling factor returned by functions like gdk_window_get_scale_factor(). Instead, you should use st_icon_theme_lookup_by_gicon_for_scale(), as the assets loaded for a given scaling factor may be different. a #StIconInfo containing information about the icon, or %NULL if the icon wasn’t found. Unref with g_object_unref() a #StIconTheme the #GIcon to look up desired icon size flags modifying the behavior of the icon lookup Looks up an icon and returns a #StIconInfo containing information such as the filename of the icon. The icon can then be rendered into a pixbuf using st_icon_info_load_icon(). a #StIconInfo containing information about the icon, or %NULL if the icon wasn’t found. Unref with g_object_unref() a #StIconTheme the #GIcon to look up desired icon size the desired scale flags modifying the behavior of the icon lookup Looks up a named icon and returns a #StIconInfo containing information such as the filename of the icon. The icon can then be rendered into a pixbuf using st_icon_info_load_icon(). (st_icon_theme_load_icon() combines these two steps if all you need is the pixbuf.) When rendering on displays with high pixel densities you should not use a @size multiplied by the scaling factor returned by functions like gdk_window_get_scale_factor(). Instead, you should use st_icon_theme_lookup_icon_for_scale(), as the assets loaded for a given scaling factor may be different. a #StIconInfo object containing information about the icon, or %NULL if the icon wasn’t found. a #StIconTheme the name of the icon to lookup desired icon size flags modifying the behavior of the icon lookup Looks up a named icon for a particular window scale and returns a #StIconInfo containing information such as the filename of the icon. The icon can then be rendered into a pixbuf using st_icon_info_load_icon(). (st_icon_theme_load_icon() combines these two steps if all you need is the pixbuf.) a #StIconInfo object containing information about the icon, or %NULL if the icon wasn’t found. a #StIconTheme the name of the icon to lookup desired icon size the desired scale flags modifying the behavior of the icon lookup Prepends a directory to the search path. See st_icon_theme_set_search_path(). a #StIconTheme directory name to prepend to the icon path Checks to see if the icon theme has changed; if it has, any currently cached information is discarded and will be reloaded next time @icon_theme is accessed. %TRUE if the icon theme has changed and needed to be reloaded. a #StIconTheme Sets the search path for the icon theme object. When looking for an icon theme, GTK+ will search for a subdirectory of one or more of the directories in @path with the same name as the icon theme containing an index.theme file. (Themes from multiple of the path elements are combined to allow themes to be extended by adding icons in the user’s home directory.) In addition if an icon found isn’t found either in the current icon theme or the default icon theme, and an image file with the right name is found directly in one of the elements of @path, then that image will be used for the icon name. (This is legacy feature, and new icons should be put into the fallback icon theme, which is called hicolor, rather than directly on the icon path.) a #StIconTheme array of directories that are searched for icon themes number of elements in @path. Emitted when the current icon theme is switched or GTK+ detects that a change has occurred in the contents of the current icon theme. Error codes for StIconTheme operations. The icon specified does not exist in the theme An unspecified error occurred. Creates a new #StImageContent, a simple content for sized images. See #ClutterImage for setting the actual image to display or #StIcon for displaying icons. the newly created #StImageContent content Use g_object_unref() when done. The preferred width to be used when drawing the content The preferred width to be used when drawing the content The contents of this structure is private and should only be accessed using the provided API. Create a new #StLabel with the label specified by @text. a new #StLabel text to set the label to Retrieve the internal #ClutterText used by @label so that extra parameters can be set. the #ClutterText used by #StLabel. The actor is owned by the #StLabel and should not be destroyed by the application. a #StLabel Get the text displayed on the label. the text for the label. This must not be freed by the application a #StLabel Sets the text displayed by the label. a #StLabel text to set the label to The internal #ClutterText actor supporting the label The current text being display in the #StLabel. Create a new #StPasswordEntry. a new #StEntry Gets whether the text is masked in the password entry. %TRUE if visible a #StPasswordEntry Gets whether peek-icon is shown or hidden in the password entry. %TRUE if visible a #StPasswordEntry Sets whether to show or hide text in the password entry. a #StPasswordEntry %TRUE to show the password in the entry, #FALSE otherwise Sets whether to show or hide the peek-icon in the password entry. If %TRUE, a icon button for temporarily unmasking the password will be shown at the end of the entry. a #StPasswordEntry %TRUE to show the peek-icon in the entry Whether the text in the entry is masked for privacy. Whether to display an icon button to toggle the masking enabled by the #StPasswordEntry:password-visible property. Gets the #StAdjustment that controls the current position of @bar. an #StAdjustment a #StScrollbar The #StAdjustment controlling the #StScrollBar. Whether the #StScrollBar is vertical. If %FALSE it is horizontal. Emitted when the #StScrollBar begins scrolling. Emitted when the #StScrollBar finishes scrolling. Create a new #StScrollView. a new #StScrollView Gets the #StScrollable content of @scroll. a #StScrollable, or %NULL a #StBin Get the step increment of the horizontal plane. the horizontal step increment a #StScrollView Gets the horizontal #StAdjustment of the #StScrollView. the horizontal adjustment a #StScrollView Gets the horizontal #StScrollBar of the #StScrollView. the horizontal scrollbar a #StScrollView Get whether automatic mouse wheel scrolling is enabled or disabled. %TRUE if enabled, %FALSE otherwise a #StScrollView Gets whether scrollbars are painted on top of the content. %TRUE if enabled, %FALSE otherwise A #StScrollView Get the step increment of the vertical plane. the vertical step increment a #StScrollView Gets the vertical #StAdjustment of the #StScrollView. the vertical adjustment a #StScrollView Gets the vertical scrollbar of the #StScrollView. the vertical #StScrollBar a #StScrollView Sets @child as the content of @scroll. If @scroll already has a child, the previous child is removed. a #StScrollView a #StScrollable, or %NULL Set the step increment of the horizontal plane to @column_size. a #StScrollView horizontal step increment Sets automatic mouse wheel scrolling to enabled or disabled. a #StScrollView %TRUE or %FALSE Sets whether scrollbars are painted on top of the content. A #StScrollView Whether to enable overlay scrollbars Set the scroll policy. A #StScrollView Whether to enable horizontal scrolling Whether to enable vertical scrolling Set the step increment of the vertical plane to @row_size. a #StScrollView vertical step increment Sets the fade effects in all four edges of the view. A value of 0 disables the effect. a #StScrollView a #ClutterMargin defining the vertical fade effects, in pixels. The child #StScrollable of the #StScrollView container. Whether to enable automatic mouse wheel scrolling. The horizontal #StAdjustment for the #StScrollView. The horizontal #StScrollBar for the #StScrollView. The #StPolicyType for when to show the horizontal #StScrollBar. Whether the horizontal #StScrollBar is visible. Whether scrollbars are painted on top of the content. The vertical #StAdjustment for the #StScrollView. The vertical #StScrollBar for the #StScrollView. The #StPolicyType for when to show the vertical #StScrollBar. Whether the vertical #StScrollBar is visible. Create a new #StScrollViewFade. a new #StScrollViewFade Whether faded edges should extend beyond the faded area of the #StScrollViewFade. Whether the faded area should extend to the edges of the #StScrollViewFade. The margins widths that are faded. This method should be implemented by classes implementing the #StScrollable interface. JavaScript code should do this by overriding the `vfunc_set_adjustments()` method. a #StScrollable the horizontal #StAdjustment the vertical #StAdjustment This method should be implemented by classes implementing the #StScrollable interface. JavaScript code should do this by overriding the `vfunc_set_adjustments()` method. a #StScrollable the horizontal #StAdjustment the vertical #StAdjustment The horizontal #StAdjustment used by the #StScrollable. Implementations should override this property to provide read-write access to the #StAdjustment. JavaScript code may override this as demonstrated below: |[<!-- language="JavaScript" --> export const MyScrollable = GObject.registerClass({ Properties: { 'hadjustment': GObject.ParamSpec.override( 'hadjustment', St.Scrollable ) } }, class MyScrollable extends St.Scrollable { get hadjustment() { return this._hadjustment || null; } set hadjustment(adjustment) { if (this.hadjustment === adjustment) return; this._hadjustment = adjustment; this.notify('hadjustment'); } }); ]| The vertical #StAdjustment used by the #StScrollable. Implementations should override this property to provide read-write access to the #StAdjustment. See #StScrollable:hadjustment for an example of how to override this property in JavaScript code. a #StScrollable the horizontal #StAdjustment the vertical #StAdjustment Gets the global #StSettings object. the global #StSettings object The preferred color-scheme Whether password showing can be locked down The threshold before a drag operation begins. Whether animations are enabled. The current font name. The current GTK icon theme Whether the accessibility high contrast mode is enabled. Whether the accessibility magnifier is active. Whether pasting from the `PRIMARY` selection is supported (eg. middle-click paste). The slow-down factor applied to all animation durations. Attributes of the -st-shadow property. shadow's color horizontal offset - positive values mean placement to the right, negative values placement to the left of the element. vertical offset - positive values mean placement below, negative values placement above the element. shadow's blur radius - a value of 0.0 will result in a hard shadow. shadow's spread radius - grow the shadow without enlarging the blur. Creates a new #StShadow the newly allocated shadow. Use st_shadow_free() when done shadow's color horizontal offset vertical offset blur radius spread radius whether the shadow should be inset Check if two shadow objects are identical. Note that two shadows may compare non-identically if they differ only by floating point rounding errors. %TRUE if the two shadows are identical a #StShadow a different #StShadow Gets the box used to paint @shadow, which will be partly outside of @actor_box a #StShadow the box allocated to a #ClutterAlctor computed box occupied by @shadow Atomically increments the reference count of @shadow by one. the passed in #StShadow. a #StShadow Atomically decrements the reference count of @shadow by one. If the reference count drops to 0, all memory allocated by the #StShadow is released. a #StShadow Builds a #StShadowHelper that will build a drop shadow using @source as the mask. a new #StShadowHelper a #StShadow representing the shadow properties a copy of @helper the #StShadowHelper to copy Free resources associated with @helper. a #StShadowHelper Paints the shadow associated with @helper This must only be called from the implementation of ClutterActor::paint(). a #StShadowHelper a #CoglFramebuffer the bounding box of the shadow the opacity at which the shadow is painted Update @helper from @source. a #StShadowHelper a #ClutterActor Used to target a particular side of a #StThemeNode element. The top side. The right side. The bottom side. The left side. Used to align text in a label. Text is aligned at the beginning of the label. Text is aligned in the middle of the label. Text is aligned at the end of the label. Flags used to determine the decoration of text. Not that neither %ST_TEXT_DECORATION_OVERLINE or %ST_TEXT_DECORATION_BLINK are implemented, currently. Text is overlined Text is striked out Text blinks The global texture cache Load an arbitrary texture, caching it. The string chosen for @key should be of the form "type-prefix:type-uuid". For example, "url:file:///usr/share/icons/hicolor/48x48/apps/firefox.png", or "stock-icon:gtk-ok". A newly-referenced handle to the texture A #StTextureCache Arbitrary string used to refer to item Caching policy Function to create the texture, if not already cached User data passed to @load Create a #GIcon from @surface. A new #GIcon A #StTextureCache A #cairo_surface_t Asynchronously load an image. Initially, the returned texture will have a natural size of zero. At some later point, either the image will be loaded successfully and at that point size will be negotiated, or upon an error, no image will be set. A new #ClutterActor with no image loaded initially. A #StTextureCache a #GFile of the image file from which to create a pixbuf available width for the image, can be -1 if not limited available height for the image, can be -1 if not limited scale factor of the display Resource scale factor This function synchronously loads the given file path into a cairo surface. On error, a warning is emitted and %NULL is returned. a new #cairo_surface_t A #StTextureCache A #GFile in supported image format Scale factor of the display Resource scale factor This function synchronously loads the given file path into a COGL texture. On error, a warning is emitted and %NULL is returned. a new #CoglTexture A #StTextureCache A #GFile in supported image format Scale factor of the display Resource scale factor This method returns a new #ClutterActor for a given #GIcon. If the icon isn't loaded already, the texture will be filled asynchronously. A new #ClutterActor for the icon, or %NULL if not found A #StTextureCache The #StThemeNode to use for colors, or %NULL if the icon must not be recolored the #GIcon to load Size of themed Scale factor of display Resource scale factor This function reads a single image file which contains multiple images internally. The image file will be divided using @grid_width and @grid_height; note that the dimensions of the image loaded from @path should be a multiple of the specified grid dimensions. A new #ClutterActor A #StTextureCache A #GFile Width in pixels Height in pixels Scale factor of the display Function called when the image is loaded, or %NULL Data to pass to the load callback Rescan the current icon theme, if necessary. %TRUE if the icon theme has changed and needed to be reloaded. Emitted when the icon theme is changed. Emitted when the source file of a texture is changed. a #GFile See st_texture_cache_load(). Implementations should return a texture handle for the given key, or set @error. a #StTextureCache Unique identifier for this texture Callback user data the newly created theme object The highest priority stylesheet, representing application-specific styling; this is associated with the CSS "author" stylesheet, may be %NULL The second priority stylesheet, representing theme-specific styling ; this is associated with the CSS "user" stylesheet, may be %NULL The lowest priority stylesheet, representing global default styling; this is associated with the CSS "user agent" stylesheet, may be %NULL Get a list of the stylesheet files loaded with st_theme_load_stylesheet(). the list of stylesheet files that were loaded with st_theme_load_stylesheet() an #StTheme Load the stylesheet associated with @file. %TRUE if successful a #StTheme a #GFile Unload the stylesheet associated with @file. If @file was not loaded this function does nothing. a #StTheme a #GFile The highest priority stylesheet, representing application-specific styling; this is associated with the CSS "author" stylesheet. The lowest priority stylesheet, representing global default styling; this is associated with the CSS "user agent" stylesheet. The second priority stylesheet, representing theme-specific styling; this is associated with the CSS "user" stylesheet. Create a new theme context not associated with any #ClutterStage. This can be useful in testing scenarios, or if using StThemeContext with something other than #ClutterActor objects, but you generally should use st_theme_context_get_for_stage() instead. a new #StThemeContext Gets a singleton theme context associated with the stage. the singleton theme context for the stage a #ClutterStage Gets the default font for the theme context. See st_theme_context_set_font(). the default font for the theme context. a #StThemeContext Gets the root node of the tree of theme style nodes that associated with this context. For the node tree associated with a stage, this node represents styles applied to the stage itself. the root node of the context's style tree a #StThemeContext Return the current scale factor of @context. an integer scale factor a #StThemeContext Gets the default theme for the context. See st_theme_context_set_theme() the default theme for the context a #StThemeContext Return an existing node matching @node, or if that isn't possible, @node itself. a node with the same properties as @node a #StThemeContext a #StThemeNode Sets the default font for the theme context. This is the font that is inherited by the root node of the tree of theme nodes. If the font is not overridden, then this font will be used. If the font is partially modified (for example, with 'font-size: 110%'), then that modification is based on this font. a #StThemeContext the default font for theme context Sets the default set of theme stylesheets for the context. This theme will be used for the root node and for nodes descending from it, unless some other style is explicitly specified. a #StThemeContext a #StTheme The scaling factor used for HiDPI scaling. Emitted when the icon theme, font, resolution, scale factor or the current theme's custom stylesheets change. Creates a new #StThemeNode. Once created, a node is immutable. If any of the attributes of the node (like the @element_class) change the node and its child nodes must be destroyed and recreated. a new #StThemeNode the context representing global state for this themed tree the parent node of this node a theme (stylesheet set) that overrides the theme inherited from the parent node the type of the GObject represented by this node in the tree (corresponding to an element if we were theming an XML document. %G_TYPE_NONE means this style was created for the stage actor and matches a selector element name of 'stage'. the ID to match CSS rules against a whitespace-separated list of classes to match CSS rules against a whitespace-separated list of pseudo-classes (like 'hover' or 'visited') to match CSS rules against Adjusts a "for height" passed to clutter_actor_get_preferred_width() to account for borders and padding. This is a convenience function meant to be called from a get_preferred_width() method of a #ClutterActor subclass. The value after adjustment is the height available for the actor's content. a #StThemeNode the "for height" to adjust Adjusts a "for width" passed to clutter_actor_get_preferred_height() to account for borders and padding. This is a convenience function meant to be called from a get_preferred_height() method of a #ClutterActor subclass. The value after adjustment is the width available for the actor's content. a #StThemeNode the "for width" to adjust Adjusts the minimum and natural height computed for an actor by adding on the necessary space for borders and padding and taking into account any minimum or maximum height. This is a convenience function meant to be called from the get_preferred_height() method of a #ClutterActor subclass a #StThemeNode the minimum height to adjust the natural height to adjust Adjusts the minimum and natural width computed for an actor by adding on the necessary space for borders and padding and taking into account any minimum or maximum width. This is a convenience function meant to be called from the get_preferred_width() method of a #ClutterActor subclass a #StThemeNode the minimum width to adjust the natural width to adjust Compare two #StThemeNodes. Two nodes which compare equal will match the same CSS rules and have the same style properties. However, two nodes that have ended up with identical style properties do not necessarily compare equal. In detail, @node_a and @node_b are considered equal if and only if: - they share the same #StTheme and #StThemeContext - they have the same parent - they have the same element type - their id, class, pseudo-class and inline-style match %TRUE if @node_a equals @node_b first #StThemeNode second #StThemeNode Tests if two theme nodes have the same borders and padding; this can be used to optimize having to relayout when the style applied to a Clutter actor changes colors without changing the geometry. %TRUE if equal, %FALSE otherwise a #StThemeNode a different #StThemeNode Gets @node's background color. a #StThemeNode location to store the color The @start and @end arguments will only be set if @type is not #ST_GRADIENT_NONE. A #StThemeNode Type of gradient Color at start of gradient Color at end of gradient @node's background image. a #StThemeNode Gets the value for the -st-background-image-shadow style property the node's background image shadow, or %NULL if node has no such shadow a #StThemeNode Gets the box used to paint the actor's background, including the area occupied by properties which paint outside the actor's assigned allocation. a #StThemeNode the box allocated to a #ClutterActor computed box occupied when painting the actor's background Gets the color of @node's border on @side a #StThemeNode a #StSide location to store the color Gets the value for the border-image style property the border image, or %NULL if there is no border image. a #StThemeNode Get the border radius for @node at @corner, in physical pixels. the border radius in physical pixels a #StThemeNode a #StCorner Get the border width for @node on @side, in physical pixels. the border width in physical pixels a #StThemeNode a #StCorner Gets the value for the box-shadow style property the node's shadow, or %NULL if node has no shadow a #StThemeNode Generically looks up a property containing a single color value. When specific getters (like st_theme_node_get_background_color()) exist, they should be used instead. They are cached, so more efficient, and have handling for shortcut properties and other details of CSS. If @property_name is not found, a warning will be logged and a default color returned. See also st_theme_node_lookup_color(), which provides more options, and lets you handle the case where the theme does not specify the indicated color. a #StThemeNode The name of the color property location to store the color that was determined. Gets the box within an actor's allocation that contents the content of an actor (excluding borders and padding). This is a convenience function meant to be used from the allocate() or paint() methods of a #ClutterActor subclass. a #StThemeNode the box allocated to a #ClutterAlctor computed box occupied by the actor's content Generically looks up a property containing a single numeric value without units. See also st_theme_node_lookup_double(), which provides more options, and lets you handle the case where the theme does not specify the indicated value. the value found. If @property_name is not found, a warning will be logged and 0 will be returned. a #StThemeNode The name of the numeric property Get the list of element classes for @node. the element's classes a #StThemeNode Get the unique element ID for @node. the element's ID a #StThemeNode Get the element #GType for @node. the element type a #StThemeNode Get the current font of @node as a #PangoFontDescription the current font a #StThemeNode Get the CSS font-features for @node. font-features as a string a #StThemeNode Gets @node's foreground color. a #StThemeNode location to store the color Get the height for @node, in physical pixels. the height in physical pixels a #StThemeNode Gets the total horizontal padding (left + right padding), in physical pixels. the total horizontal padding in physical pixels a #StThemeNode Gets the colors that should be used for colorizing symbolic icons according the style of this node. the icon colors to use for this theme node a #StThemeNode Get the icon style for @node (eg. symbolic, regular). This corresponds to the special `-st-icon-style` CSS property. the icon style for @node a #StThemeNode Generically looks up a property containing a single length value. When specific getters (like st_theme_node_get_border_width()) exist, they should be used instead. They are cached, so more efficient, and have handling for shortcut properties and other details of CSS. Unlike st_theme_node_get_color() and st_theme_node_get_double(), this does not print a warning if the property is not found; it just returns 0. See also st_theme_node_lookup_length(), which provides more options. The returned value is in physical pixels, as opposed to logical pixels. the length, in pixels, or 0 if the property was not found. a #StThemeNode The name of the length property Gets the value for the letter-spacing style property, in physical pixels. the value of the letter-spacing property, if found, or zero if such property has not been found. a #StThemeNode Get the margin for @node on @side, in physical pixels. This corresponds to the CSS properties such as `margin-top`. the margin size in physical pixels a #StThemeNode a #StSide Get the maximum height for @node, in physical pixels. the maximum height in physical pixels a #StThemeNode Get the maximum width for @node, in physical pixels. the maximum width in physical pixels a #StThemeNode Get the minimum height for @node, in physical pixels. the minimum height in physical pixels a #StThemeNode Get the minimum width for @node, in physical pixels. the minimum width in physical pixels a #StThemeNode Gets the color of @node's outline. a #StThemeNode location to store the color Get the width of the outline for @node, in physical pixels. the width in physical pixels a #StThemeNode Get the padding for @node on @side, in physical pixels. This corresponds to the CSS properties such as `padding-top`. the padding size in physical pixels a #StThemeNode a #StSide Gets the box used to paint the actor, including the area occupied by properties which paint outside the actor's assigned allocation. When painting @node to an offscreen buffer, this function can be used to determine the necessary size of the buffer. a #StThemeNode the box allocated to a #ClutterActor computed box occupied when painting the actor Gets the parent themed element node. the parent #StThemeNode, or %NULL if this is the root node of the tree of theme elements. a #StThemeNode Get the list of pseudo-classes for @node (eg. `:focused`). the element's pseudo-classes a #StThemeNode Generically looks up a property containing a set of shadow values. When specific getters (like st_theme_node_get_box_shadow()) exist, they should be used instead. They are cached, so more efficient, and have handling for shortcut properties and other details of CSS. Like st_theme_get_length(), this does not print a warning if the property is not found; it just returns %NULL See also st_theme_node_lookup_shadow (), which provides more options. the shadow, or %NULL if the property was not found. a #StThemeNode The name of the shadow property Get the text alignment of @node. the alignment of text for @node a #StThemeNode Get the text decoration for @node (eg. underline, line-through, etc). the text decoration for @node a #StThemeNode Gets the value for the text-shadow style property the node's text-shadow, or %NULL if node has no text-shadow a #StThemeNode Gets the theme stylesheet set that styles this node the theme stylesheet set a #StThemeNode Get the value of the transition-duration property, which specifies the transition time between the previous #StThemeNode and @node. the node's transition duration in milliseconds an #StThemeNode Looks up a property containing a single URL value. See also st_theme_node_lookup_url(), which provides more options, and lets you handle the case where the theme does not specify the indicated value. the newly allocated value if found. If @property_name is not found, a warning will be logged and %NULL will be returned. a #StThemeNode The name of the string property Gets the total vertical padding (top + bottom padding), in physical pixels. the total vertical padding in physical pixels a #StThemeNode Get the width for @node, in physical pixels. the width in physical pixels a #StThemeNode Converts @node to a hash value. a hash value corresponding to @node a #StThemeNode Generically looks up a property containing a single color value. When specific getters (like st_theme_node_get_background_color()) exist, they should be used instead. They are cached, so more efficient, and have handling for shortcut properties and other details of CSS. See also st_theme_node_get_color(), which provides a simpler API. %TRUE if the property was found in the properties for this theme node (or in the properties of parent nodes when inheriting.) a #StThemeNode The name of the color property if %TRUE, if a value is not found for the property on the node, then it will be looked up on the parent node, and then on the parent's parent, and so forth. Note that if the property has a value of 'inherit' it will be inherited even if %FALSE is passed in for @inherit; this only affects the default behavior for inheritance. location to store the color that was determined. If the property is not found, the value in this location will not be changed. Generically looks up a property containing a single numeric value without units. See also st_theme_node_get_double(), which provides a simpler API. %TRUE if the property was found in the properties for this theme node (or in the properties of parent nodes when inheriting.) a #StThemeNode The name of the numeric property if %TRUE, if a value is not found for the property on the node, then it will be looked up on the parent node, and then on the parent's parent, and so forth. Note that if the property has a value of 'inherit' it will be inherited even if %FALSE is passed in for @inherit; this only affects the default behavior for inheritance. location to store the value that was determined. If the property is not found, the value in this location will not be changed. Generically looks up a property containing a single length value. When specific getters (like st_theme_node_get_border_width()) exist, they should be used instead. They are cached, so more efficient, and have handling for shortcut properties and other details of CSS. See also st_theme_node_get_length(), which provides a simpler API. %TRUE if the property was found in the properties for this theme node (or in the properties of parent nodes when inheriting.) a #StThemeNode The name of the length property if %TRUE, if a value is not found for the property on the node, then it will be looked up on the parent node, and then on the parent's parent, and so forth. Note that if the property has a value of 'inherit' it will be inherited even if %FALSE is passed in for @inherit; this only affects the default behavior for inheritance. location to store the length that was determined. If the property is not found, the value in this location will not be changed. The returned length is resolved to pixels. If the property is not found, the value in the shadow variable will not be changed. Generically looks up a property containing a set of shadow values. When specific getters (like st_theme_node_get_box_shadow ()) exist, they should be used instead. They are cached, so more efficient, and have handling for shortcut properties and other details of CSS. See also st_theme_node_get_shadow(), which provides a simpler API. %TRUE if the property was found in the properties for this theme node (or in the properties of parent nodes when inheriting.), %FALSE if the property was not found, or was explicitly set to 'none'. a #StThemeNode The name of the shadow property if %TRUE, if a value is not found for the property on the node, then it will be looked up on the parent node, and then on the parent's parent, and so forth. Note that if the property has a value of 'inherit' it will be inherited even if %FALSE is passed in for @inherit; this only affects the default behavior for inheritance. location to store the shadow Generically looks up a property containing a single time value, which is converted to milliseconds. %TRUE if the property was found in the properties for this theme node (or in the properties of parent nodes when inheriting.) a #StThemeNode The name of the time property if %TRUE, if a value is not found for the property on the node, then it will be looked up on the parent node, and then on the parent's parent, and so forth. Note that if the property has a value of 'inherit' it will be inherited even if %FALSE is passed in for @inherit; this only affects the default behavior for inheritance. location to store the value that was determined. If the property is not found, the value in this location will not be changed. Looks up a property containing a single URL value. See also st_theme_node_get_url(), which provides a simpler API. %TRUE if the property was found in the properties for this theme node (or in the properties of parent nodes when inheriting.) a #StThemeNode The name of the string property if %TRUE, if a value is not found for the property on the node, then it will be looked up on the parent node, and then on the parent's parent, and so forth. Note that if the property has a value of 'inherit' it will be inherited even if %FALSE is passed in for @inherit; this only affects the default behavior for inheritance. location to store the newly allocated value that was determined. If the property is not found, the value in this location will not be changed. Check if st_theme_node_paint() will paint identically for @node as it does for @other. Note that in some cases this function may return %TRUE even if there is no visible difference in the painting. %TRUE if the two theme nodes paint identically. %FALSE if the two nodes potentially paint differently. a #StThemeNode a different #StThemeNode Serialize @node to a string of its #GType name, CSS ID, classes and pseudo-classes. the serialized theme node a #StThemeNode Gets a list of the focusable children of @widget, in "Tab" order. By default, this returns all visible (as in clutter_actor_is_visible()) children of @widget. @widget's focusable children An #StWidget the "top level" container the actor that the focus is coming from the direction focus is moving in Asks the widget to pop-up a context menu by emitting #StWidget::popup-menu. A #StWidget This method adds @state as one of the accessible states for @widget. The list of states of a widget describes the current state of user interface element @widget and is provided so that assistive technologies know how to present @widget to the user. Usually you will have no need to add accessible states for an object, as the accessible object can extract most of the states from the object itself (ie: a #StButton knows when it is pressed). This method is only required when one cannot extract the information automatically from the object itself (i.e.: a generic container used as a toggle menu item will not automatically include the toggled state). A #StWidget #AtkStateType state to add Adds @style_class to @actor's style class name list, if it is not already present. a #StWidget a style class name string Adds @pseudo_class to @actor's pseudo class list, if it is not already present. a #StWidget a pseudo class string Ensures that @widget has read its style information and propagated any changes to its children. A #StWidget Gets the accessible name for this widget. See st_widget_set_accessible_name() for more information. a character string representing the accessible name of the widget. widget to get the accessible name for Gets the #AtkRole for this widget. See st_widget_set_accessible_role() for more information. accessible #AtkRole for this widget widget to get the accessible role for Returns the current value of the can-focus property. See st_widget_set_can_focus() for more information. current value of can-focus on @widget A #StWidget Gets a list of the focusable children of @widget, in "Tab" order. By default, this returns all visible (as in clutter_actor_is_visible()) children of @widget. @widget's focusable children An #StWidget If #StWidget:track-hover is set, this returns whether the pointer is currently over the widget. current value of hover on @widget A #StWidget Gets the label that identifies @widget if it is defined the label that identifies the widget a #StWidget Get the current inline style string. See st_widget_set_style(). The inline style string, or %NULL. The string is owned by the #StWidget and should not be modified or freed. a #StWidget Get the current style class name the class name string. The string is owned by the #StWidget and should not be modified or freed. a #StWidget Get the current style pseudo class list. Note that an actor can have multiple pseudo classes; if you just want to test for the presence of a specific pseudo class, use st_widget_has_style_pseudo_class(). the pseudo class list string. The string is owned by the #StWidget and should not be modified or freed. a #StWidget Gets the theme node holding style information for the widget. The theme node is used to access standard and custom CSS properties of the widget. Note: it is a fatal error to call this on a widget that is not been added to a stage. the theme node for the widget. This is owned by the widget. When attributes of the widget or the environment that affect the styling change (for example the style_class property of the widget), it will be recreated, and the ::style-changed signal will be emitted on the widget. a #StWidget Returns the current value of the #StWidget:track-hover property. See st_widget_set_track_hover() for more information. current value of track-hover on @widget A #StWidget Tests if @actor's style class list includes @style_class. whether or not @actor's style class list includes @style_class. a #StWidget a style class string Tests if @actor's pseudo class list includes @pseudo_class. whether or not @actor's pseudo class list includes @pseudo_class. a #StWidget a pseudo class string Tries to update the keyboard focus within @widget in response to a keyboard event. If @from is a descendant of @widget, this attempts to move the keyboard focus to the next descendant of @widget (in the order implied by @direction) that has the #StWidget:can-focus property set. If @from is %NULL, this attempts to focus either @widget itself, or its first descendant in the order implied by @direction. If @from is outside of @widget, it behaves as if it was a descendant if @direction is one of the directional arrows and as if it was %NULL otherwise. If a container type is marked #StWidget:can-focus, the expected behavior is that it will only take up a single slot on the focus chain as a whole, rather than allowing navigation between its child actors (or having a distinction between itself being focused and one of its children being focused). Some widget classes might have slightly different behavior from the above, where that would make more sense. If @wrap_around is %TRUE and @from is a child of @widget, but the widget has no further children that can accept the focus in the given direction, then st_widget_navigate_focus() will try a second time, using a %NULL @from, which should cause it to reset the focus to the first available widget in the given direction. %TRUE if clutter_actor_grab_key_focus() has been called on an actor. %FALSE if not. the "top level" container the actor that the focus is coming from the direction focus is moving in whether focus should wrap around Paint the background of the widget. This is meant to be called by subclasses of StWidget that need to paint the background without painting children. The #StWidget Returns the theme node for the widget if it has already been computed, %NULL if the widget hasn't been added to a stage or the theme node hasn't been computed. If %NULL is returned, then ::style-changed will be reliably emitted before the widget is allocated or painted. the theme node for the widget. This is owned by the widget. When attributes of the widget or the environment that affect the styling change (for example the style_class property of the widget), it will be recreated, and the ::style-changed signal will be emitted on the widget. a #StWidget Asks the widget to pop-up a context menu by emitting #StWidget::popup-menu. A #StWidget This method removes @state as on of the accessible states for @widget. See st_widget_add_accessible_state() for more information. A #StWidget #AtkState state to remove Removes @style_class from @actor's style class name, if it is present. a #StWidget a style class name string Removes @pseudo_class from @actor's pseudo class, if it is present. a #StWidget a pseudo class string This method allows to set a customly created accessible object to this widget. For example if you define a new subclass of #StWidgetAccessible at the javascript code. NULL is a valid value for @accessible. That contemplates the hypothetical case of not needing anymore a custom accessible object for the widget. Next call of st_widget_get_accessible() would create and return a default accessible. It assumes that the call to atk_object_initialize that bound the gobject with the custom accessible object was already called, so not a responsibility of this method. A #StWidget an accessible (#AtkObject) This method sets @name as the accessible name for @widget. Usually you will have no need to set the accessible name for an object, as usually there is a label for most of the interface elements. So in general it is better to just use @st_widget_set_label_actor. This method is only required when you need to set an accessible name and there is no available label object. widget to set the accessible name for a character string to be set as the accessible name This method sets @role as the accessible role for @widget. This role describes what kind of user interface element @widget is and is provided so that assistive technologies know how to present @widget to the user. Usually you will have no need to set the accessible role for an object, as this information is extracted from the context of the object (ie: a #StButton has by default a push button role). This method is only required when you need to redefine the role currently associated with the widget, for instance if it is being used in an unusual way (ie: a #StButton used as a togglebutton), or if a generic object is used directly (ie: a container as a menu item). If @role is #ATK_ROLE_INVALID, the role will not be changed and the accessible's default role will be used instead. widget to set the accessible role for The role to use Marks @widget as being able to receive keyboard focus via keyboard navigation. A #StWidget %TRUE if the widget can receive keyboard focus via keyboard navigation Sets @widget's hover property and adds or removes "hover" from its pseudo class accordingly. If you have set #StWidget:track-hover, you should not need to call this directly. You can call st_widget_sync_hover() if the hover state might be out of sync due to another actor's pointer grab. A #StWidget whether the pointer is hovering over the widget Sets @label as the #ClutterActor that identifies (labels) @widget. @label can be %NULL to indicate that @widget is not labelled any more a #StWidget a #ClutterActor Set the inline style string for this widget. The inline style string is an optional ';'-separated list of CSS properties that override the style as determined from the stylesheets of the current theme. a #StWidget a inline style string, or %NULL Set the style class name list. @style_class_list can either be %NULL, for no classes, or a space-separated list of style class names. See also st_widget_add_style_class_name() and st_widget_remove_style_class_name(). a #StWidget a new style class list string Set the style pseudo class list. @pseudo_class_list can either be %NULL, for no classes, or a space-separated list of pseudo class names. See also st_widget_add_style_pseudo_class() and st_widget_remove_style_pseudo_class(). a #StWidget a new pseudo class list string Enables hover tracking on the #StWidget. If hover tracking is enabled, and the widget is visible and reactive, then @widget's #StWidget:hover property will be updated automatically to reflect whether the pointer is in @widget (or one of its children), and @widget's #StWidget:pseudo-class will have the "hover" class added and removed from it accordingly. Note that currently it is not possible to correctly track the hover state when another actor has a pointer grab. You can use st_widget_sync_hover() to update the property manually in this case. A #StWidget %TRUE if the widget should track the pointer hover state Sets @widget's hover state according to the current pointer position. This can be used to ensure that it is correct after (or during) a pointer grab. A #StWidget Object instance's name for assistive technology access. The accessible role of this object Whether or not the widget can be focused via keyboard navigation. Whether or not the pointer is currently hovering over the widget. This is only tracked automatically if #StWidget:track-hover is %TRUE, but you can adjust it manually in any case. An actor that labels this widget. The pseudo-class of the actor. Typical values include "hover", "active", "focus". Inline style information for the actor as a ';'-separated list of CSS properties. The style-class of the actor for use in styling. Determines whether the widget tracks pointer hover state. If %TRUE (and the widget is visible and reactive), the #StWidget:hover property and "hover" style pseudo class will be adjusted automatically as the pointer moves in and out of the widget. Emitted when the user has requested a context menu (eg, via a keybinding) Emitted when the style information that the widget derives from the theme changes Base class for stylable actors. A #StWidget the "top level" container the actor that the focus is coming from the direction focus is moving in @widget's focusable children An #StWidget Creates a string describing @actor, for use in debugging. This includes the class name and actor name (if any), plus if @actor is an #StWidget, its style class and pseudo class names. the debug name. a #ClutterActor The #StAdjustment object represents a range of values bounded between a minimum and maximum, together with step and page increments and a page size. #StBin is a simple container capable of having only one #ClutterActor as a child. #StBin inherits from #StWidget, so it is fully themable. The #StBoxLayout arranges its children along a single line, where each child can be allocated either its preferred size or larger if the expand option is set. If the fill option is set, the actor will be allocated more than its requested size. If the fill option is not set, but the expand option is enabled, then the position of the actor within the available space can be determined by the alignment child property. A button widget with support for either a text label or icon, toggle mode and transitions effects between states. #StCliboard is a very simple object representation of the clipboard available to applications. Text is always assumed to be UTF-8 and non-text items are not handled. #StDrawingArea allows drawing via Cairo; the primary difference is that it is dynamically sized. To use, connect to the #StDrawingArea::repaint signal, and inside the signal handler, call st_drawing_area_get_context() to get the Cairo context to draw to. The #StDrawingArea::repaint signal will be emitted by default when the area is resized or the CSS style changes; you can use the st_drawing_area_queue_repaint() as well. #StEntry is a simple widget for displaying text. It derives from #StWidget to add extra style and placement functionality over #ClutterText. The internal #ClutterText is publicly accessibly to allow applications to set further properties. #StEntry supports the following pseudo style states: - `focus`: the widget has focus - `indeterminate`: the widget is showing the hint text or actor #StFocusManager handles keyboard focus for all actors on the stage. #StGenericAccessible is mainly a workaround for the current lack of of a proper support for GValue at javascript. See bug#703412 for more information. We implement the accessible interfaces, but proxy the virtual functions into signals, which gjs can catch. #StGenericAccessible is an #StWidgetAccessible #StIcon is a simple styled texture actor that displays an image from a stylesheet. #StLabel is a simple widget for displaying text. It derives from #StWidget to add extra style and placement functionality over #ClutterText. The internal #ClutterText is publicly accessibly to allow applications to set further properties. The #StScrollBar allows users to scroll scrollable actors, either by the step or page amount, or by manually dragging the handle. #StScrollView is a single child container for actors that implement #StScrollable. It provides scrollbars around the edge of the child to allow the user to move around the scrollable area. The #StScrollable interface is exposed by actors that support scrolling. The interface contains methods for getting and setting the adjustments for scrolling; these adjustments will be used to hook the scrolled position up to scrollbars or other external controls. When a #StScrollable is added to a parent container, the parent container is responsible for setting the adjustments. The parent container then sets the adjustments back to %NULL when the scrollable is removed. For #StScrollable supporting height-for-width size negotiation, size negotiation works as follows: In response to get_preferred_width(), the scrollable should report the minimum width at which horizontal scrolling is needed for the preferred width, and natural width of the actor when not horizontally scrolled as the natural width. The for_width passed into get_preferred_height() is the width at which the scrollable will be allocated; this will be smaller than the minimum width when scrolling horizontally, so the scrollable may want to adjust it up to the minimum width before computing a preferred height. (Other scrollables may want to fit as much content into the allocated area as possible and only scroll what absolutely needs to scroll - consider, for example, the line-wrapping behavior of a text editor where there is a long line without any spaces.) As for width, get_preferred_height() should return the minimum size at which no scrolling is needed for the minimum height, and the natural size of the actor when not vertically scrolled as the natural height. In allocate() the allocation box passed in will be actual allocated size of the actor so will be smaller than the reported minimum width and/or height when scrolling is present. Any scrollable actor must support being allocated at any size down to 0x0 without crashing, however if the actor has content around the scrolled area and has an absolute minimum size that's bigger than 0x0 its acceptable for it to misdraw between 0x0 and the absolute minimum size. It's up to the application author to avoid letting the user resize the scroll view small enough so that the scrolled area vanishes. In response to allocate, in addition to normal handling, the scrollable should also set the limits of the the horizontal and vertical adjustments that were set on it earlier. The standard settings are: lower: 0 page_size: allocated size (width or height) upper: MAX (total size of the scrolled area,allocated_size) step_increment: natural row/column height or a fixed fraction of the page size page_increment: page_size - step_increment #StShadow is a boxed type for storing attributes of the -st-shadow property, modelled liberally after the CSS3 box-shadow property. See http://www.css3.info/preview/box-shadow/ An helper for implementing a drop shadow on a actor. The actor is expected to recreate the helper whenever its contents or size change. Then, it would call st_shadow_helper_paint() inside its paint() virtual function. #StTheme holds a set of stylesheets. (The "cascade" of the name Cascading Stylesheets.) A #StTheme can be set to apply to all the actors in a stage using st_theme_context_set_theme(). #StThemeContext is responsible for managing information global to a tree of styled objects, such as the set of stylesheets or the default font. In normal usage, a #StThemeContext is bound to a #ClutterStage; a singleton #StThemeContext can be obtained for a #ClutterStage by using st_theme_context_get_for_stage(). A #StThemeNode represents the CSS style information (the set of CSS properties) for one node in a tree of themed objects. In typical usage, it represents the style information for a single #ClutterActor. A #StThemeNode is immutable: attributes such as the CSS classes for the node are passed in at construction. If the attributes of the node or any parent node change, the node should be discarded and a new node created. #StThemeNode has generic accessors to look up properties by name and specific accessors for standard CSS properties that add caching and handling of various details of the CSS specification. #StThemeNode also has convenience functions to help in implementing a #ClutterActor with borders and padding. Note that pixel measurements take the #StThemeContext:scale-factor into account so all values are in physical pixels, as opposed to logical pixels. Physical pixels correspond to actor sizes, not necessarily to pixels on display devices (eg. when `scale-monitor-framebuffer` is enabled). Common types for StWidgets. The #StViewport is a generic #StScrollable implementation. #StWidget is a simple abstract class on top of #ClutterActor. It provides basic themeing properties. Actors in the St library should subclass #StWidget if they plan to obey to a certain #StStyle.