wlmaker
Loading...
Searching...
No Matches
Classes | Macros | Enumerations | Functions
style.h File Reference
#include <cairo.h>
#include <inttypes.h>
Include dependency graph for style.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  wlmtk_style_color_solid_data_t
 
struct  wlmtk_style_color_gradient_data_t
 
struct  wlmtk_style_fill_t
 
struct  wlmtk_style_font_t
 
struct  wlmtk_margin_style_t
 
struct  wlmtk_dock_style_t
 
struct  wlmtk_menu_item_style_t
 
struct  wlmtk_resizebar_style_t
 
struct  wlmtk_titlebar_style_t
 
struct  wlmtk_window_style_t
 

Macros

#define WLMTK_STYLE_FONT_FACE_LENGTH   128
 

Enumerations

enum  wlmtk_style_fill_type_t {
  WLMTK_STYLE_COLOR_SOLID , WLMTK_STYLE_COLOR_HGRADIENT , WLMTK_STYLE_COLOR_VGRADIENT , WLMTK_STYLE_COLOR_DGRADIENT ,
  WLMTK_STYLE_COLOR_ADGRADIENT
}
 
enum  wlmtk_style_font_weight_t { WLMTK_FONT_WEIGHT_NORMAL , WLMTK_FONT_WEIGHT_BOLD }
 

Functions

cairo_font_weight_t wlmtk_style_font_weight_cairo_from_wlmtk (wlmtk_style_font_weight_t weight)
 

Detailed Description

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Macro Definition Documentation

◆ WLMTK_STYLE_FONT_FACE_LENGTH

#define WLMTK_STYLE_FONT_FACE_LENGTH   128

Hardcoded max length of the font face name.

Enumeration Type Documentation

◆ wlmtk_style_fill_type_t

Specifies the type of coloring to use for the fill.

Enumerator
WLMTK_STYLE_COLOR_SOLID 

Horizontal color gradient.

WLMTK_STYLE_COLOR_HGRADIENT 

Horizontal color gradient.

WLMTK_STYLE_COLOR_VGRADIENT 

Vertical color gradient.

WLMTK_STYLE_COLOR_DGRADIENT 

Diagonal color gradient, Cairo style.

Colors are interpolated from top-left to bottom-right corner. Areas of equal color value are arranged perpendicular to that diagonal. This produces a smooth color flow across all rectangle edges.

WLMTK_STYLE_COLOR_ADGRADIENT 

Alternative diagonal color gradient, Window Maker style.

Colors are interpolated from top-left to bottom-right corner. Areas of equal color value are aligned with the other diagonal – from top-right to bottom-left. This may produce a steep gradient along the thin axis of long & thin rectangles, but is similar to what Window Maker uses.

◆ wlmtk_style_font_weight_t

Weight of a font.

Function Documentation

◆ wlmtk_style_font_weight_cairo_from_wlmtk()

cairo_font_weight_t wlmtk_style_font_weight_cairo_from_wlmtk ( wlmtk_style_font_weight_t  weight)

Translates the font weight from toolkit into cairo enum.