gtkmm 4.19.0
gskmm Enums and Flags

Classes

class  Gsk::Corner_Wrapper
 Wrapper for enum Corner. More...

Typedefs

using Gsk::Corner = Corner_Wrapper::Corner
 Corner enumerators are scoped by the wrapper class and can be implicitly converted to int.

Enumerations

enum class  Gsk::BlendMode {
  Gsk::BlendMode::DEFAULT ,
  Gsk::BlendMode::MULTIPLY ,
  Gsk::BlendMode::SCREEN ,
  Gsk::BlendMode::OVERLAY ,
  Gsk::BlendMode::DARKEN ,
  Gsk::BlendMode::LIGHTEN ,
  Gsk::BlendMode::COLOR_DODGE ,
  Gsk::BlendMode::COLOR_BURN ,
  Gsk::BlendMode::HARD_LIGHT ,
  Gsk::BlendMode::SOFT_LIGHT ,
  Gsk::BlendMode::DIFFERENCE ,
  Gsk::BlendMode::EXCLUSION ,
  Gsk::BlendMode::COLOR ,
  Gsk::BlendMode::HUE ,
  Gsk::BlendMode::SATURATION ,
  Gsk::BlendMode::LUMINOSITY
}
 The blend modes available for render nodes. More...
enum  Gsk::Corner_Wrapper::Corner {
  Gsk::Corner_Wrapper::TOP_LEFT ,
  Gsk::Corner_Wrapper::TOP_RIGHT ,
  Gsk::Corner_Wrapper::BOTTOM_RIGHT ,
  Gsk::Corner_Wrapper::BOTTOM_LEFT
}
 The corner indices used by Gsk::RoundedRect. More...
enum class  Gsk::FillRule {
  Gsk::FillRule::WINDING ,
  Gsk::FillRule::EVEN_ODD
}
 Specifies how paths are filled. More...
enum class  Gsk::MaskMode {
  Gsk::MaskMode::ALPHA ,
  Gsk::MaskMode::INVERTED_ALPHA ,
  Gsk::MaskMode::LUMINANCE ,
  Gsk::MaskMode::INVERTED_LUMINANCE
}
 The mask modes available for mask nodes. More...
enum class  Gsk::ScalingFilter {
  Gsk::ScalingFilter::LINEAR ,
  Gsk::ScalingFilter::NEAREST ,
  Gsk::ScalingFilter::TRILINEAR
}
 The filters used when scaling texture data. More...
enum class  Gsk::Transform::Category {
  Gsk::Transform::Category::UNKNOWN ,
  Gsk::Transform::Category::ANY ,
  Gsk::Transform::Category::CAT_3D ,
  Gsk::Transform::Category::CAT_2D ,
  Gsk::Transform::Category::CAT_2D_AFFINE ,
  Gsk::Transform::Category::CAT_2D_TRANSLATE ,
  Gsk::Transform::Category::IDENTITY
}
 The categories of matrices relevant for GSK and GTK. More...

Detailed Description

Typedef Documentation

◆ Corner

Corner enumerators are scoped by the wrapper class and can be implicitly converted to int.

Enumeration Type Documentation

◆ BlendMode

enum class Gsk::BlendMode
strong

The blend modes available for render nodes.

The implementation of each blend mode is deferred to the rendering pipeline.

See https://www.w3.org/TR/compositing-1/#blending for more information on blending and blend modes.

Since gtkmm 4.20
Enumerator
DEFAULT 

The default blend mode, which specifies no blending.

MULTIPLY 

The source color is multiplied by the destination and replaces the destination.

SCREEN 

Multiplies the complements of the destination and source color values, then complements the result.

OVERLAY 

Multiplies or screens the colors, depending on the destination color value.

This is the inverse of hard-list.

DARKEN 

Selects the darker of the destination and source colors.

LIGHTEN 

Selects the lighter of the destination and source colors.

COLOR_DODGE 

Brightens the destination color to reflect the source color.

COLOR_BURN 

Darkens the destination color to reflect the source color.

HARD_LIGHT 

Multiplies or screens the colors, depending on the source color value.

SOFT_LIGHT 

Darkens or lightens the colors, depending on the source color value.

DIFFERENCE 

Subtracts the darker of the two constituent colors from the lighter color.

EXCLUSION 

Produces an effect similar to that of the difference mode but lower in contrast.

COLOR 

Creates a color with the hue and saturation of the source color and the luminosity of the destination color.

HUE 

Creates a color with the hue of the source color and the saturation and luminosity of the destination color.

SATURATION 

Creates a color with the saturation of the source color and the hue and luminosity of the destination color.

LUMINOSITY 

Creates a color with the luminosity of the source color and the hue and saturation of the destination color.

◆ Category

enum class Gsk::Transform::Category
strong

The categories of matrices relevant for GSK and GTK.

Note that any category includes matrices of all later categories. So if you want to for example check if a matrix is a 2D matrix, category >= GSK_TRANSFORM_CATEGORY_2D is the way to do this.

Also keep in mind that rounding errors may cause matrices to not conform to their categories. Otherwise, matrix operations done via multiplication will not worsen categories. So for the matrix multiplication C = A * B, category(C) = MIN (category(A), category(B)).

Since gtkmm 4.20
Enumerator
UNKNOWN 

The category of the matrix has not been determined.

ANY 

Analyzing the matrix concluded that it does not fit in any other category.

CAT_3D 

The matrix is a 3D matrix.

This means that the w column (the last column) has the values (0, 0, 0, 1).

CAT_2D 

The matrix is a 2D matrix.

This is equivalent to graphene_matrix_is_2d() returning true. In particular, this means that Cairo can deal with the matrix.

CAT_2D_AFFINE 

The matrix is a combination of 2D scale and 2D translation operations.

In particular, this means that any rectangle can be transformed exactly using this matrix.

CAT_2D_TRANSLATE 

The matrix is a 2D translation.

IDENTITY 

The matrix is the identity matrix.

◆ Corner

The corner indices used by Gsk::RoundedRect.

Since gtkmm 4.20
Enumerator
TOP_LEFT 

The top left corner.

TOP_RIGHT 

The top right corner.

BOTTOM_RIGHT 

The bottom right corner.

BOTTOM_LEFT 

The bottom left corner.

◆ FillRule

enum class Gsk::FillRule
strong

Specifies how paths are filled.

Whether or not a point is included in the fill is determined by taking a ray from that point to infinity and looking at intersections with the path. The ray can be in any direction, as long as it doesn't pass through the end point of a segment or have a tricky intersection such as intersecting tangent to the path.

(Note that filling is not actually implemented in this way. This is just a description of the rule that is applied.)

New entries may be added in future versions.

Since gtkmm 4.20
Enumerator
WINDING 

If the path crosses the ray from left-to-right, counts +1.

If the path crosses the ray from right to left, counts -1. (Left and right are determined from the perspective of looking along the ray from the starting point.) If the total count is non-zero, the point will be filled.

EVEN_ODD 

Counts the total number of intersections, without regard to the orientation of the contour.

If the total number of intersections is odd, the point will be filled.

◆ MaskMode

enum class Gsk::MaskMode
strong

The mask modes available for mask nodes.

Since gtkmm 4.20
Enumerator
ALPHA 

Use the alpha channel of the mask.

INVERTED_ALPHA 

Use the inverted alpha channel of the mask.

LUMINANCE 

Use the luminance of the mask, multiplied by mask alpha.

INVERTED_LUMINANCE 

Use the inverted luminance of the mask, multiplied by mask alpha.

◆ ScalingFilter

enum class Gsk::ScalingFilter
strong

The filters used when scaling texture data.

The actual implementation of each filter is deferred to the rendering pipeline.

Since gtkmm 4.20
Enumerator
LINEAR 

Linear interpolation filter.

NEAREST 

Nearest neighbor interpolation filter.

TRILINEAR 

Linear interpolation along each axis, plus mipmap generation, with linear interpolation along the mipmap levels.