Flutter Engine
The Flutter Engine
third_party
accessibility
ax
ax_node_text_styles.h
Go to the documentation of this file.
1
// Copyright 2019 The Chromium Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef UI_ACCESSIBILITY_AX_NODE_TEXT_STYLES_H_
6
#define UI_ACCESSIBILITY_AX_NODE_TEXT_STYLES_H_
7
8
#include <string>
9
10
#include "
ax_base_export.h
"
11
12
namespace
ui
{
13
14
// A compact representation of text styles on an AXNode. This data represents
15
// a snapshot at a given time and is not intended to be held for periods of
16
// time. For this reason, it is a move-only class, to encourage deliberate
17
// short-term usage.
18
struct
AX_BASE_EXPORT
AXNodeTextStyles
{
19
AXNodeTextStyles
();
20
21
// Move-only class, explicitly delete copy-construction and assignment
22
AXNodeTextStyles
(
const
AXNodeTextStyles
& other) =
delete
;
23
AXNodeTextStyles
&
operator=
(
const
AXNodeTextStyles
&) =
delete
;
24
25
// Move constructor and assignment
26
AXNodeTextStyles
(
AXNodeTextStyles
&& other);
27
AXNodeTextStyles
& operator=(
AXNodeTextStyles
&& other);
28
29
bool
operator==
(
const
AXNodeTextStyles
& other)
const
;
30
31
bool
operator!=
(
const
AXNodeTextStyles
& other)
const
;
32
33
bool
IsUnset()
const
;
34
35
int32_t
background_color
;
36
int32_t
color
;
37
int32_t
invalid_state
;
38
int32_t
overline_style
;
39
int32_t
strikethrough_style
;
40
int32_t
text_direction
;
41
int32_t
text_position
;
42
int32_t
text_style
;
43
int32_t
underline_style
;
44
float
font_size
;
45
float
font_weight
;
46
std::string
font_family
;
47
};
48
49
}
// namespace ui
50
51
#endif
// UI_ACCESSIBILITY_AX_NODE_TEXT_STYLES_H_
ax_base_export.h
AX_BASE_EXPORT
#define AX_BASE_EXPORT
Definition:
ax_base_export.h:29
ui
Definition:
window_binding_handler.h:18
ui::operator==
bool operator==(const AXEventIntent &a, const AXEventIntent &b)
Definition:
ax_event_intent.cc:26
ui::operator!=
bool operator!=(const AXEventIntent &a, const AXEventIntent &b)
Definition:
ax_event_intent.cc:31
ui::AXNodeTextStyles
Definition:
ax_node_text_styles.h:18
ui::AXNodeTextStyles::overline_style
int32_t overline_style
Definition:
ax_node_text_styles.h:38
ui::AXNodeTextStyles::color
int32_t color
Definition:
ax_node_text_styles.h:36
ui::AXNodeTextStyles::operator=
AXNodeTextStyles & operator=(const AXNodeTextStyles &)=delete
ui::AXNodeTextStyles::text_style
int32_t text_style
Definition:
ax_node_text_styles.h:42
ui::AXNodeTextStyles::strikethrough_style
int32_t strikethrough_style
Definition:
ax_node_text_styles.h:39
ui::AXNodeTextStyles::background_color
int32_t background_color
Definition:
ax_node_text_styles.h:35
ui::AXNodeTextStyles::text_position
int32_t text_position
Definition:
ax_node_text_styles.h:41
ui::AXNodeTextStyles::font_size
float font_size
Definition:
ax_node_text_styles.h:44
ui::AXNodeTextStyles::AXNodeTextStyles
AXNodeTextStyles(const AXNodeTextStyles &other)=delete
ui::AXNodeTextStyles::font_weight
float font_weight
Definition:
ax_node_text_styles.h:45
ui::AXNodeTextStyles::underline_style
int32_t underline_style
Definition:
ax_node_text_styles.h:43
ui::AXNodeTextStyles::text_direction
int32_t text_direction
Definition:
ax_node_text_styles.h:40
ui::AXNodeTextStyles::invalid_state
int32_t invalid_state
Definition:
ax_node_text_styles.h:37
ui::AXNodeTextStyles::font_family
std::string font_family
Definition:
ax_node_text_styles.h:46
Generated on Sun Jun 23 2024 21:55:19 for Flutter Engine by
1.9.4