Example #1
0
static void
set_font_flags(DrawingContext* context, int32 flags)
{
	ServerFont font;
	font.SetFlags(flags);
	context->CurrentState()->SetFont(font, B_FONT_FLAGS);
}
Example #2
0
static void
set_font_flags(View* view, int32 flags)
{
	ServerFont font;
	font.SetFlags(flags);
	view->CurrentState()->SetFont(font, B_FONT_FLAGS);
}
Example #3
0
static void
set_font_flags(void* _context, uint32 flags)
{
	DrawingContext* context = reinterpret_cast<DrawingContext *>(_context);
	ServerFont font;
	font.SetFlags(flags);
	context->CurrentState()->SetFont(font, B_FONT_FLAGS);
}
Example #4
0
static void
set_font_flags(void* _canvas, uint32 flags)
{
	Canvas* const canvas = reinterpret_cast<Canvas*>(_canvas);
	ServerFont font;
	font.SetFlags(flags);
	canvas->CurrentState()->SetFont(font, B_FONT_FLAGS);
}
Example #5
0
void
WinDecorator::_UpdateFont(DesktopSettings& settings)
{
	ServerFont font;
	if (fLook == B_FLOATING_WINDOW_LOOK)
		settings.GetDefaultPlainFont(font);
	else
		settings.GetDefaultBoldFont(font);

	font.SetFlags(B_FORCE_ANTIALIASING);
	font.SetSpacing(B_STRING_SPACING);
	fDrawState.SetFont(font);
}
Example #6
0
void
TabDecorator::_UpdateFont(DesktopSettings& settings)
{
	ServerFont font;
	if (fTopTab->look == B_FLOATING_WINDOW_LOOK
		|| fTopTab->look == kLeftTitledWindowLook) {
		settings.GetDefaultPlainFont(font);
		if (fTopTab->look == kLeftTitledWindowLook)
			font.SetRotation(90.0f);
	} else
		settings.GetDefaultBoldFont(font);

	font.SetFlags(B_FORCE_ANTIALIASING);
	font.SetSpacing(B_STRING_SPACING);
	fDrawState.SetFont(font);
}