granite Reference Manual
Packages
granite
Granite
Granite.DateTime
Granite.Drawing
Granite.Services
Granite.Services.Application
Granite.StyleClass
Granite.Widgets
Granite.Widgets.Utils
granite
Description:
Content:
Namespaces:
Granite
Classes:
AccelLabel
Application
AsyncImage
Dialog
HeaderLabel
HyperTextView
MessageDialog
ModeSwitch
SeekBar
Settings
SettingsPage
SettingsSidebar
SimpleSettingsPage
SwitchModelButton
ValidatedEntry
Enums:
CloseButtonPosition
CollapseMode
TextStyle
Constants:
public
const
string
STYLE_CLASS_ACCENT
public
const
string
STYLE_CLASS_AVATAR
public
const
string
STYLE_CLASS_BACK_BUTTON
public
const
string
STYLE_CLASS_BADGE
public
const
string
STYLE_CLASS_CARD
public
const
string
STYLE_CLASS_CATEGORY_EXPANDER
public
const
string
STYLE_CLASS_CHECKERBOARD
public
const
string
STYLE_CLASS_COLOR_BUTTON
public
const
string
STYLE_CLASS_DEFAULT_DECORATION
public
const
string
STYLE_CLASS_H1_LABEL
public
const
string
STYLE_CLASS_H2_LABEL
public
const
string
STYLE_CLASS_H3_LABEL
public
const
string
STYLE_CLASS_H4_LABEL
public
const
string
STYLE_CLASS_KEYCAP
public
const
string
STYLE_CLASS_MODE_SWITCH
public
const
string
STYLE_CLASS_OVERLAY_BAR
public
const
string
STYLE_CLASS_PRIMARY_LABEL
public
const
string
STYLE_CLASS_ROUNDED
public
const
string
STYLE_CLASS_SEEKBAR
public
const
string
STYLE_CLASS_SMALL_LABEL
public
const
string
STYLE_CLASS_SOURCE_LIST
public
const
string
STYLE_CLASS_STORAGEBAR
public
const
string
STYLE_CLASS_TEMPERATURE
public
const
string
STYLE_CLASS_TERMINAL
public
const
string
STYLE_CLASS_WARMTH
public
const
string
STYLE_CLASS_WELCOME
public
const
string
TOOLTIP_SECONDARY_TEXT_MARKUP
public
const
int
TRANSITION_DURATION_CLOSE
public
const
int
TRANSITION_DURATION_IN_PLACE
public
const
int
TRANSITION_DURATION_OPEN
Delegates:
public
delegate
void
WidgetsDroppedDelegate
()
Methods:
public
string
accel_to_string
(
string
? accel)
public
RGBA
contrasting_foreground_color
(
RGBA
bg_color)
public
string
markup_accel_tooltip
(
string
[]? accels,
string
? description =
null
)
DateTime
Methods:
public
string
get_default_date_format
(
bool
with_weekday =
false
,
bool
with_day =
true
,
bool
with_year =
false
)
public
string
get_default_time_format
(
bool
is_12h =
false
,
bool
with_second =
false
)
public
string
get_relative_datetime
(
DateTime
date_time)
public
bool
is_same_day
(
DateTime
day1,
DateTime
day2)
public
string
seconds_to_time
(
int
seconds)
Drawing
Classes:
BufferSurface
Color
Utilities
Services
Interfaces:
Contract
SettingsSerializable
Classes:
ContractorProxy
IconFactory
Logger
Paths
Settings
SimpleCommand
System
Enums:
LogLevel
Error domains:
ContractorError
Fields:
public
IconFactory
?
icon_factory
Application
Methods:
public
async
bool
set_badge
(
int64
count)
throws
Error
public
async
bool
set_badge_visible
(
bool
visible)
throws
Error
public
async
bool
set_progress
(
double
progress)
throws
Error
public
async
bool
set_progress_visible
(
bool
visible)
throws
Error
StyleClass
Constants:
public
const
string
BADGE
public
const
string
CATEGORY_EXPANDER
public
const
string
COMPOSITED
public
const
string
CONTENT_VIEW
public
const
string
CONTENT_VIEW_WINDOW
public
const
string
DECORATED_WINDOW
public
const
string
H1_TEXT
public
const
string
H2_TEXT
public
const
string
H3_TEXT
public
const
string
HELP_BUTTON
public
const
string
OVERLAY_BAR
public
const
string
POPOVER
public
const
string
POPOVER_BG
public
const
string
SOURCE_LIST
public
const
string
THIN_PANE_SEPARATOR
public
const
string
TITLE_TEXT
Widgets
Interfaces:
SourceListDragDest
SourceListDragSource
SourceListSortable
Classes:
AlertView
Avatar
CellRendererBadge
CellRendererExpander
CollapsiblePaned
CompositedWindow
DatePicker
DynamicNotebook
ModeButton
OverlayBar
SourceList
StorageBar
Tab
TimePicker
Toast
Welcome
WelcomeButton
Utils
Methods:
public
void
apply_text_style_to_label
(
TextStyle
text_style,
Label
label)
public
string
?
get_button_layout_schema
()
public
CssProvider
?
get_css_provider
(
string
stylesheet)
public
bool
get_default_close_button_position
(
out
CloseButtonPosition
position)
public
CssProvider
?
set_color_primary
(
Widget
window,
RGBA
color,
int
priority =
STYLE_PROVIDER_PRIORITY_APPLICATION
)
public
CssProvider
?
set_theming
(
Widget
widget,
string
stylesheet,
string
? class_name,
int
priority)
public
CssProvider
?
set_theming_for_screen
(
Screen
screen,
string
stylesheet,
int
priority)