| Top |
| GtkTextDirection | direction | Read / Write |
| GdkFrameClock * | paint-clock | Read / Write |
| GtkStyleContext * | parent | Read / Write |
| GdkScreen * | screen | Read / Write |
GtkStyleContext is an object that stores styling information affecting a widget defined by GtkWidgetPath.
In order to construct the final style information, GtkStyleContext
queries information from all attached GtkStyleProviders. Style providers
can be either attached explicitly to the context through
gtk_style_context_add_provider()
, or to the screen through
gtk_style_context_add_provider_for_screen()
. The resulting style is a
combination of all providers’ information in priority order.
For GTK+ widgets, any GtkStyleContext returned by
gtk_widget_get_style_context()
will already have a GtkWidgetPath, a
GdkScreen and RTL/LTR information set. The style context will also be
updated automatically if any of these settings change on the widget.
If you are using the theming layer standalone, you will need to set a
widget path and a screen yourself to the created style context through
gtk_style_context_set_path()
and gtk_style_context_set_screen()
, as well
as updating the context yourself using gtk_style_context_invalidate()
whenever any of the conditions change, such as a change in the
“gtk-theme-name” setting or a hierarchy change in the rendered
widget. See the “Foreign drawing“ example in gtk3-demo.
Widgets can add style classes to their context, which can be used to associate different styles by class. The documentation for individual widgets lists which style classes it uses itself, and which style classes may be added by applications to affect their appearance.
GTK+ defines macros for a number of style classes.
Widgets can also add regions with flags to their context. This feature is deprecated and will be removed in a future GTK+ update. Please use style classes instead.
GTK+ defines macros for a number of style regions.
If you are developing a library with custom GtkWidgets that
render differently than standard components, you may need to add a
GtkStyleProvider yourself with the GTK_STYLE_PROVIDER_PRIORITY_FALLBACK
priority, either a GtkCssProvider or a custom object implementing the
GtkStyleProvider interface. This way themes may still attempt
to style your UI elements in a different way if needed so.
If you are using custom styling on an applications, you probably want then
to make your style information prevail to the theme’s, so you must use
a GtkStyleProvider with the GTK_STYLE_PROVIDER_PRIORITY_APPLICATION
priority, keep in mind that the user settings in
XDG_CONFIG_HOME/gtk-3.0/gtk.css
will
still take precedence over your changes, as it uses the
GTK_STYLE_PROVIDER_PRIORITY_USER
priority.
GtkStyleContext *
gtk_style_context_new (void
);
Creates a standalone GtkStyleContext, this style context
won’t be attached to any widget, so you may want
to call gtk_style_context_set_path()
yourself.
This function is only useful when using the theming layer
separated from GTK+, if you are using GtkStyleContext to
theme GtkWidgets, use gtk_widget_get_style_context()
in order to get a style context ready to theme the widget.
void gtk_style_context_add_provider (GtkStyleContext *context
,GtkStyleProvider *provider
,guint priority
);
Adds a style provider to context
, to be used in style construction.
Note that a style provider added by this function only affects
the style of the widget to which context
belongs. If you want
to affect the style of all widgets, use
gtk_style_context_add_provider_for_screen()
.
Note: If both priorities are the same, a GtkStyleProvider
added through this function takes precedence over another added
through gtk_style_context_add_provider_for_screen()
.
context |
||
provider |
||
priority |
the priority of the style provider. The lower
it is, the earlier it will be used in the style
construction. Typically this will be in the range
between |
Since: 3.0
void gtk_style_context_add_provider_for_screen (GdkScreen *screen
,GtkStyleProvider *provider
,guint priority
);
Adds a global style provider to screen
, which will be used
in style construction for all GtkStyleContexts under screen
.
GTK+ uses this to make styling information from GtkSettings available.
Note: If both priorities are the same, A GtkStyleProvider
added through gtk_style_context_add_provider()
takes precedence
over another added through this function.
screen |
||
provider |
||
priority |
the priority of the style provider. The lower
it is, the earlier it will be used in the style
construction. Typically this will be in the range
between |
Since: 3.0
void gtk_style_context_get (GtkStyleContext *context
,GtkStateFlags state
,...
);
Retrieves several style property values from context
for a
given state.
See gtk_style_context_get_property()
for details.
context |
||
state |
state to retrieve the property values for |
|
... |
property name /return value pairs, followed by |
Since: 3.0
GtkTextDirection
gtk_style_context_get_direction (GtkStyleContext *context
);
gtk_style_context_get_direction
has been deprecated since version 3.8 and should not be used in newly-written code.
Use gtk_style_context_get_state()
and
check for GTK_STATE_FLAG_DIR_LTR and
GTK_STATE_FLAG_DIR_RTL instead.
Returns the widget direction used for rendering.
Since: 3.0
GtkJunctionSides
gtk_style_context_get_junction_sides (GtkStyleContext *context
);
Returns the sides where rendered elements connect visually with others.
Since: 3.0
GtkStyleContext *
gtk_style_context_get_parent (GtkStyleContext *context
);
Gets the parent context set via gtk_style_context_set_parent()
.
See that function for details.
Since: 3.4
const GtkWidgetPath *
gtk_style_context_get_path (GtkStyleContext *context
);
Returns the widget path used for style matching.
Since: 3.0
void gtk_style_context_get_property (GtkStyleContext *context
,const gchar *property
,GtkStateFlags state
,GValue *value
);
Gets a style property from context
for the given state.
Note that not all CSS properties that are supported by GTK+ can be retrieved in this way, since they may not be representable as GValue. GTK+ defines macros for a number of properties that can be used with this function.
Note that passing a state other than the current state of context
is not recommended unless the style context has been saved with
gtk_style_context_save()
.
When value
is no longer needed, g_value_unset()
must be called
to free any allocated memory.
context |
||
property |
style property name |
|
state |
state to retrieve the property value for |
|
value |
return location for the style property value. |
[out][transfer full] |
Since: 3.0
GdkScreen *
gtk_style_context_get_screen (GtkStyleContext *context
);
Returns the GdkScreen to which context
is attached.
GdkFrameClock *
gtk_style_context_get_frame_clock (GtkStyleContext *context
);
Returns the GdkFrameClock to which context
is attached.
a GdkFrameClock, or NULL
if context
does not have an attached frame clock.
[nullable][transfer none]
Since: 3.8
GtkStateFlags
gtk_style_context_get_state (GtkStyleContext *context
);
Returns the state used for style matching.
This method should only be used to retrieve the GtkStateFlags
to pass to GtkStyleContext methods, like gtk_style_context_get_padding()
.
If you need to retrieve the current state of a GtkWidget, use
gtk_widget_get_state_flags()
.
Since: 3.0
void gtk_style_context_get_style (GtkStyleContext *context
,...
);
Retrieves several widget style properties from context
according to the
current style.
Since: 3.0
void gtk_style_context_get_style_property (GtkStyleContext *context
,const gchar *property_name
,GValue *value
);
Gets the value for a widget style property.
When value
is no longer needed, g_value_unset()
must be called
to free any allocated memory.
void gtk_style_context_get_style_valist (GtkStyleContext *context
,va_list args
);
Retrieves several widget style properties from context
according to the
current style.
Since: 3.0
void gtk_style_context_get_valist (GtkStyleContext *context
,GtkStateFlags state
,va_list args
);
Retrieves several style property values from context
for a given state.
See gtk_style_context_get_property()
for details.
context |
||
state |
state to retrieve the property values for |
|
args |
va_list of property name/return location pairs, followed by |
Since: 3.0
GtkCssSection * gtk_style_context_get_section (GtkStyleContext *context
,const gchar *property
);
Queries the location in the CSS where property
was defined for the
current context
. Note that the state to be queried is taken from
gtk_style_context_get_state()
.
If the location is not available, NULL
will be returned. The
location might not be available for various reasons, such as the
property being overridden, property
not naming a supported CSS
property or tracking of definitions being disabled for performance
reasons.
Shorthand CSS properties cannot be queried for a location and will
always return NULL
.
void gtk_style_context_get_color (GtkStyleContext *context
,GtkStateFlags state
,GdkRGBA *color
);
Gets the foreground color for a given state.
See gtk_style_context_get_property()
and
GTK_STYLE_PROPERTY_COLOR for details.
context |
||
state |
state to retrieve the color for |
|
color |
return value for the foreground color. |
[out] |
Since: 3.0
void gtk_style_context_get_background_color (GtkStyleContext *context
,GtkStateFlags state
,GdkRGBA *color
);
gtk_style_context_get_background_color
has been deprecated since version 3.16 and should not be used in newly-written code.
Use gtk_render_background()
instead.
Gets the background color for a given state.
This function is far less useful than it seems, and it should not be used in newly written code. CSS has no concept of "background color", as a background can be an image, or a gradient, or any other pattern including solid colors.
The only reason why you would call gtk_style_context_get_background_color()
is
to use the returned value to draw the background with it; the correct way to
achieve this result is to use gtk_render_background()
instead, along with CSS
style classes to modify the color to be rendered.
context |
||
state |
state to retrieve the color for |
|
color |
return value for the background color. |
[out] |
Since: 3.0
void gtk_style_context_get_border_color (GtkStyleContext *context
,GtkStateFlags state
,GdkRGBA *color
);
gtk_style_context_get_border_color
has been deprecated since version 3.16 and should not be used in newly-written code.
Use gtk_render_frame()
instead.
Gets the border color for a given state.
context |
||
state |
state to retrieve the color for |
|
color |
return value for the border color. |
[out] |
Since: 3.0
void gtk_style_context_get_border (GtkStyleContext *context
,GtkStateFlags state
,GtkBorder *border
);
Gets the border for a given state as a GtkBorder.
See gtk_style_context_get_property()
and
GTK_STYLE_PROPERTY_BORDER_WIDTH for details.
context |
||
state |
state to retrieve the border for |
|
border |
return value for the border settings. |
[out] |
Since: 3.0
void gtk_style_context_get_padding (GtkStyleContext *context
,GtkStateFlags state
,GtkBorder *padding
);
Gets the padding for a given state as a GtkBorder.
See gtk_style_context_get()
and GTK_STYLE_PROPERTY_PADDING
for details.
context |
||
state |
state to retrieve the padding for |
|
padding |
return value for the padding settings. |
[out] |
Since: 3.0
void gtk_style_context_get_margin (GtkStyleContext *context
,GtkStateFlags state
,GtkBorder *margin
);
Gets the margin for a given state as a GtkBorder.
See gtk_style_property_get()
and GTK_STYLE_PROPERTY_MARGIN
for details.
context |
||
state |
state to retrieve the border for |
|
margin |
return value for the margin settings. |
[out] |
Since: 3.0
const PangoFontDescription * gtk_style_context_get_font (GtkStyleContext *context
,GtkStateFlags state
);
gtk_style_context_get_font
has been deprecated since version 3.8 and should not be used in newly-written code.
Use gtk_style_context_get()
for "font" or
subproperties instead.
Returns the font description for a given state. The returned object is const and will remain valid until the “changed” signal happens.
the PangoFontDescription for the given state. This object is owned by GTK+ and should not be freed.
[transfer none]
Since: 3.0
void
gtk_style_context_invalidate (GtkStyleContext *context
);
gtk_style_context_invalidate
has been deprecated since version 3.12 and should not be used in newly-written code.
Style contexts are invalidated automatically.
Invalidates context
style information, so it will be reconstructed
again. It is useful if you modify the context
and need the new
information immediately.
Since: 3.0
gboolean gtk_style_context_state_is_running (GtkStyleContext *context
,GtkStateType state
,gdouble *progress
);
gtk_style_context_state_is_running
has been deprecated since version 3.6 and should not be used in newly-written code.
This function always returns FALSE
Returns TRUE
if there is a transition animation running for the
current region (see gtk_style_context_push_animatable_region()
).
If progress
is not NULL
, the animation progress will be returned
there, 0.0 means the state is closest to being unset, while 1.0 means
it’s closest to being set. This means transition animation will
run from 0 to 1 when state
is being set and from 1 to 0 when
it’s being unset.
Since: 3.0
gboolean gtk_style_context_lookup_color (GtkStyleContext *context
,const gchar *color_name
,GdkRGBA *color
);
Looks up and resolves a color name in the context
color map.
GtkIconSet * gtk_style_context_lookup_icon_set (GtkStyleContext *context
,const gchar *stock_id
);
gtk_style_context_lookup_icon_set
has been deprecated since version 3.10 and should not be used in newly-written code.
Use gtk_icon_theme_lookup_icon()
instead.
Looks up stock_id
in the icon factories associated to context
and
the default icon factory, returning an icon set if found, otherwise
NULL
.
void gtk_style_context_notify_state_change (GtkStyleContext *context
,GdkWindow *window
,gpointer region_id
,GtkStateType state
,gboolean state_value
);
gtk_style_context_notify_state_change
has been deprecated since version 3.6 and should not be used in newly-written code.
This function does nothing.
Notifies a state change on context
, so if the current style makes use
of transition animations, one will be started so all rendered elements
under region_id
are animated for state state
being set to value
state_value
.
The window
parameter is used in order to invalidate the rendered area
as the animation runs, so make sure it is the same window that is being
rendered on by the gtk_render_*() functions.
If region_id
is NULL
, all rendered elements using context
will be
affected by this state transition.
As a practical example, a GtkButton notifying a state transition on the prelight state:
1 2 3 4 5 |
gtk_style_context_notify_state_change (context, gtk_widget_get_window (widget), NULL, GTK_STATE_PRELIGHT, button->in_button); |
Can be handled in the CSS file like this:
1 2 3 4 5 6 7 8 |
GtkButton { background-color: #f00 } GtkButton:hover { background-color: #fff; transition: 200ms linear } |
This combination will animate the button background from red to white if a pointer enters the button, and back to red if the pointer leaves the button.
Note that state
is used when finding the transition parameters, which
is why the style places the transition under the :hover pseudo-class.
context |
||
window |
||
region_id |
animatable region to notify on, or |
[allow-none] |
state |
state to trigger transition for |
|
state_value |
|
Since: 3.0
void
gtk_style_context_pop_animatable_region
(GtkStyleContext *context
);
gtk_style_context_pop_animatable_region
has been deprecated since version 3.6 and should not be used in newly-written code.
This function does nothing.
Pops an animatable region from context
.
See gtk_style_context_push_animatable_region()
.
Since: 3.0
void gtk_style_context_push_animatable_region (GtkStyleContext *context
,gpointer region_id
);
gtk_style_context_push_animatable_region
has been deprecated since version 3.6 and should not be used in newly-written code.
This function does nothing.
Pushes an animatable region, so all further gtk_render_*() calls between
this call and the following gtk_style_context_pop_animatable_region()
will potentially show transition animations for this region if
gtk_style_context_notify_state_change()
is called for a given state,
and the current theme/style defines transition animations for state
changes.
The region_id
used must be unique in context
so the themes
can uniquely identify rendered elements subject to a state transition.
Since: 3.0
void gtk_style_context_cancel_animations (GtkStyleContext *context
,gpointer region_id
);
gtk_style_context_cancel_animations
has been deprecated since version 3.6 and should not be used in newly-written code.
This function does nothing.
Stops all running animations for region_id
and all animatable
regions underneath.
A NULL
region_id
will stop all ongoing animations in context
,
when dealing with a GtkStyleContext obtained through
gtk_widget_get_style_context()
, this is normally done for you
in all circumstances you would expect all widget to be stopped,
so this should be only used in complex widgets with different
animatable regions.
context |
||
region_id |
animatable region to stop, or |
[allow-none] |
Since: 3.0
void gtk_style_context_scroll_animations (GtkStyleContext *context
,GdkWindow *window
,gint dx
,gint dy
);
gtk_style_context_scroll_animations
has been deprecated since version 3.6 and should not be used in newly-written code.
This function does nothing.
This function is analogous to gdk_window_scroll()
, and
should be called together with it so the invalidation
areas for any ongoing animation are scrolled together
with it.
context |
||
window |
a GdkWindow used previously in
|
|
dx |
Amount to scroll in the X axis |
|
dy |
Amount to scroll in the Y axis |
Since: 3.0
void gtk_style_context_remove_provider (GtkStyleContext *context
,GtkStyleProvider *provider
);
Removes provider
from the style providers list in context
.
Since: 3.0
void gtk_style_context_remove_provider_for_screen (GdkScreen *screen
,GtkStyleProvider *provider
);
Removes provider
from the global style providers list in screen
.
Since: 3.0
void
gtk_style_context_reset_widgets (GdkScreen *screen
);
This function recomputes the styles for all widgets under a particular GdkScreen. This is useful when some global parameter has changed that affects the appearance of all widgets, because when a widget gets a new style, it will both redraw and recompute any cached information about its appearance. As an example, it is used when the color scheme changes in the related GtkSettings object.
Since: 3.0
void gtk_style_context_set_background (GtkStyleContext *context
,GdkWindow *window
);
gtk_style_context_set_background
has been deprecated since version 3.18 and should not be used in newly-written code.
Use gtk_render_background()
instead.
Note that clients still using this function are now responsible
for calling this function again whenever context
is invalidated.
Sets the background of window
to the background pattern or
color specified in context
for its current state.
Since: 3.0
void
gtk_style_context_restore (GtkStyleContext *context
);
Restores context
state to a previous stage.
See gtk_style_context_save()
.
Since: 3.0
void
gtk_style_context_save (GtkStyleContext *context
);
Saves the context
state, so temporary modifications done through
gtk_style_context_add_class()
, gtk_style_context_remove_class()
,
gtk_style_context_set_state()
, etc. can quickly be reverted
in one go through gtk_style_context_restore()
.
The matching call to gtk_style_context_restore()
must be done
before GTK returns to the main loop.
Since: 3.0
void gtk_style_context_set_direction (GtkStyleContext *context
,GtkTextDirection direction
);
gtk_style_context_set_direction
has been deprecated since version 3.8 and should not be used in newly-written code.
Use gtk_style_context_set_state()
with
GTK_STATE_FLAG_DIR_LTR and GTK_STATE_FLAG_DIR_RTL
instead.
Sets the reading direction for rendering purposes.
If you are using a GtkStyleContext returned from
gtk_widget_get_style_context()
, you do not need to
call this yourself.
Since: 3.0
void gtk_style_context_set_junction_sides (GtkStyleContext *context
,GtkJunctionSides sides
);
Sets the sides where rendered elements (mostly through
gtk_render_frame()
) will visually connect with other visual elements.
This is merely a hint that may or may not be honored by themes.
Container widgets are expected to set junction hints as appropriate for their children, so it should not normally be necessary to call this function manually.
Since: 3.0
void gtk_style_context_set_parent (GtkStyleContext *context
,GtkStyleContext *parent
);
Sets the parent style context for context
. The parent style
context is used to implement
inheritance
of properties.
If you are using a GtkStyleContext returned from
gtk_widget_get_style_context()
, the parent will be set for you.
Since: 3.4
void gtk_style_context_set_path (GtkStyleContext *context
,GtkWidgetPath *path
);
Sets the GtkWidgetPath used for style matching. As a consequence, the style will be regenerated to match the new given path.
If you are using a GtkStyleContext returned from
gtk_widget_get_style_context()
, you do not need to call
this yourself.
Since: 3.0
void gtk_style_context_add_class (GtkStyleContext *context
,const gchar *class_name
);
Adds a style class to context
, so posterior calls to
gtk_style_context_get()
or any of the gtk_render_*()
functions will make use of this new class for styling.
In the CSS file format, a GtkEntry defining a “search” class, would be matched by:
1 |
entry.search { ... } |
While any widget defining a “search” class would be matched by:
1 |
.search { ... } |
Since: 3.0
void gtk_style_context_remove_class (GtkStyleContext *context
,const gchar *class_name
);
Removes class_name
from context
.
Since: 3.0
gboolean gtk_style_context_has_class (GtkStyleContext *context
,const gchar *class_name
);
Returns TRUE
if context
currently has defined the
given class name.
Since: 3.0
GList *
gtk_style_context_list_classes (GtkStyleContext *context
);
Returns the list of classes currently defined in context
.
a GList of
strings with the currently defined classes. The contents
of the list are owned by GTK+, but you must free the list
itself with g_list_free()
when you are done with it.
[transfer container][element-type utf8]
Since: 3.0
void gtk_style_context_add_region (GtkStyleContext *context
,const gchar *region_name
,GtkRegionFlags flags
);
gtk_style_context_add_region
has been deprecated since version 3.14 and should not be used in newly-written code.
Adds a region to context
, so posterior calls to
gtk_style_context_get()
or any of the gtk_render_*()
functions will make use of this new region for styling.
In the CSS file format, a GtkTreeView defining a “row” region, would be matched by:
1 |
GtkTreeView row { ... } |
Pseudo-classes are used for matching flags
, so the two
following rules:
1 2 |
GtkTreeView row:nth-child(even) { ... } GtkTreeView row:nth-child(odd) { ... } |
would apply to even and odd rows, respectively.
Region names must only contain lowercase letters and “-”, starting always with a lowercase letter.
Since: 3.0
void gtk_style_context_remove_region (GtkStyleContext *context
,const gchar *region_name
);
gtk_style_context_remove_region
has been deprecated since version 3.14 and should not be used in newly-written code.
Removes a region from context
.
Since: 3.0
gboolean gtk_style_context_has_region (GtkStyleContext *context
,const gchar *region_name
,GtkRegionFlags *flags_return
);
gtk_style_context_has_region
has been deprecated since version 3.14 and should not be used in newly-written code.
Returns TRUE
if context
has the region defined.
If flags_return
is not NULL
, it is set to the flags
affecting the region.
context |
||
region_name |
a region name |
|
flags_return |
return location for region flags. |
[out][allow-none] |
Since: 3.0
GList *
gtk_style_context_list_regions (GtkStyleContext *context
);
gtk_style_context_list_regions
has been deprecated since version 3.14 and should not be used in newly-written code.
Returns the list of regions currently defined in context
.
a GList of
strings with the currently defined regions. The contents
of the list are owned by GTK+, but you must free the list
itself with g_list_free()
when you are done with it.
[transfer container][element-type utf8]
Since: 3.0
void gtk_style_context_set_screen (GtkStyleContext *context
,GdkScreen *screen
);
Attaches context
to the given screen.
The screen is used to add style information from “global” style providers, such as the screens GtkSettings instance.
If you are using a GtkStyleContext returned from
gtk_widget_get_style_context()
, you do not need to
call this yourself.
Since: 3.0
void gtk_style_context_set_frame_clock (GtkStyleContext *context
,GdkFrameClock *frame_clock
);
Attaches context
to the given frame clock.
The frame clock is used for the timing of animations.
If you are using a GtkStyleContext returned from
gtk_widget_get_style_context()
, you do not need to
call this yourself.
Since: 3.8
void gtk_style_context_set_state (GtkStyleContext *context
,GtkStateFlags flags
);
Sets the state to be used for style matching.
Since: 3.0
void gtk_style_context_set_scale (GtkStyleContext *context
,gint scale
);
Sets the scale to use when getting image assets for the style.
Since: 3.10
gint
gtk_style_context_get_scale (GtkStyleContext *context
);
Returns the scale used for assets.
Since: 3.10
char * gtk_style_context_to_string (GtkStyleContext *context
,GtkStyleContextPrintFlags flags
);
Converts the style context into a string representation.
The string representation always includes information about
the name, state, id, visibility and style classes of the CSS
node that is backing context
. Depending on the flags, more
information may be included.
This function is intended for testing and debugging of the CSS implementation in GTK+. There are no guarantees about the format of the returned string, it may change.
Since: 3.20
GtkBorder *
gtk_border_new (void
);
Allocates a new GtkBorder and initializes its elements to zero.
Since: 2.14
void gtk_render_arrow (GtkStyleContext *context
,cairo_t *cr
,gdouble angle
,gdouble x
,gdouble y
,gdouble size
);
Renders an arrow pointing to angle
.
Typical arrow rendering at 0, 1⁄2 π;, π; and 3⁄2 π:
Since: 3.0
void gtk_render_background (GtkStyleContext *context
,cairo_t *cr
,gdouble x
,gdouble y
,gdouble width
,gdouble height
);
Renders the background of an element.
Typical background rendering, showing the effect of
background-image
, border-width
and border-radius
:
context |
||
cr |
a cairo_t |
|
x |
X origin of the rectangle |
|
y |
Y origin of the rectangle |
|
width |
rectangle width |
|
height |
rectangle height |
Since: 3.0.
void gtk_render_background_get_clip (GtkStyleContext *context
,gdouble x
,gdouble y
,gdouble width
,gdouble height
,GdkRectangle *out_clip
);
Returns the area that will be affected (i.e. drawn to) when
calling gtk_render_background()
for the given context
and
rectangle.
context |
||
x |
X origin of the rectangle |
|
y |
Y origin of the rectangle |
|
width |
rectangle width |
|
height |
rectangle height |
|
out_clip |
return location for the clip. |
[out] |
Since: 3.20
void gtk_render_check (GtkStyleContext *context
,cairo_t *cr
,gdouble x
,gdouble y
,gdouble width
,gdouble height
);
Renders a checkmark (as in a GtkCheckButton).
The GTK_STATE_FLAG_CHECKED
state determines whether the check is
on or off, and GTK_STATE_FLAG_INCONSISTENT
determines whether it
should be marked as undefined.
Typical checkmark rendering:
context |
||
cr |
a cairo_t |
|
x |
X origin of the rectangle |
|
y |
Y origin of the rectangle |
|
width |
rectangle width |
|
height |
rectangle height |
Since: 3.0
void gtk_render_expander (GtkStyleContext *context
,cairo_t *cr
,gdouble x
,gdouble y
,gdouble width
,gdouble height
);
Renders an expander (as used in GtkTreeView and GtkExpander) in the area
defined by x
, y
, width
, height
. The state GTK_STATE_FLAG_CHECKED
determines whether the expander is collapsed or expanded.
Typical expander rendering:
context |
||
cr |
a cairo_t |
|
x |
X origin of the rectangle |
|
y |
Y origin of the rectangle |
|
width |
rectangle width |
|
height |
rectangle height |
Since: 3.0
void gtk_render_extension (GtkStyleContext *context
,cairo_t *cr
,gdouble x
,gdouble y
,gdouble width
,gdouble height
,GtkPositionType gap_side
);
Renders a extension (as in a GtkNotebook tab) in the rectangle
defined by x
, y
, width
, height
. The side where the extension
connects to is defined by gap_side
.
Typical extension rendering:
context |
||
cr |
a cairo_t |
|
x |
X origin of the rectangle |
|
y |
Y origin of the rectangle |
|
width |
rectangle width |
|
height |
rectangle height |
|
gap_side |
side where the gap is |
Since: 3.0
void gtk_render_focus (GtkStyleContext *context
,cairo_t *cr
,gdouble x
,gdouble y
,gdouble width
,gdouble height
);
Renders a focus indicator on the rectangle determined by x
, y
, width
, height
.
Typical focus rendering:
context |
||
cr |
a cairo_t |
|
x |
X origin of the rectangle |
|
y |
Y origin of the rectangle |
|
width |
rectangle width |
|
height |
rectangle height |
Since: 3.0
void gtk_render_frame (GtkStyleContext *context
,cairo_t *cr
,gdouble x
,gdouble y
,gdouble width
,gdouble height
);
Renders a frame around the rectangle defined by x
, y
, width
, height
.
Examples of frame rendering, showing the effect of border-image
,
border-color
, border-width
, border-radius
and junctions:
context |
||
cr |
a cairo_t |
|
x |
X origin of the rectangle |
|
y |
Y origin of the rectangle |
|
width |
rectangle width |
|
height |
rectangle height |
Since: 3.0
void gtk_render_frame_gap (GtkStyleContext *context
,cairo_t *cr
,gdouble x
,gdouble y
,gdouble width
,gdouble height
,GtkPositionType gap_side
,gdouble xy0_gap
,gdouble xy1_gap
);
Renders a frame around the rectangle defined by (x
, y
, width
, height
),
leaving a gap on one side. xy0_gap
and xy1_gap
will mean X coordinates
for GTK_POS_TOP
and GTK_POS_BOTTOM
gap sides, and Y coordinates for
GTK_POS_LEFT
and GTK_POS_RIGHT
.
Typical rendering of a frame with a gap:
context |
||
cr |
a cairo_t |
|
x |
X origin of the rectangle |
|
y |
Y origin of the rectangle |
|
width |
rectangle width |
|
height |
rectangle height |
|
gap_side |
side where the gap is |
|
xy0_gap |
initial coordinate (X or Y depending on |
|
xy1_gap |
end coordinate (X or Y depending on |
Since: 3.0
void gtk_render_handle (GtkStyleContext *context
,cairo_t *cr
,gdouble x
,gdouble y
,gdouble width
,gdouble height
);
Renders a handle (as in GtkHandleBox, GtkPaned and
GtkWindow’s resize grip), in the rectangle
determined by x
, y
, width
, height
.
Handles rendered for the paned and grip classes:
context |
||
cr |
a cairo_t |
|
x |
X origin of the rectangle |
|
y |
Y origin of the rectangle |
|
width |
rectangle width |
|
height |
rectangle height |
Since: 3.0
void gtk_render_layout (GtkStyleContext *context
,cairo_t *cr
,gdouble x
,gdouble y
,PangoLayout *layout
);
Renders layout
on the coordinates x
, y
Since: 3.0
void gtk_render_line (GtkStyleContext *context
,cairo_t *cr
,gdouble x0
,gdouble y0
,gdouble x1
,gdouble y1
);
Renders a line from (x0, y0) to (x1, y1).
context |
||
cr |
a cairo_t |
|
x0 |
X coordinate for the origin of the line |
|
y0 |
Y coordinate for the origin of the line |
|
x1 |
X coordinate for the end of the line |
|
y1 |
Y coordinate for the end of the line |
Since: 3.0
void gtk_render_option (GtkStyleContext *context
,cairo_t *cr
,gdouble x
,gdouble y
,gdouble width
,gdouble height
);
Renders an option mark (as in a GtkRadioButton), the GTK_STATE_FLAG_CHECKED
state will determine whether the option is on or off, and
GTK_STATE_FLAG_INCONSISTENT
whether it should be marked as undefined.
Typical option mark rendering:
context |
||
cr |
a cairo_t |
|
x |
X origin of the rectangle |
|
y |
Y origin of the rectangle |
|
width |
rectangle width |
|
height |
rectangle height |
Since: 3.0
void gtk_render_slider (GtkStyleContext *context
,cairo_t *cr
,gdouble x
,gdouble y
,gdouble width
,gdouble height
,GtkOrientation orientation
);
Renders a slider (as in GtkScale) in the rectangle defined by x
, y
,
width
, height
. orientation
defines whether the slider is vertical
or horizontal.
Typical slider rendering:
context |
||
cr |
a cairo_t |
|
x |
X origin of the rectangle |
|
y |
Y origin of the rectangle |
|
width |
rectangle width |
|
height |
rectangle height |
|
orientation |
orientation of the slider |
Since: 3.0
void gtk_render_activity (GtkStyleContext *context
,cairo_t *cr
,gdouble x
,gdouble y
,gdouble width
,gdouble height
);
Renders an activity indicator (such as in GtkSpinner).
The state GTK_STATE_FLAG_CHECKED
determines whether there is
activity going on.
context |
||
cr |
a cairo_t |
|
x |
X origin of the rectangle |
|
y |
Y origin of the rectangle |
|
width |
rectangle width |
|
height |
rectangle height |
Since: 3.0
GdkPixbuf * gtk_render_icon_pixbuf (GtkStyleContext *context
,const GtkIconSource *source
,GtkIconSize size
);
gtk_render_icon_pixbuf
has been deprecated since version 3.10 and should not be used in newly-written code.
Use gtk_icon_theme_load_icon()
instead.
Renders the icon specified by source
at the given size
, returning the result
in a pixbuf.
context |
||
source |
the GtkIconSource specifying the icon to render |
|
size |
the size (GtkIconSize) to render the icon at.
A size of |
[type int] |
Since: 3.0
void gtk_render_icon_surface (GtkStyleContext *context
,cairo_t *cr
,cairo_surface_t *surface
,gdouble x
,gdouble y
);
Renders the icon in surface
at the specified x
and y
coordinates.
context |
||
cr |
a cairo_t |
|
surface |
a cairo_surface_t containing the icon to draw |
|
x |
X position for the |
|
y |
Y position for the |
Since: 3.10
void gtk_render_icon (GtkStyleContext *context
,cairo_t *cr
,GdkPixbuf *pixbuf
,gdouble x
,gdouble y
);
Renders the icon in pixbuf
at the specified x
and y
coordinates.
This function will render the icon in pixbuf
at exactly its size,
regardless of scaling factors, which may not be appropriate when
drawing on displays with high pixel densities.
You probably want to use gtk_render_icon_surface()
instead, if you
already have a Cairo surface.
Since: 3.2
void gtk_render_insertion_cursor (GtkStyleContext *context
,cairo_t *cr
,gdouble x
,gdouble y
,PangoLayout *layout
,int index
,PangoDirection direction
);
Draws a text caret on cr
at the specified index of layout
.
context |
||
cr |
a cairo_t |
|
x |
X origin |
|
y |
Y origin |
|
layout |
the PangoLayout of the text |
|
index |
the index in the PangoLayout |
|
direction |
the PangoDirection of the text |
Since: 3.4
#define GTK_STYLE_PROPERTY_BACKGROUND_COLOR "background-color"
A property holding the background color of rendered elements as a GdkRGBA.
#define GTK_STYLE_PROPERTY_COLOR "color"
A property holding the foreground color of rendered elements as a GdkRGBA.
#define GTK_STYLE_PROPERTY_FONT "font"
A property holding the font properties used when rendering text as a PangoFontDescription.
#define GTK_STYLE_PROPERTY_MARGIN "margin"
A property holding the rendered element’s margin as a GtkBorder. The margin is defined as the spacing between the border of the element and its surrounding elements. It is external to GtkWidget's size allocations, and the most external spacing property of the padding/border/margin series.
#define GTK_STYLE_PROPERTY_PADDING "padding"
A property holding the rendered element’s padding as a GtkBorder. The padding is defined as the spacing between the inner part of the element border and its child. It’s the innermost spacing property of the padding/border/margin series.
#define GTK_STYLE_PROPERTY_BORDER_WIDTH "border-width"
A property holding the rendered element’s border width in pixels as a GtkBorder. The border is the intermediary spacing property of the padding/border/margin series.
gtk_render_frame() uses this property to find out the frame line width, so GtkWidgets rendering frames may need to add up this padding when requesting size
#define GTK_STYLE_PROPERTY_BORDER_RADIUS "border-radius"
A property holding the rendered element’s border radius in pixels as a gint.
#define GTK_STYLE_PROPERTY_BORDER_STYLE "border-style"
A property holding the element’s border style as a GtkBorderStyle.
#define GTK_STYLE_PROPERTY_BORDER_COLOR "border-color"
A property holding the element’s border color as a GdkRGBA.
#define GTK_STYLE_PROPERTY_BACKGROUND_IMAGE "background-image"
A property holding the element’s background as a cairo_pattern_t.
Describes how the border of a UI element should be rendered.
|
No visible border |
||
|
A single line segment |
||
|
Looks as if the content is sunken into the canvas |
||
|
Looks as if the content is coming out of the canvas |
||
|
Same as |
||
|
A series of round dots |
||
|
A series of square-ended dashes |
||
|
Two parallel lines with some space between them |
||
|
Looks as if it were carved in the canvas |
||
|
Looks as if it were coming out of the canvas |
#define GTK_STYLE_CLASS_ACCELERATOR "accelerator"
A CSS class to match an accelerator.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_ARROW "arrow"
A CSS class used when rendering an arrow element.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_BACKGROUND "background"
A CSS class to match the window background.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_BOTTOM "bottom"
A CSS class to indicate an area at the bottom of a widget.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_BUTTON "button"
A CSS class to match buttons.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_CALENDAR "calendar"
A CSS class to match calendars.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_CELL "cell"
A CSS class to match content rendered in cell views.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_COMBOBOX_ENTRY "combobox-entry"
A CSS class to match combobox entries.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_CONTEXT_MENU "context-menu"
A CSS class to match context menus.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_CHECK "check"
A CSS class to match check boxes.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_CSD "csd"
A CSS class that gets added to windows which have client-side decorations.
Refer to individual widget documentation for used style classes.
Since: 3.14
#define GTK_STYLE_CLASS_CURSOR_HANDLE "cursor-handle"
A CSS class used when rendering a drag handle for text selection.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_DEFAULT "default"
A CSS class to match the default widget.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_DESTRUCTIVE_ACTION "destructive-action"
A CSS class used when an action (usually a button) is one that is expected to remove or destroy something visible to the user.
Refer to individual widget documentation for used style classes.
Since: 3.12
#define GTK_STYLE_CLASS_DIM_LABEL "dim-label"
A CSS class to match dimmed labels.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_DND "dnd"
A CSS class for a drag-and-drop indicator.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_DOCK "dock"
A CSS class defining a dock area.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_ENTRY "entry"
A CSS class to match text entries.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_ERROR "error"
A CSS class for an area displaying an error message, such as those in infobars.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_EXPANDER "expander"
A CSS class defining an expander, such as those in treeviews.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_FRAME "frame"
A CSS class defining a frame delimiting content, such as GtkFrame or the scrolled window frame around the scrollable area.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_FLAT "flat"
A CSS class that is added when widgets that usually have a frame or border (like buttons or entries) should appear without it.
Refer to individual widget documentation for used style classes.
Since: 3.14
#define GTK_STYLE_CLASS_GRIP "grip"
A CSS class defining a resize grip.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_HEADER "header"
A CSS class to match a header element.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_HIGHLIGHT "highlight"
A CSS class defining a highlighted area, such as headings in assistants and calendars.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_HORIZONTAL "horizontal"
A CSS class for horizontally layered widgets.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_IMAGE "image"
A CSS class defining an image, such as the icon in an entry.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_INFO "info"
A CSS class for an area displaying an informational message, such as those in infobars.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_INLINE_TOOLBAR "inline-toolbar"
A CSS class to match inline toolbars.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_INSERTION_CURSOR "insertion-cursor"
A CSS class used when rendering a drag handle for the insertion cursor position.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_LABEL "label"
A CSS class to match labels.
Refer to individual widget documentation for used style classes.
Since: 3.16
#define GTK_STYLE_CLASS_LEFT "left"
A CSS class to indicate an area at the left of a widget.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_LEVEL_BAR "level-bar"
A CSS class used when rendering a level indicator, such as a battery charge level, or a password strength.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_LINKED "linked"
A CSS class to match a linked area, such as a box containing buttons belonging to the same control.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_LIST "list"
A CSS class to match lists.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_LIST_ROW "list-row"
A CSS class to match list rows.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_MARK "mark"
A CSS class defining marks in a widget, such as in scales.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_MENU "menu"
A CSS class to match menus.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_MENUBAR "menubar"
A CSS class to menubars.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_MENUITEM "menuitem"
A CSS class to match menu items.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_MESSAGE_DIALOG "message-dialog"
A CSS class that is added to message dialogs.
Refer to individual widget documentation for used style classes.
Since: 3.14
#define GTK_STYLE_CLASS_MONOSPACE "monospace"
A CSS class that is added to text view that should use a monospace font.
Refer to individual widget documentation for used style classes.
Since: 3.16
#define GTK_STYLE_CLASS_NEEDS_ATTENTION "needs-attention"
A CSS class used when an element needs the user attention, for instance a button in a stack switcher corresponding to a hidden page that changed state.
Refer to individual widget documentation for used style classes.
Since: 3.12
#define GTK_STYLE_CLASS_NOTEBOOK "notebook"
A CSS class defining a notebook.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_OSD "osd"
A CSS class used when rendering an OSD (On Screen Display) element, on top of another container.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_OVERSHOOT "overshoot"
A CSS class that is added on the visual hints that happen when scrolling is attempted past the limits of a scrollable area.
Refer to individual widget documentation for used style classes.
Since: 3.14
#define GTK_STYLE_CLASS_PANE_SEPARATOR "pane-separator"
A CSS class for a pane separator, such as those in GtkPaned.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_PAPER "paper"
A CSS class that is added to areas that should look like paper.
This is used in print previews and themes are encouraged to style it as black text on white background.
Refer to individual widget documentation for used style classes.
Since: 3.16
#define GTK_STYLE_CLASS_POPUP "popup"
A CSS class that is added to the toplevel windows used for menus.
Refer to individual widget documentation for used style classes.
Since: 3.14
#define GTK_STYLE_CLASS_POPOVER "popover"
A CSS class that matches popovers.
Refer to individual widget documentation for used style classes.
Since: 3.14
#define GTK_STYLE_CLASS_PRIMARY_TOOLBAR "primary-toolbar"
A CSS class to match primary toolbars.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_PROGRESSBAR "progressbar"
A CSS class to use when rendering activity as a progressbar.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_PULSE "pulse"
A CSS class to use when rendering a pulse in an indeterminate progress bar.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_QUESTION "question"
A CSS class for an area displaying a question to the user, such as those in infobars.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_RADIO "radio"
A CSS class to match radio buttons.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_RAISED "raised"
A CSS class to match a raised control, such as a raised button on a toolbar.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_READ_ONLY "read-only"
A CSS class used to indicate a read-only state.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_RIGHT "right"
A CSS class to indicate an area at the right of a widget.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_RUBBERBAND "rubberband"
A CSS class to match the rubberband selection rectangle.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_SCALE "scale"
A CSS class to match scale widgets.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE "scale-has-marks-above"
A CSS class to match scale widgets with marks attached, all the marks are above for horizontal GtkScale. left for vertical GtkScale.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW "scale-has-marks-below"
A CSS class to match scale widgets with marks attached, all the marks are below for horizontal GtkScale, right for vertical GtkScale.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_SCROLLBAR "scrollbar"
A CSS class to match scrollbars.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_SCROLLBARS_JUNCTION "scrollbars-junction"
A CSS class to match the junction area between an horizontal and vertical scrollbar, when they’re both shown.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_SEPARATOR "separator"
A CSS class for a separator.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_SIDEBAR "sidebar"
A CSS class defining a sidebar, such as the left side in a file chooser.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_SLIDER "slider"
A CSS class to match sliders.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_SPINBUTTON "spinbutton"
A CSS class defining an spinbutton.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_SPINNER "spinner"
A CSS class to use when rendering activity as a “spinner”.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_STATUSBAR "statusbar"
A CSS class to match statusbars.
Refer to individual widget documentation for used style classes.
Since: 3.16
#define GTK_STYLE_CLASS_SUBTITLE "subtitle"
A CSS class used for the subtitle label in a titlebar in a toplevel window.
Refer to individual widget documentation for used style classes.
Since: 3.14
#define GTK_STYLE_CLASS_SUGGESTED_ACTION "suggested-action"
A CSS class used when an action (usually a button) is the primary suggested action in a specific context.
Refer to individual widget documentation for used style classes.
Since: 3.12
#define GTK_STYLE_CLASS_TITLE "title"
A CSS class used for the title label in a titlebar in a toplevel window.
Refer to individual widget documentation for used style classes.
Since: 3.14
#define GTK_STYLE_CLASS_TITLEBAR "titlebar"
A CSS class used when rendering a titlebar in a toplevel window.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_TOOLBAR "toolbar"
A CSS class to match toolbars.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_TOOLTIP "tooltip"
A CSS class to match tooltip windows.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_TOUCH_SELECTION "touch-selection"
A CSS class for touch selection popups on entries and text views.
Refer to individual widget documentation for used style classes.
Since: 3.16
#define GTK_STYLE_CLASS_TOP "top"
A CSS class to indicate an area at the top of a widget.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_TROUGH "trough"
A CSS class to match troughs, as in scrollbars and progressbars.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_UNDERSHOOT "undershoot"
A CSS class that is added on the visual hints that happen where content is 'scrolled off' and can be made visible by scrolling.
Refer to individual widget documentation for used style classes.
Since: 3.16
#define GTK_STYLE_CLASS_VERTICAL "vertical"
A CSS class for vertically layered widgets.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_VIEW "view"
A CSS class defining a view, such as iconviews or treeviews.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_WARNING "warning"
A CSS class for an area displaying a warning message, such as those in infobars.
Refer to individual widget documentation for used style classes.
#define GTK_STYLE_CLASS_WIDE "wide"
A CSS class to indicate that a UI element should be 'wide'. Used by GtkPaned.
Refer to individual widget documentation for used style classes.
Since: 3.16
#define GTK_STYLE_REGION_COLUMN "column"
GTK_STYLE_REGION_COLUMN
has been deprecated since version 3.20 and should not be used in newly-written code.
Don't use regions.
A widget region name to define a treeview column.
#define GTK_STYLE_REGION_COLUMN_HEADER "column-header"
GTK_STYLE_REGION_COLUMN_HEADER
has been deprecated since version 3.20 and should not be used in newly-written code.
Don't use regions.
A widget region name to define a treeview column header.
#define GTK_STYLE_REGION_ROW "row"
GTK_STYLE_REGION_ROW
has been deprecated since version 3.20 and should not be used in newly-written code.
Don't use regions.
A widget region name to define a treeview row.
#define GTK_STYLE_REGION_TAB "tab"
GTK_STYLE_REGION_TAB
has been deprecated since version 3.20 and should not be used in newly-written code.
Don't use regions.
A widget region name to define a notebook tab.
Describes how a rendered element connects to adjacent elements.
|
No junctions. |
||
|
Element connects on the top-left corner. |
||
|
Element connects on the top-right corner. |
||
|
Element connects on the bottom-left corner. |
||
|
Element connects on the bottom-right corner. |
||
|
Element connects on the top side. |
||
|
Element connects on the bottom side. |
||
|
Element connects on the left side. |
||
|
Element connects on the right side. |
Describes a region within a widget.
Flags that modify the behavior of gtk_style_context_to_string()
.
New values may be added to this enumeration.
“direction”
property“direction” GtkTextDirection
Text direction.
Flags: Read / Write
Default value: GTK_TEXT_DIR_LTR
“paint-clock”
property“paint-clock” GdkFrameClock *
The associated GdkFrameClock.
Flags: Read / Write
“parent”
property“parent” GtkStyleContext *
Sets or gets the style context’s parent. See gtk_style_context_set_parent()
for details.
Flags: Read / Write
Since: 3.4
“changed”
signalvoid user_function (GtkStyleContext *arg0, gpointer user_data)
The ::changed signal is emitted when there is a change in the GtkStyleContext.
For a GtkStyleContext returned by gtk_widget_get_style_context()
, the
“style-updated” signal/vfunc might be more convenient to use.
This signal is useful when using the theming layer standalone.
Flags: Run First
Since: 3.0


| | | Compiling...
Signature.cpp
Signature.cpp(296) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(452) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(474) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(475) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(477) : warning C4995: 'strcat': name was marked as #pragma deprecated
Signature.cpp(490) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(498) : warning C4995: 'lstrcpy': name was marked as #pragma deprecated
Signature.cpp(498) : warning C4995: 'lstrcpyA': name was marked as #pragma deprecated
Signature.cpp(670) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(1669) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(1878) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(1882) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(1888) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(2087) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(2477) : warning C4800: 'unsigned char *' : forcing value to bool 'true' or 'false' (performance warning)
Signature.cpp(2600) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(2602) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(2604) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(2625) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(2628) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(2629) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(2666) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(2694) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(2730) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(2733) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(2734) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(2772) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(2800) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(3140) : warning C4101: 'guidStr' : unreferenced local variable
Signature.cpp(3136) : warning C4101: 'sigGuid' : unreferenced local variable
Signature.cpp(3662) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(4909) : warning C4995: 'wcscat': name was marked as #pragma deprecated
Signature.cpp(4910) : warning C4995: 'wcscat': name was marked as #pragma deprecated
Signature.cpp(4913) : warning C4995: 'wcscat': name was marked as #pragma deprecated
Signature.cpp(4960) : warning C4995: 'wcscpy': name was marked as #pragma deprecated
Signature.cpp(5149) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(5185) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(5192) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(6269) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(6565) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(6568) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(6571) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(6577) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(6601) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(6603) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(6605) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(6613) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(6693) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(6701) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(6726) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(6727) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(7233) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(7234) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(7260) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(7266) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(7658) : warning C4995: 'strcat': name was marked as #pragma deprecated
Signature.cpp(7661) : warning C4995: 'strcat': name was marked as #pragma deprecated
Signature.cpp(8089) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(8146) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(8147) : warning C4995: 'strcat': name was marked as #pragma deprecated
Signature.cpp(8149) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(8150) : warning C4995: 'strcat': name was marked as #pragma deprecated
Signature.cpp(8187) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(8295) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(8458) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(8502) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(8532) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(8533) : warning C4995: 'strcat': name was marked as #pragma deprecated
Signature.cpp(8534) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(8535) : warning C4995: 'strcat': name was marked as #pragma deprecated
Signature.cpp(8658) : warning C4101: 'guidStr' : unreferenced local variable
Signature.cpp(8654) : warning C4101: 'sigGuid' : unreferenced local variable
Signature.cpp(9322) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(9751) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(9846) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(11349) : warning C4018: '<' : signed/unsigned mismatch
Signature.cpp(11593) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(11529) : warning C4101: 'hFile' : unreferenced local variable
Signature.cpp(11649) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(11655) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(11617) : warning C4101: 'EncryptedString' : unreferenced local variable
Signature.cpp(11619) : warning C4101: 'bstrEncryptedString' : unreferenced local variable
Signature.cpp(12266) : warning C4018: '<' : signed/unsigned mismatch
Signature.cpp(12301) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12301) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12301) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12303) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12321) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12321) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12321) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12323) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12347) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12347) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12347) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12349) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12366) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12366) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12366) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12368) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12381) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12381) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12381) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12383) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12403) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12403) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12403) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12405) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12430) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12430) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12430) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12432) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12450) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12450) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12450) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12452) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12469) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12469) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12469) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12471) : warning C4288: nonstandard extension used : 'i' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
Signature.cpp(12064) : definition of 'i' used
Signature.cpp(12266) : definition of 'i' ignored
Signature.cpp(12047) : warning C4101: 'EncryptParams' : unreferenced local variable
Signature.cpp(12061) : warning C4101: 'EncryptParamsSize' : unreferenced local variable
Signature.cpp(12873) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(13297) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(13629) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(13848) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(13854) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(13942) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(13943) : warning C4995: 'strcat': name was marked as #pragma deprecated
Signature.cpp(13944) : warning C4995: 'strcat': name was marked as #pragma deprecated
Signature.cpp(14360) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(14396) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(14403) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(14682) : warning C4101: 'guidStr' : unreferenced local variable
Signature.cpp(14678) : warning C4101: 'sigGuid' : unreferenced local variable
Signature.cpp(15009) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(15629) : warning C4101: 'guidStr' : unreferenced local variable
Signature.cpp(15625) : warning C4101: 'sigGuid' : unreferenced local variable
Signature.cpp(16341) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(16544) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(16671) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(17187) : warning C4101: 'guidStr' : unreferenced local variable
Signature.cpp(17183) : warning C4101: 'sigGuid' : unreferenced local variable
Signature.cpp(17582) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(17670) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(17808) : warning C4800: 'unsigned char *' : forcing value to bool 'true' or 'false' (performance warning)
Signature.cpp(17974) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(17979) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(18412) : warning C4101: 'guidStr' : unreferenced local variable
Signature.cpp(18408) : warning C4101: 'sigGuid' : unreferenced local variable
Signature.cpp(19218) : warning C4101: 'pUnknown' : unreferenced local variable
Signature.cpp(19410) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(19452) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(19631) : warning C4995: 'strcpy': name was marked as #pragma deprecated
Signature.cpp(19679) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(19792) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(19830) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(19835) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(19840) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(19845) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(19850) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(19855) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Signature.cpp(19860) : warning C4995: 'sprintf': name was marked as #pragma deprecated
Linking...
Creating library .\ReleaseMinSize/XMLSign.lib and object .\ReleaseMinSize/XMLSign.exp
License.obj : warning LNK4217: locally defined symbol _xmlFree imported in function "public: int __thiscall CLicense::verifyFormSchema(unsigned char *,struct _xmlDoc *,struct _GLOBAL_SIG *)" (?verifyFormSchema@CLicense@@QAEHPAEPAU_xmlDoc@@PAU_GLOBAL_SIG@@@Z)
Performing registration
|


Cross-browser compatible (including legacy browsers) solution for displaying a 'poof' animation on each click or tap (similar to removing icons from a Mac OS X dock).
Old TV turn off animation
This simple jQuery plugin creates a turn off animation of an old TV in the current browser viewport. Its use is meant for situations when the user is logging out or is deleting the content currently on the screen etc. It will create the animation and load the url provided in the href attribute of the targeted element.
Backbone.js social connections
Small Backbone app that displays social connections by given data. Data is represented as a group of people and each person has one or more connections to the group.
#clock
A hexadecimal clock that changes background color depending on the current time - from #000000 to #235959
Chat client & server
React, Redux, Socket.io and Node.js based chat client and server.
Blackjack game
This is a blackjack app built using ES6 classes for game logic which are then rendered using React as a view layer.
Audio player
Audio player built using using React. Some of the features include responsiveness and dynamically reading ID3 tags.


You should see the messenger in the bottom right if you set it up correctly!
Did you know? A group of hedgehogs is called an array.
Did you know?
A group of hedgehogs is called an array.


--- layout: default-about title: About image: feature: boston-map.png ---
The annual FOSS4G conference is the largest global gathering focused on open source geospatial software. FOSS4G brings together developers, users, decision-makers and observers from a broad spectrum of organizations and fields of operation. Through six days of workshops, presentations, discussions, and cooperation, FOSS4G participants create effective and relevant geospatial products, standards, and protocols.
FOSS4G has been held all over the world and draws attendees from over 40 countries. Bonn, Germany hosted the conference in 2016. In 2017, Boston, Massachusetts, USA will host.
The Open Source Geospatial Foundation was founded to support and build the highest-quality open source geospatial software. The foundation's goal is to encourage the use and collaborative development of community-led projects, data development and education. Many projects live under the OSGeo umbrella. http://osgeo.org
The Boston Local Organizing Committee is made up of key members within the Boston (and beyond!) geo community that represents the academic, business, government, and technology sectors. The BLOC also has strong ties to the FOSS4G community and has experience with prior FOSS4G conferences.
Conference Chair
Applied Geographics Inc.
Conference Co-Chair
Applied Geographics Inc.
Workshop Committee Chair
Massachusetts Institute of Technology
Program Committee Chair
Amherst College
Academic Committee Chair
University of Massachusetts, Amherst
Academic Committee Co-Chair
Istanbul Technical University
Volunteer Committee Chair
City of Boston
Extracurricular Committee Chair &
Program Committee
MassGIS, Commonwealth of Massachusetts
Outreach Committee Chair &
Program Committee
MassGIS, Commonwealth of Massachusetts
Organizing Committee
NBT Solutions
Organizing Committee
SiteSpect, Inc.
Program Committee
Boston Planning and Development Agency
Program Committee
Harvard Center for Geographic Analysis
Program & Workshop Committee
Tufts University
Workshop Committee
Harvard Center for Geographic Analysis
Workshop Committee
North River Geographic Systems Inc.
Workshop Committee
Paragon Corporation
Operations Coordinator
FOSS4G Boston 2017
Have a question? Contact us at<EMAIL_ADDRESS>Can I register for workshops without registering for the conference?
Yes, as of May 18th there is the option to register for workshops only.
Is there a volunteer program for FOSS4G?
Yes, the volunteer program and application will be released by June 1st with high priority given to students.
I missed the deadline, can I still send in an abstract?
Unfortunately, the Call for Abstracts has closed and we are no longer accepting submissions. That being said, we are pleased to have received over 420 submissions this year
Are there any discounts for students, accepted speakers, etc.?
Our discount is the Early Bird rate, which ends May 16th. For students, we suggest volunteering when we release the volunteer application.
When will the schedule for FOSS4G be released?
We have recently chosen the program for FOSS4G Boston and creating the schedule is our next step. We will release the schedule as soon as we can and thank you for your patience and understanding. We hope to have it online before June 1st.
What is the deal with the Harpoon Welcome Social?
Due to the size of the venue we have a limited number of tickets (only 400) that are being distributed on a first-come-first-serve basis to Early Bird registrants. As of May 16th there are no more tickets available for this event.
What is JS.Geo?
JS.Geo is a co-located conference that takes place on Tuesday, August 15th. There were a limited number of tickets (only 120) and it is now sold out. JS.Geo overlaps with Tuesday workshops, so we suggest coordinating your workshop selections with the JS.Geo schedule (i.e. taking your workshops on Monday).
Will any meals be provided at FOSS4G?
Lunch will be provided on Wednesday, Thursday, and Friday during the week of the conference. A continental breakfast will be provided on Wednesday and Thursday. Coffee will be provided during breaks and Friday morning.
Where are the workshops located?
Monday and Tuesday workshops are located at Harvard University’s Center for Geographic Analysis (CGA).
What is the closest T (subway) stop to FOSS4G Boston?
The World Trade Center stop on the Silver Line is across the street from the Seaport Hotel and is the closest T stop to the conference. The South Station stop on the Red Line is also walking distance to the conference venue.
Participants at FOSS4G Boston 2017 are expected to act respectfully toward others in accordance with the OSGEO Code of Conduct.
FOSS4G is dedicated to providing a harassment-free conference experience for everyone, regardless of gender, sexual orientation, disability, physical appearance, body size, race, or religion. We do not tolerate harassment of conference participants in any form. All communication should be appropriate for a professional audience including people of many different backgrounds. Sexual language and imagery is not appropriate for any conference venue, including talks. Be kind to others. Do not insult or put down other attendees. Behave professionally. Remember that harassment and sexist, racist, or exclusionary jokes are not appropriate for FOSS4G. Attendees violating these rules may be asked to leave the conference without a refund at the sole discretion of the conference organizers. Thank you for helping make this a welcoming, friendly event for all.
Please read the FOSS4G 2017 Code of Conduct.
If you see or are involved in an incident, please follow the Attendee Procedure for Handling Harassment. Our staff (both BLOC and Volunteers) are trained to follow the Staff Procedure for Handling Harassment.


|
QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.30
|
#include <ql/experimental/catbonds/riskynotional.hpp>
Public Member Functions | |
| DigitalNotionalRisk (const ext::shared_ptr< EventPaymentOffset > &paymentOffset, Real threshold) | |
| void | updatePath (const std::vector< std::pair< Date, Real > > &events, NotionalPath &path) const override |
| Public Member Functions inherited from NotionalRisk | |
| NotionalRisk (ext::shared_ptr< EventPaymentOffset > paymentOffset) | |
| virtual | ~NotionalRisk ()=default |
| virtual void | updatePath (const std::vector< std::pair< Date, Real > > &events, NotionalPath &path) const =0 |
Protected Attributes | |
| Real | threshold_ |
| Protected Attributes inherited from NotionalRisk | |
| ext::shared_ptr< EventPaymentOffset > | paymentOffset_ |
Definition at line 76 of file riskynotional.hpp.
| DigitalNotionalRisk | ( | const ext::shared_ptr< EventPaymentOffset > & | paymentOffset, |
| Real | threshold | ||
| ) |
Definition at line 78 of file riskynotional.hpp.
|
overridevirtual |
Implements NotionalRisk.
Definition at line 50 of file riskynotional.cpp.
|
protected |
Definition at line 86 of file riskynotional.hpp.


Project: Iperf Server - Linux
Description: QuickCalls and response map examples
Category: library
Class: Tested by Spirent
1 QuickCall Library in project://di_iperf_linux
RunTraffic
Run traffic on Iperf for the specified duration. Returns bytes transferred and bit rate for upstream and downstream in a JSON block.
| Argument |
Description |
| server_address |
Address of the Iperf server to send traffic to. ex. <IP_ADDRESS>
|
| run_time |
Time in seconds to run traffic |
| bandwidth |
Target bandwidth in bits/sec. Will run unlimited if left as default. |
StartServer
Starts Iperf server. Returns success/failure status and process ID in JSON block:
Returns status "OK" on success, "error" on failure"
StopServer
Stops Iperf server. Returns success/failure status in JSON block:
Returns status "OK" on success, "error" on failure"
| Argument |
Description |
| pid |
Process ID of process to kill |


--- layout: page title: FH-Potsdam GitHub Members --- {% for member in site.github.organization_members %}


TN LokShaba 2019
Home
(current)
Constituency Wise
Party Wise
Percentage of votes by party
Loading ...


This post will focus on sharing a CAN network between Docker containers. I'm sure there are other use-cases for tunneling CAN over IP, but this is the one that I've run into.
--network host
to use the host's vcan
network(s)
candump | nc
on one side and nc | cansend
on the other side
cangw
as described by
https://www.systec-electronic.com/en/demo/blog/article/news-socketcan-docker-the-solution
to setup pairs of unidirectional IP tunnels
I have experience using cannelloni
and socketcand
. I recommend using
socketcand
for ease-of-use.

Build with
docker build -t socketcand .
On the host, run
docker network create socketcand-shared
docker run -it --rm --network socketcand-shared --name socketcand-server --cap-add NET_ADMIN socketcand
In the container, run
ip link add dev can1 type vcan
ip link set up can1
socketcand --verbose --interface can1 &
candump -L can1
Then again on the host, run
$ docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' socketcand-server
<IP_ADDRESS>
This is how we'll tell what IP address to connect the socketcandcl
client to.
The socketcand
protocol defines a
UDP service discovery mechanism for clients to discover the socketcand
server.
However, the socketcandcl
client does not use this discovery mechanism, so you need to
connect it to the socketcand
server by IP address directly.
On the host, run
export SOCKETCAND_SERVER="$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' socketcand-server)"
docker run -it --rm --network socketcand-shared --name socketcand-client --cap-add NET_ADMIN --env SOCKETCAND_SERVER socketcand
In the container, run
ip link add dev can1 type vcan
ip link set up can1
socketcandcl --verbose --server $SOCKETCAND_SERVER --interfaces can1,can1 &
candump -L can1 &
cansend can1 123#4455
You should see
(1687220675.698707) can1 123#4455
in both the server and the client's console output.
I'm sure you could use cannelloni
for this, but I think socketcand
was easier,
so I never tried.
You can run either the server or the client in a container. I'll provide instructions for running the server on the host.
On the host, create a can1
virtual CAN network to share with the container.
sudo modprobe vcan
sudo ip link add dev can1 type vcan
sudo ip link set up can1
This doesn't have to be a vcan
network, but I don't currently have access to a physical CAN
network for demonstration.
On the host, run
socketcand --verbose --interface can1 &
candump -L can1 &
This will bind to your default interface's public IP, which we'll need to use to connect the client to the server.
# There's probably a better way
export SOCKETCAND_SERVER=$(ip -4 -br address show eth0 | tr -s ' ' | cut -d ' ' -f 3 | sed 's|\(.*\)/.*|\1|')
In a separate terminal session, start a container with
docker run -it --rm --name socketcand-client --cap-add NET_ADMIN --env SOCKETCAND_SERVER socketcand
and in the resulting shell, run
ip link add dev can1 type vcan
ip link set up can1
socketcandcl --verbose --server $SOCKETCAND_SERVER --interfaces can1,can1 &
candump -L can1 &
cansend can1 123#4455
It's been several years since I've last used cannelloni, and the thing that made it less desirable was that it used SCTP rather than TCP. But SCTP wasn't supported by the Linux kernel for the hardware device I was interacting with.
But nowadays it appears it supports TCP just fine.

Then, on the host, create a can1
network to share between the host and a Docker container
sudo modprobe vcan
sudo ip link add dev can1 type vcan
sudo ip link set up can1
Run the Docker container
docker run --interactive --name cannelloni-udp --tty --rm --publish 2000:2000/udp --cap-add=NET_ADMIN cannelloni:latest
ip link add dev can1 type vcan
ip link set up can1
cannelloni -I can1 -R <IP_ADDRESS> -p -l 2000 -r 3000 &
candump -L can1 &
Then run cannelloni
on the host
export CANNELLONI_IP="$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' cannelloni-udp)"
cannelloni -I can1 -R $CANNELLONI_IP -r 2000 -l 3000 &
candump -L can1 &
Notice that the -l
and -r
arguments flipped!
Now send a CAN message in the Docker container!
docker exec -it cannelloni-udp cansend can1 123#001122
You should see it in the host's candump -L can1
output. Likewise, you should be able to
send a CAN message from the host to the container.
Run cannelloni
in the container
docker run --interactive --tty --rm --publish 2000:2000/sctp --cap-add=NET_ADMIN --name cannelloni-sctp cannelloni:latest
ip link add dev can1 type vcan
ip link set can1 up
cannelloni -I can1 -S s &
candump -L can1 &
and on the host, run
export CANNELLONI_IP="$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' cannelloni-sctp)"
cannelloni -I can1 -R $CANNELLONI_IP -S c &
candump -L can1 &
docker exec -it cannelloni-sctp cansend can1 123#334455
cansend can1 456#7788
The docs suggest that just switching -S s
/-S c
to -C s
/-C c
is all that's necessary to use TCP rather than SCTP.
Take the following docker-compose.yml
file.
version: "3.9"
services:
socketcand-server:
image: socketcand
networks:
- socketcand-shared
cap_add:
- NET_ADMIN
entrypoint:
- bash
- -c
- "ip link add dev can1 type vcan && ip link set up can1 && socketcand --verbose --interfaces can1"
socketcand-client:
image: socketcand
networks:
- socketcand-shared
cap_add:
- NET_ADMIN
entrypoint:
- bash
- -c
- "ip link add dev can1 type vcan && ip link set up can1 && socketcandcl --verbose --server socketcand-server --interfaces can1,can1"
networks:
socketcand-shared:
Notice that we did not have to specify any IP addresses, instead using --server
to pass
the hostname of the socketcand-server
container to socketcandcl
.
After running docker compose up
, we can start a shell in the running containers to run
candump
and cansend
to prove to ourselves that the two services are sharing a
CAN network.
docker exec -it can-tunneling-socketcand-client-1 candump -L can1
docker exec -it can-tunneling-socketcand-server-1 cansend can1 123#4455