Пример #1
0
InputPrefs::InputPrefs( os::MediaInput* pcInput ) : os::VLayoutNode( "Prefs" )
{
	m_pcInput = pcInput;
	m_pcConfigView = m_pcInput->GetConfigurationView();
	if( m_pcConfigView == NULL )
	{
		m_pcConfigView = new os::StringView( os::Rect(), "String", MSG_MAINWND_THISINPUTHASNOCONTROLS );
	}
	AddChild( m_pcConfigView );
	AddChild( new os::VLayoutSpacer( "" ) );

	SetHAlignment( os::ALIGN_LEFT );
	
}
Пример #2
0
CodecPrefs::CodecPrefs( os::MediaCodec* pcCodec ) : os::VLayoutNode( "Prefs" )
{
	m_pcCodec = pcCodec;
	
	m_pcConfigView = m_pcCodec->GetConfigurationView();
	if( m_pcConfigView == NULL )
	{
		m_pcConfigView = new os::StringView( os::Rect(), "String", MSG_MAINWND_THISCODECHASNOCONTROLS );
	}
	AddChild( m_pcConfigView );
	AddChild( new os::VLayoutSpacer( "" ) );

	SetHAlignment( os::ALIGN_LEFT );
	
}
Пример #3
0
/** Sets the horizontal alignment. Alignment will be reset to relative. I.e. when calling
@c HAlignment() with a @c TBidiText::ERightToLeft argument, left and right will be swapped.
Calling @c HAlignment() without argument will always return the alignment in absolute terms.

@param aHAlign The horizontal alignment. */
EXPORT_C void TGulAlignment::SetHAlignment(CGraphicsContext::TTextAlign aHAlign)
	{
	SetHAlignment(static_cast<TGulHAlignment>(aHAlign));	// CGraphicsContext::TTextAlign has the same values as TGulHAlignment
	// Abosolute alignment flag set to false by the call above.
	}